Skip to content

Commit

Permalink
Add some style
Browse files Browse the repository at this point in the history
  • Loading branch information
Keytarina committed Jul 31, 2023
1 parent d12be17 commit a98c2df
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/components/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export class App extends Component {
const options = Object.keys(this.state);

return (
<div className="App">
<div className='app'>
<div className='app_container'>
<Section title="Please leave feedback">
<FeedbackOptions options={options} onLeaveFeedback={this.onLeaveFeedback}/>
</Section>
Expand All @@ -52,6 +53,7 @@ export class App extends Component {
}
</Section>
</div>
</div>
);
};

Expand Down
6 changes: 5 additions & 1 deletion src/components/FeedbackOptions/FeedbackOptions.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 1 addition & 1 deletion src/components/Section/Section.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
padding: 20px 20px;
margin-bottom: 20px;
border-radius: 10px;
background-color: #c1e7c2;
background-color: #b8e0ad;
border: 2px solid #80b791;
}

Expand Down
8 changes: 7 additions & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a98c2df

Please sign in to comment.