From a98c2df04ac3731d69486692690a2ff8f71cabaf Mon Sep 17 00:00:00 2001 From: Kateryna Yakubych Date: Tue, 1 Aug 2023 00:05:20 +0300 Subject: [PATCH] Add some style --- src/components/App.jsx | 4 +++- src/components/FeedbackOptions/FeedbackOptions.module.css | 6 +++++- src/components/Section/Section.module.css | 2 +- src/index.css | 8 +++++++- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/components/App.jsx b/src/components/App.jsx index ba5cd27..4f04e9f 100644 --- a/src/components/App.jsx +++ b/src/components/App.jsx @@ -35,7 +35,8 @@ export class App extends Component { const options = Object.keys(this.state); return ( -
+
+
@@ -52,6 +53,7 @@ export class App extends Component { }
+
); }; diff --git a/src/components/FeedbackOptions/FeedbackOptions.module.css b/src/components/FeedbackOptions/FeedbackOptions.module.css index ee8ea26..fc04072 100644 --- a/src/components/FeedbackOptions/FeedbackOptions.module.css +++ b/src/components/FeedbackOptions/FeedbackOptions.module.css @@ -9,8 +9,12 @@ border-radius: 8px; border: 2px solid #80b791; cursor: pointer; + transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1), + background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), + border 250ms cubic-bezier(0.4, 0, 0.2, 1); } .btn:hover { - background-color: #d5d5d5; + background-color: #6e967b; border: 2px solid #6e967b; + color: white; } \ No newline at end of file diff --git a/src/components/Section/Section.module.css b/src/components/Section/Section.module.css index be7d804..c0f1289 100644 --- a/src/components/Section/Section.module.css +++ b/src/components/Section/Section.module.css @@ -2,7 +2,7 @@ padding: 20px 20px; margin-bottom: 20px; border-radius: 10px; - background-color: #c1e7c2; + background-color: #b8e0ad; border: 2px solid #80b791; } diff --git a/src/index.css b/src/index.css index fab14b3..21e66f2 100644 --- a/src/index.css +++ b/src/index.css @@ -34,7 +34,13 @@ img { height: auto; } -.App { +.app { + display: block; + height: 100vh; + margin: 0 auto; + background: linear-gradient(to bottom, #ffff99 0%, #99ff66 100%); +} +.app_container { display: block; width: 320px; margin: 0 auto;