Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Form extends Component {
render() {
const { classes } = this.props;
return (
<form onSubmit={this.handleSubmit}>
<form onSubmit={this.handleSubmit} className={classes.form}>
<input
className={classes.input}
name="location"
Expand Down
2 changes: 1 addition & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ body {

@media (max-width: 576px) {
body {
font-size: 1rem
font-size: 1.2rem
}
}

Expand Down
6 changes: 6 additions & 0 deletions src/styles/CardsStyles.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import sizes from "./sizes";

export default {
card: {
width: "100%",
Expand All @@ -24,6 +26,10 @@ export default {

cardTitle: {
textTransform: "capitalize",

[sizes.down("sm")]: {
fontSize: "1.6rem",
},
},
cardImage: {
display: "block",
Expand Down
2 changes: 1 addition & 1 deletion src/styles/DisplayTable.css
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ table {
.delta-confirmed,
.delta-recovered,
.delta-deceased {
font-size: 1.2rem;
font-size: .9rem;
margin-left: .5rem;
}

Expand Down
28 changes: 28 additions & 0 deletions src/styles/FormStyles.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
import sizes from "./sizes";

export default {
form: {
// [sizes.down("xs")]: {
// display: "flex",
// flexDirection: "column",
// justifyContent: "center",
// alignItems: "center",
// },
},

input: {
fontFamily: "inherit",
fontSize: "1.6rem",
Expand All @@ -9,9 +20,21 @@ export default {
margin: "1.5rem",
transition: "all .4s",

[sizes.down("md")]: {
width: "35%",
fontSize: "1.4rem",
padding: "1rem 2rem",
},

[sizes.down("xs")]: {},

"&:focus": {
width: "22%",
outline: "none",

[sizes.down("md")]: {
width: "45%",
},
},

"&::placeholder": {
Expand All @@ -32,6 +55,11 @@ export default {
transition: "all .4s",
transform: "translateY(-2px)",
boxShadow: "0 .5rem 1rem rgba(0,0,0,0.2)",

[sizes.down("md")]: {
fontSize: "1.4rem",
padding: "1rem 1.5rem",
},
},

"&:hover": {
Expand Down
23 changes: 19 additions & 4 deletions src/styles/HelpStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,19 @@ export default {

mainHeading: {
marginBottom: "2rem",

[sizes.down("md")]: {
margin: "2rem",
},
[sizes.down("sm")]: {
fontSize: "2rem",
},
},

container: {
marginTop: "3rem",
display: "flex",
justifyContent: "space-between",
justifyContent: "space-around",
flexWrap: "wrap",
},

Expand All @@ -21,14 +28,22 @@ export default {
backgroundColor: "#fff",
borderRadius: "1rem",
padding: "3.5rem",
width: "25%",
width: "20%",
display: "flex",
margin: "2rem 0",
margin: "2rem 1rem",
flexDirection: "column",
textAlign: "left",

[sizes.down("md")]: {
[sizes.down("sm")]: {
padding: "2rem",
margin: "1rem",
width: "30%",
},

[sizes.down("xs")]: {
padding: "2rem",
margin: "1rem",
width: "50%",
},
},

Expand Down
1 change: 0 additions & 1 deletion src/styles/NavbarStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export default {
},

[sizes.down("xs")]: {
fontSize: "1.2rem",
marginBottom: ".5rem",
},
},
Expand Down
16 changes: 15 additions & 1 deletion src/styles/StaySafeStyles.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,30 @@
import sizes from "./sizes";

export default {
staySafe: {
textAlign: "center",

"& h1": {
marginBottom: "4.5rem",

[sizes.down("lg")]: {
margin: "4rem 0",
},

[sizes.down("md")]: {
margin: "2.5rem 0",
},
},
},
cardsBox: {
display: "flex",
width: "100%",
flexWrap: "wrap",
padding: "2rem",
justifyContent: "space-around",
alignItems: "stretch",

[sizes.down("sm")]: {
padding: "0",
},
},
};