Skip to content

Commit 15a0396

Browse files
Style Button
1 parent 95f877c commit 15a0396

File tree

4 files changed

+34
-7
lines changed

4 files changed

+34
-7
lines changed

src/components/CovidApp.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const styles = {
2323
},
2424
heading: {
2525
fontWeight: "500",
26+
color: colors.darkPurple,
2627
"& span": {
2728
color: colors.purple,
2829
fontWeight: "900",

src/components/DisplayPanels.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ const styles = {
1010
backgroundColor: "#fff",
1111
marginBottom: "3.5rem",
1212
marginTop: "3.5rem",
13-
padding: "2rem 3.5rem",
13+
padding: "1.5rem 3rem",
1414
boxShadow: "0 1rem 2rem rgba(0, 0, 0, 0.05)",
15+
borderRadius: "2.5rem",
1516
},
1617
heading: {
1718
fontSize: "2rem",
18-
// fontWeight: "500",
19-
// color: "red",
2019
},
2120
number: {
2221
color: (props) => {
@@ -33,9 +32,9 @@ const styles = {
3332
}
3433
return color;
3534
},
36-
fontSize: "4rem",
37-
paddingTop: "1rem",
38-
paddingBottom: "1rem",
35+
fontSize: "3.5rem",
36+
paddingTop: ".5rem",
37+
paddingBottom: ".5rem",
3938
},
4039
dataChange: {
4140
color: (props) => {

src/components/Overview.js

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, { Component } from "react";
22
import DisplayPanels from "./DisplayPanels";
33
import axios from "axios";
44
import { withStyles } from "@material-ui/styles";
5+
import colors from "../colors";
56

67
const styles = {
78
root: {
@@ -12,6 +13,29 @@ const styles = {
1213
justifyContent: "space-between",
1314
alignItems: "center",
1415
},
16+
button: {
17+
border: "none",
18+
backgroundColor: colors.purple,
19+
padding: "1.5rem 3rem",
20+
color: "#fff",
21+
borderRadius: "10rem",
22+
fontFamily: "inherit",
23+
fontSize: "1.6rem",
24+
marginTop: "6rem",
25+
transition: "all .2s",
26+
boxShadow: "0 1.5rem 2.5rem rgba(0,0,0,.2)",
27+
28+
"&:hover": {
29+
backgroundColor: colors.darkPurple,
30+
boxShadow: "0 .5rem 1rem rgba(0,0,0,.2)",
31+
outline: "none",
32+
border: "none",
33+
},
34+
"&:focus": {
35+
border: "none",
36+
outline: "none",
37+
},
38+
},
1539
};
1640

1741
class Overview extends Component {
@@ -96,7 +120,9 @@ class Overview extends Component {
96120
/>
97121
</div>
98122

99-
<button onClick={this.fetchData}>Update Results</button>
123+
<button className={classes.button} onClick={this.fetchData}>
124+
Update Results
125+
</button>
100126
</div>
101127
);
102128
}

src/index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ body {
2020
-moz-osx-font-smoothing: grayscale;
2121
font-size: 1.6rem;
2222
line-height: 1.7;
23+
color: #1A1053;
2324
background-color: rgba(185, 185, 185, 0.281);
2425
}
2526

0 commit comments

Comments
 (0)