);
}
diff --git a/src/components/Map/Map.css b/src/components/Map/Map.css
index 971d46d..5fe3fd2 100644
--- a/src/components/Map/Map.css
+++ b/src/components/Map/Map.css
@@ -2,4 +2,5 @@
background-color: rgba(129, 124, 155, 0.05);
padding: 3rem;
border-radius: 2.5rem;
+ width: 100%;
}
\ No newline at end of file
diff --git a/src/components/Navbar.js b/src/components/Navbar.js
index 54d7973..c885063 100644
--- a/src/components/Navbar.js
+++ b/src/components/Navbar.js
@@ -5,77 +5,108 @@ import {
faHome,
faHeadSideCough,
faFlask,
- faQuestionCircle,
+ faBox,
+ faBars,
} from "@fortawesome/free-solid-svg-icons";
import styles from "../styles/NavbarStyles";
import { NavLink } from "react-router-dom";
+import logo from "../assets/SVG/06.svg";
+import classNames from "classnames";
class Navbar extends Component {
+ constructor(props) {
+ super(props);
+
+ this.state = {
+ isExpanded: false,
+ };
+ this.handleToggle = this.handleToggle.bind(this);
+ }
+
+ handleToggle(e) {
+ this.setState(
+ { isExpanded: !this.state.isExpanded },
+ console.log(this.state.isExpanded)
+ );
+ // console.log("clicked");
+ }
+
render() {
const { classes } = this.props;
return (
-
);
}
}
diff --git a/src/components/Placeholder.js b/src/components/Placeholder.js
new file mode 100644
index 0000000..f135dc3
--- /dev/null
+++ b/src/components/Placeholder.js
@@ -0,0 +1,28 @@
+import React from "react";
+import ContentLoader from "react-content-loader";
+
+const MyLoader = () => (
+
+);
+
+export default MyLoader;
diff --git a/src/components/ResponsiveTable.js b/src/components/ResponsiveTable.js
new file mode 100644
index 0000000..d2ba02f
--- /dev/null
+++ b/src/components/ResponsiveTable.js
@@ -0,0 +1,64 @@
+import React from "react";
+import { makeStyles } from "@material-ui/core/styles";
+import Table from "@material-ui/core/Table";
+import TableBody from "@material-ui/core/TableBody";
+import TableCell from "@material-ui/core/TableCell";
+import TableContainer from "@material-ui/core/TableContainer";
+import TableHead from "@material-ui/core/TableHead";
+import TableRow from "@material-ui/core/TableRow";
+import Paper from "@material-ui/core/Paper";
+
+const useStyles = makeStyles({
+ table: {
+ minWidth: 650,
+ },
+});
+
+function createData(name, calories, fat, carbs, protein) {
+ return { name, calories, fat, carbs, protein };
+}
+
+// tableData = { data };
+// districtLevel = { districtLevel };
+// isDarkMode = { isDarkMode };
+
+const rows = [
+ createData("Frozen yoghurt", 159, 6.0, 24, 4.0),
+ createData("Ice cream sandwich", 237, 9.0, 37, 4.3),
+ createData("Eclair", 262, 16.0, 24, 6.0),
+ createData("Cupcake", 305, 3.7, 67, 4.3),
+ createData("Gingerbread", 356, 16.0, 49, 3.9),
+];
+
+export default function SimpleTable(props) {
+ const classes = useStyles();
+
+ return (
+
+ );
+}
diff --git a/src/components/Symptoms.js b/src/components/Symptoms.js
index 7510cca..3318ec8 100644
--- a/src/components/Symptoms.js
+++ b/src/components/Symptoms.js
@@ -1,12 +1,101 @@
import React, { Component } from "react";
import { withStyles } from "@material-ui/styles";
import styles from "../styles/SymptomsStyles";
+import { Link } from "react-router-dom";
+import Footer from "./Footer";
class Symptoms extends Component {
render() {
+ const { classes } = this.props;
return (
-
-
Symptoms
+
+
+ COVID-19 Coronavirus - Symptoms
+
+
+
+
+
+ There’s currently no vaccine to prevent coronavirus disease
+ (COVID-19). So, take the necessary preventive measures.
+
+
+
+
+ On average it takes 5–6 days from when someone is infected with
+ the virus for symptoms to show, however it can take up to 14
+ days. People with mild symptoms who are otherwise healthy should
+ self-isolate. Seek medical attention if you have a fever, a
+ cough, and difficulty breathing.
+
+
+
+
+ COVID-19 affects different people in different ways. Most
+ infected people will develop mild to moderate symptoms.
+
+
Common symptoms
+
+ - fever.
+ - tiredness.
+ - dry cough.
+
+
+ Some people may experience
+
+
+ - aches and pains.
+ - nasal congestion.
+ - runny
+ - nose.
+ - sore throat.
+ - diarrhoea.
+
+
+
+ These are for informational purposes only. Consult your local
+ medical authority for advice. (Source: World Health Organization)
+
+
+
+
+
+
+
);
}
diff --git a/src/components/TinyCharts.js b/src/components/TinyCharts.js
deleted file mode 100644
index 58675da..0000000
--- a/src/components/TinyCharts.js
+++ /dev/null
@@ -1,33 +0,0 @@
-import React, { Component } from "react";
-import { LineChart, Line } from "recharts";
-
-export default class TinyCharts extends Component {
- render() {
- const { data, isLoading, dataKey, stroke } = this.props;
- const updatedData = data.slice(25, -1);
- const result = updatedData.map((dataItem) => {
- return {
- date: dataItem.day.slice(5),
- ...dataItem.summary,
- confirmed: dataItem.summary.total,
- active:
- dataItem.summary.total -
- (dataItem.summary.discharged + dataItem.summary.deaths),
- };
- });
- return (
-
- {!isLoading && (
-
-
-
- )}
-
- );
- }
-}
diff --git a/src/index.css b/src/index.css
index 3a6cad8..9d573e9 100644
--- a/src/index.css
+++ b/src/index.css
@@ -19,9 +19,19 @@ body {
font-size: 1.6rem;
line-height: 1.7;
color: #1A1053;
- /* background-color: #fff; */
background-color: rgb(245, 245, 245);
- /* background-color: rgba(185, 185, 185, 0.281); */
+}
+
+@media (max-width: 1100px) {
+ body {
+ font-size: 1.7rem
+ }
+}
+
+@media (max-width: 576px) {
+ body {
+ font-size: 1.2rem
+ }
}
code {
diff --git a/src/styles/CardsStyles.js b/src/styles/CardsStyles.js
index bd19a58..8bed6bb 100644
--- a/src/styles/CardsStyles.js
+++ b/src/styles/CardsStyles.js
@@ -1,3 +1,5 @@
+import sizes from "./sizes";
+
export default {
card: {
width: "100%",
@@ -24,6 +26,10 @@ export default {
cardTitle: {
textTransform: "capitalize",
+
+ [sizes.down("sm")]: {
+ fontSize: "1.6rem",
+ },
},
cardImage: {
display: "block",
diff --git a/src/styles/Charts.css b/src/styles/Charts.css
index 2268988..d476b89 100644
--- a/src/styles/Charts.css
+++ b/src/styles/Charts.css
@@ -1,6 +1,29 @@
.charts {
+ width: 50%;
+ height: 35rem;
+ margin-top: 5rem;
+}
+
+.barcharts {
margin-top: 5rem;
display: flex;
justify-content: center;
align-items: center
+}
+
+
+@media (max-width: 992px) {
+ .charts {
+ margin-top: 2.5rem;
+ width: 100%;
+ height: 30rem;
+ }
+}
+
+@media (max-width: 576px) {
+ .charts {
+ width: 100%;
+ height: 25rem;
+ margin-top: 1rem;
+ }
}
\ No newline at end of file
diff --git a/src/styles/CovidAppStyles.js b/src/styles/CovidAppStyles.js
index d342f92..8b501c9 100644
--- a/src/styles/CovidAppStyles.js
+++ b/src/styles/CovidAppStyles.js
@@ -1,9 +1,11 @@
import colors from "../constants/colors";
+import sizes from "./sizes";
export default {
header: {
display: "flex",
alignItems: "center",
+ justifyContent: "center",
},
heading: {
@@ -16,6 +18,77 @@ export default {
color: colors.purple,
marginRight: "1rem",
},
+
+ [sizes.down("md")]: {
+ fontSize: "2.8rem",
+ padding: "3rem",
+ },
+
+ [sizes.down("xs")]: {
+ fontSize: "2rem",
+ padding: "3rem",
+ },
+ },
+
+ updates: {
+ marginLeft: "auto",
+ position: "relative",
+ },
+
+ notification: {
+ fontSize: "3rem",
+ color: colors.darkPurple,
+ position: "relative",
+ transition: "all .4s ease",
+
+ "&:hover": {
+ transform: "scale(1.15)",
+ color: "#000",
+ },
+ },
+
+ notificationBell: {
+ position: "relative",
+
+ "&::before": {
+ content: '""',
+ position: "absolute",
+ width: "1rem",
+ height: "1rem",
+ backgroundColor: "red",
+ borderRadius: "10rem",
+ top: "1rem",
+ right: 0,
+ },
+ },
+
+ lastUpdatedTime: {
+ marginLeft: "1.5rem",
+ fontSize: "1.5rem",
+ },
+
+ update: {
+ fontSize: "1.5rem",
+ display: "block",
+ position: "absolute",
+ left: "-25rem",
+ backgroundColor: "rgba(255,255,255,.95)",
+ borderRadius: "2rem",
+ boxShadow: "0 1rem 2rem rgba(0,0,0,.15)",
+ padding: "3rem",
+ zIndex: "1",
+ transition: "all .5s",
+ },
+
+ updateBox: {
+ marginBottom: "1.5rem",
+ },
+
+ updateHeading: {
+ textTransform: "capitalize",
+ },
+ updateText: {
+ fontWeight: "400",
},
content: {
@@ -23,9 +96,17 @@ export default {
borderRadius: "2rem",
marginTop: "3rem",
display: "flex",
- padding: "4rem",
flexDirection: "column",
justifyContent: "center",
+
+ [sizes.down("md")]: {
+ marginTop: "2.5rem",
+ padding: "1.5rem",
+ },
+ [sizes.down("xs")]: {
+ marginTop: "2.5rem",
+ padding: "0",
+ },
},
contentArea: {
@@ -46,12 +127,43 @@ export default {
tableContainer: {
padding: "2rem",
margin: "5rem 0",
+
+ [sizes.down("md")]: {
+ margin: "3.5rem 0",
+ padding: "1.5rem",
+ },
+
+ [sizes.down("sm")]: {
+ margin: "1.2rem 0",
+ padding: "0",
+ },
},
tableHeading: {
textAlign: "center",
- margin: "4rem 0",
+ marginTop: "2.5rem",
fontSize: "3rem",
+
+ [sizes.down("lg")]: {
+ fontSize: "2.5rem",
+ marginTop: "1.5rem",
+ },
+
+ [sizes.down("md")]: {
+ marginTop: ".5rem",
+ },
+
+ [sizes.down("sm")]: {
+ marginTop: ".2rem",
+ fontSize: "1.3rem",
+ },
+ },
+
+ chartRes: {
+ // margin: "0 auto",
+ display: "flex",
+ justifyContent: "center",
+ alignItems: "center",
},
tinyChartArea: {
@@ -64,7 +176,7 @@ export default {
},
tinyChart: {
- // width: "50%",
+ width: "30%",
margin: "2.5rem",
"& h3": {
textTransform: "capitalize",
@@ -72,6 +184,9 @@ export default {
textAlign: "center",
},
+ [sizes.down("lg")]: {
+ width: "auto",
+ },
},
tinych: {
@@ -86,6 +201,10 @@ export default {
animationDuration: "1s",
animationTimingFunction: "linear",
animationIterationCount: "infinite",
+
+ [sizes.down("md")]: {
+ fontSize: "3rem",
+ },
},
loadingIcon: {
@@ -105,6 +224,9 @@ export default {
},
button: {
+ display: "flex",
+ justifyContent: "center",
+ alignItems: "center",
border: "none",
backgroundColor: colors.purple,
padding: "1.5rem 3rem",
@@ -117,6 +239,17 @@ export default {
boxShadow: "0 .5rem 1rem rgba(0,0,0,.2)",
position: "relative",
+ [sizes.down("md")]: {
+ fontSize: "1.5rem",
+ borderRadius: "100px",
+ marginLeft: 0,
+ padding: "1rem",
+ },
+
+ [sizes.down("xs")]: {
+ fontSize: "1rem",
+ },
+
"&:hover": {
backgroundColor: colors.darkPurple,
boxShadow: "0 .25rem .5rem rgba(0,0,0,.2)",
diff --git a/src/styles/DarkModeButton.css b/src/styles/DarkModeButton.css
index b07f7d6..8bf6994 100644
--- a/src/styles/DarkModeButton.css
+++ b/src/styles/DarkModeButton.css
@@ -6,7 +6,7 @@
}
.darkModeButton {
- margin-left: auto;
+ margin-left: 2rem;
}
/* Hide default HTML checkbox */
@@ -63,4 +63,10 @@ input:checked+.slider:before {
.slider.round:before {
border-radius: 50%;
+}
+
+@media(max-width:991.98px) {
+ .darkModeButton {
+ margin-right: 2rem;
+ }
}
\ No newline at end of file
diff --git a/src/styles/DisplayPanelsStyles.js b/src/styles/DisplayPanelsStyles.js
index a1ccb6a..4768971 100644
--- a/src/styles/DisplayPanelsStyles.js
+++ b/src/styles/DisplayPanelsStyles.js
@@ -1,4 +1,5 @@
import colors from "../constants/colors";
+import sizes from "./sizes";
export default {
panel: {
@@ -6,7 +7,6 @@ export default {
flexDirection: "column",
marginBottom: "3.5rem",
marginTop: "3.5rem",
- // boxShadow: "0 1rem 2rem rgba(0, 0, 0, 0.05)",
backgroundColor: (props) => (props.isDarkMode ? colors.darkPurple : "#fff"),
margin: (props) => (props.isMiniPanel ? "3rem 1rem" : "3.5rem 0"),
padding: (props) => (props.isMiniPanel ? "1.5rem 1.5rem" : "1.5rem 3rem"),
@@ -17,23 +17,34 @@ export default {
return null;
}
return "0 1.5rem 3rem rgba(0, 0, 0, 0.1)";
- // let color;
- // let title = props.title.toLowerCase();
- // if (title === "recovered") {
- // color = "rgb(28, 177, 66,.2)";
- // } else if (title === "deceased") {
- // color = "rgb(98, 54, 25,.2)";
- // } else if (title === "active") {
- // color = "rgb(250, 100, 0,.2)";
- // } else if (title === "confirmed") {
- // color = "rgb(249, 52, 94,.2)";
- // }
- // return `0 .5rem 3rem ${color}`;
+ },
+
+ [sizes.down("lg")]: {
+ marginBottom: ".5rem",
+ marginTop: "2.5rem",
+ },
+
+ [sizes.down("md")]: {
+ marginTop: "1.7rem",
+ },
+
+ [sizes.down("sm")]: {
+ marginTop: "1rem",
+ },
+ [sizes.down("xs")]: {
+ marginBottom: ".2rem",
+ marginTop: ".1rem",
},
},
heading: {
fontSize: (props) => (props.isMiniPanel ? "1.5rem" : "2rem"),
+ [sizes.down("lg")]: {
+ fontSize: (props) => (props.isMiniPanel ? "1.2rem" : "1.7rem"),
+ },
+ [sizes.down("md")]: {
+ fontSize: (props) => (props.isMiniPanel ? "1rem" : "1.5rem"),
+ },
},
number: {
@@ -54,6 +65,14 @@ export default {
fontSize: (props) => (props.isMiniPanel ? "2.2rem" : "3.5rem"),
paddingTop: ".5rem",
paddingBottom: ".5rem",
+
+ [sizes.down("lg")]: {
+ fontSize: (props) => (props.isMiniPanel ? "1.5rem" : "3rem"),
+ },
+
+ [sizes.down("md")]: {
+ fontSize: (props) => (props.isMiniPanel ? "1.5rem" : "2rem"),
+ },
},
dataChange: {
diff --git a/src/styles/DisplayTable.css b/src/styles/DisplayTable.css
index 9bad9f6..ad79dea 100644
--- a/src/styles/DisplayTable.css
+++ b/src/styles/DisplayTable.css
@@ -3,7 +3,7 @@ table {
border-collapse: collapse;
}
-thead th {
+.tableHead {
text-align: left;
margin-right: 1rem;
margin-left: 1rem;
@@ -11,11 +11,12 @@ thead th {
/* border-bottom: 2px solid black; */
}
-thead button {
+
+.tableHead-Button {
font-family: inherit;
width: 100%;
border: 0;
- border-radius: 2rem;
+ border-radius: 1.5rem;
font-family: inherit;
font-weight: 700;
font-size: inherit;
@@ -25,58 +26,138 @@ thead button {
background-color: #1A1053;
color: #fff;
- /* margin: 1rem; */
transition: all .4s;
}
-thead button:hover,
-thead button:focus {
+
+
+.tableHead-Button:hover,
+.tableHead-Button:focus {
outline: none;
border: none;
}
-thead button.ascending::after {
+.tableHead-Button.ascending::after {
content: '\2193';
display: inline-block;
- margin-left: 1em;
+ margin-left: 1rem;
}
-thead button.descending::after {
+.tableHead-Button.descending::after {
content: '\2191';
display: inline-block;
- margin-left: 1em;
+ margin-left: 1rem;
}
-tbody td {
- padding: 1rem;
+.state-td {
color: #1A1053;
- /* border-radius: 2rem; */
padding: 1rem 2rem;
margin-top: 5rem;
- /* background-color: #ccc; */
- /* border-bottom: 1px solid #ccc; */
-
}
-tbody tr {
+.state-tr {
border-radius: 2rem;
- /* transition: background-color .5s; */
}
-tbody tr:hover {
+.state-tr:hover {
background-color: #1A1053;
transition: all .3s;
}
-tbody tr:hover td {
+.state-tr:hover td {
color: #fff;
}
-tbody tr:nth-child(even) {
+.state-tr:nth-child(even) {
background: rgba(235, 235, 235, 0.541);
}
-tbody tr:nth-child(even):hover {
+.state-tr:nth-child(even):hover {
background-color: #1A1053;
+}
+
+.districtHead {
+ margin: 1.5rem 1rem;
+ background-color: #817C9B;
+ padding: 1rem 3rem;
+ color: #fff
+}
+
+.district-td {
+ padding: 1rem 3rem;
+ margin-bottom: 1rem;
+}
+
+.district-tr {
+ border: 1px solid #817C9B;
+}
+
+.delta-confirmed,
+.delta-recovered,
+.delta-deceased {
+ font-size: 1.5rem;
+ margin-left: .5rem;
+}
+
+.delta-confirmed {
+ color: #F9345E;
+}
+
+.delta-recovered {
+ color: #1CB142;
+}
+
+.delta-deceased {
+ color: #6236FF;
+}
+
+.spacer-bottom {
+ display: block;
+ margin-bottom: 2.5rem;
+}
+
+.spacer-top {
+ display: block;
+ margin-bottom: .5rem;
+}
+
+@media (max-width: 600px) {
+
+ .delta-confirmed,
+ .delta-recovered,
+ .delta-deceased {
+ font-size: .9rem;
+ margin-left: .5rem;
+ }
+
+ .tableHead {
+ margin: 0;
+ }
+
+ .tableHead-Button {
+ padding: 1rem;
+ }
+
+ .district-td {
+ padding: .2rem;
+ margin: 0;
+ }
+
+ .districtHead {
+ padding: .2rem;
+ margin: 0;
+ }
+}
+
+@media (max-width: 575px) {
+ .state-td {
+ padding: 1rem;
+ margin-top: 2.5rem;
+ }
+
+ .state-tr {
+ border-radius: 1rem;
+ }
+
}
\ No newline at end of file
diff --git a/src/styles/FooterStyles.js b/src/styles/FooterStyles.js
new file mode 100644
index 0000000..14102a3
--- /dev/null
+++ b/src/styles/FooterStyles.js
@@ -0,0 +1,73 @@
+import sizes from "./sizes";
+
+export default {
+ footer: {
+ display: "flex",
+ justifyContent: "space-around",
+ marginTop: "3rem",
+ padding: "4rem",
+
+ [sizes.down("md")]: {
+ marginTop: "2rem",
+ padding: "2rem",
+ },
+
+ [sizes.down("sm")]: {
+ marginTop: "1rem",
+ padding: "1.5rem",
+ flexDirection: "column",
+ alignItems: "center",
+ },
+ },
+
+ btn: {
+ padding: "1.5rem 4rem",
+ fontFamily: "inherit",
+ border: "none",
+ fontSize: "1.7rem",
+ borderRadius: "1.5rem",
+ color: "white",
+ transition: "all .3s",
+ transform: "translateY(-.3rem)",
+ boxShadow: "0 1rem 3rem rgba(0,0,0,.24)",
+ textDecoration: "none",
+
+ [sizes.down("md")]: {
+ boxShadow: "none",
+ padding: "1rem 2.5rem",
+ fontSize: "1.6rem",
+ },
+
+ [sizes.down("sm")]: {
+ marginBottom: "1rem",
+ textAlign: "center",
+ boxShadow: "0",
+ fontSize: "1.3rem",
+ padding: ".5rem 2.5rem",
+ transform: "translateY(0)",
+ borderRadius: "5px",
+ width: "15rem",
+ },
+
+ "&:hover": {
+ transform: "translateY(0)",
+ boxShadow: "0 .25rem 1rem rgba(0,0,0,.25)",
+
+ [sizes.down("sm")]: {
+ boxShadow: "none",
+ },
+ },
+ },
+
+ github: {
+ backgroundColor: "black",
+ },
+
+ twitter: {
+ backgroundColor: "#00acee",
+ },
+
+ issue: {
+ backgroundColor: "#817C9B",
+ },
+};
diff --git a/src/styles/FormStyles.js b/src/styles/FormStyles.js
new file mode 100644
index 0000000..9140d28
--- /dev/null
+++ b/src/styles/FormStyles.js
@@ -0,0 +1,72 @@
+import sizes from "./sizes";
+
+export default {
+ form: {
+ // [sizes.down("xs")]: {
+ // display: "flex",
+ // flexDirection: "column",
+ // justifyContent: "center",
+ // alignItems: "center",
+ // },
+ },
+
+ input: {
+ fontFamily: "inherit",
+ fontSize: "1.6rem",
+ border: "none",
+ padding: "1.5rem 3rem",
+ width: "20%",
+ borderRadius: "2.5rem",
+ 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": {
+ color: "#bbb",
+ },
+ },
+
+ btn: {
+ "&, &:active": {
+ fontFamily: "inherit",
+ fontSize: "1.4rem",
+ padding: "1.5rem 2rem",
+ backgroundColor: "#1A1053",
+ color: "#fff",
+ borderRadius: "2.5rem",
+ border: "none",
+ outline: "none",
+ 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": {
+ backgroundColor: "#000",
+ cursor: "pointer",
+ transform: "translateY(0)",
+ outline: "none",
+ },
+ },
+};
diff --git a/src/styles/HelpStyles.js b/src/styles/HelpStyles.js
index ff8b4c5..7862b33 100644
--- a/src/styles/HelpStyles.js
+++ b/src/styles/HelpStyles.js
@@ -1 +1,88 @@
-export default {};
+import sizes from "./sizes";
+
+export default {
+ help: {
+ textAlign: "center",
+ },
+
+ mainHeading: {
+ marginBottom: "2rem",
+
+ [sizes.down("md")]: {
+ margin: "2rem",
+ },
+ [sizes.down("sm")]: {
+ fontSize: "2rem",
+ },
+ },
+
+ container: {
+ marginTop: "3rem",
+ display: "flex",
+ justifyContent: "space-around",
+ flexWrap: "wrap",
+ },
+
+ card: {
+ boxShadow: "0 1.5rem 3.5rem rgba(0,0,0,0.1)",
+ backgroundColor: "#fff",
+ borderRadius: "1rem",
+ padding: "3.5rem",
+ width: "20%",
+ display: "flex",
+ margin: "2rem 1rem",
+ flexDirection: "column",
+ textAlign: "left",
+
+ [sizes.down("sm")]: {
+ padding: "2rem",
+ margin: "1rem",
+ width: "30%",
+ },
+
+ [sizes.down("xs")]: {
+ padding: "2rem",
+ margin: "1rem",
+ width: "50%",
+ },
+ },
+
+ header: {
+ display: "flex",
+ justifyContent: "space-between",
+ alignItems: "center",
+ marginBottom: "2rem",
+
+ [sizes.down("md")]: {
+ marginBottom: "1.5rem",
+ },
+ },
+
+ content: {},
+
+ cardHeading: {
+ textTransform: "uppercase",
+ display: "inline-block",
+ },
+
+ text: {
+ fontSize: "1.5rem",
+ "&:not(:last-child)": {
+ marginBottom: ".5rem",
+ },
+ },
+
+ icons: {
+ transition: "all .2s",
+ "&:hover": {
+ color: "#000",
+ transform: "scale(1.02)",
+ },
+ },
+
+ cardLink: {
+ "&, &:visited": {
+ color: "#6236FF",
+ },
+ },
+};
diff --git a/src/styles/MapSection.js b/src/styles/MapSection.js
index 7ebdd44..1b028f6 100644
--- a/src/styles/MapSection.js
+++ b/src/styles/MapSection.js
@@ -1,11 +1,29 @@
+import sizes from "./sizes";
+
export default {
mainContainer: {
backgroundColor: "rgba(129, 124, 155, 0.05)",
padding: "7rem 3rem",
textAlign: "center",
+
+ [sizes.down("md")]: {
+ padding: "5rem 2rem",
+ },
+
+ [sizes.down("sm")]: {
+ padding: "2.5rem 1.5rem",
+ },
},
+
heading: {
fontSize: "2.5rem",
+ [sizes.down("md")]: {
+ fontSize: "2rem",
+ },
+
+ [sizes.down("sm")]: {
+ fontSize: "1.7rem",
+ },
},
para: {
marginBottom: "3rem",
@@ -15,18 +33,37 @@ export default {
display: "flex",
justifyContent: "center",
alignItems: "center",
+
+ [sizes.down("md")]: {
+ flexDirection: "column",
+ },
},
+
mapContainer: {
flex: "1",
+ width: "100%",
},
+
panelsContainer: {
display: "flex",
flex: "0 0 30%",
justifyContent: "center",
flexWrap: "wrap",
alignItems: "center",
+
+ [sizes.down("md")]: {
+ order: "1",
+ width: "100%",
+ flex: "0 0 1",
+ justifyContent: "space-around",
+ alignItems: "center",
+ },
},
singlePanel: {
width: "50%",
+ [sizes.down("md")]: {
+ width: "25%",
+ // order: "1",
+ },
},
};
diff --git a/src/styles/NavbarStyles.js b/src/styles/NavbarStyles.js
index cb3f3aa..600086e 100644
--- a/src/styles/NavbarStyles.js
+++ b/src/styles/NavbarStyles.js
@@ -1,22 +1,101 @@
import colors from "../constants/colors";
+import sizes from "./sizes";
export default {
+ navbar: {
+ display: "flex",
+ flexDirection: "column",
+
+ [sizes.down("md")]: {
+ padding: "0 3rem",
+ width: "100%",
+ flexDirection: "row",
+ justifyContent: "space-between",
+ },
+ },
+ logo: {
+ "& img": {
+ [sizes.down("md")]: {
+ width: "50%",
+ },
+
+ [sizes.down("xs")]: {
+ width: "30%",
+ },
+ },
+ },
+
+ hamburger: {
+ display: "none",
+
+ [sizes.down("md")]: {
+ display: "inline-block",
+ marginBottom: "1.5rem",
+ fontSize: "1.8rem",
+ },
+ },
+
nav: {
- marginTop: "12rem",
- // padding: "2rem 5rem",
+ marginTop: "7rem",
+
+ [sizes.down("md")]: {
+ marginTop: "2.5rem",
+ display: "flex",
+ flexDirection: "column",
+ justifyContent: "center",
+ alignItems: "center",
+ },
+
+ [sizes.down("sm")]: {
+ marginTop: "2rem",
+ },
+
+ [sizes.down("xs")]: {
+ marginTop: "1rem",
+ },
+ },
+
+ expand: {
+ maxHeight: "25rem !important",
},
+
navItems: {
+ transition: "all .5s",
listStyle: "none",
+ [sizes.down("md")]: {
+ fontSize: "1.5rem",
+ overflow: "hidden",
+ maxHeight: 0,
+ display: "flex",
+ flexDirection: "column",
+ },
+
+ [sizes.down("xs")]: {
+ marginBottom: ".5rem",
+ },
},
+
navItem: {
+ height: "100%",
marginBottom: "5rem",
fontWeight: "500",
position: "relative",
+
+ [sizes.down("md")]: {
+ display: "inline-block",
+ marginBottom: "2.5rem",
+ },
+
+ [sizes.down("xs")]: {
+ marginBottom: "0",
+ },
},
+
navLinks: {
textDecoration: "none",
color: "inherit",
},
+
iconBox: {
display: "flex",
zIndex: "50",
@@ -29,10 +108,15 @@ export default {
zIndex: "50",
},
},
+
icons: {
fontSize: "2.5rem",
zIndex: "50",
padding: "1rem 0",
+
+ [sizes.down("md")]: {
+ display: "none",
+ },
},
active: {
@@ -42,6 +126,11 @@ export default {
zIndex: "10",
position: "relative",
animation: "$float 2s ease infinite",
+ transition: "all .5s",
+
+ [sizes.down("lg")]: {
+ animation: "none",
+ },
"&::before": {
content: '""',
@@ -49,12 +138,35 @@ export default {
width: "155%",
height: "110%",
display: "block",
+ borderRadius: "25px",
+ transform: "translateX(2rem) skewX(10deg)",
backgroundColor: (props) =>
props.isDarkMode ? colors.lightPurple : "rgb(245, 245, 245)",
- transform: "translateX(2rem) skewX(10deg)",
- borderRadius: "25px",
zIndex: 10,
+
+ [sizes.down("lg")]: {
+ width: "120%",
+ padding: ".5rem 2.5rem",
+ height: "100%",
+ transform: "translateX(0) skewX(0)",
+ },
+
+ [sizes.down("md")]: {
+ borderRadius: "10px",
+ width: "100%",
+ padding: ".5rem 1.5rem",
+ },
+
+ [sizes.down("sm")]: {
+ height: "100%",
+ borderRadius: "0",
+ },
+
+ [sizes.down("xs")]: {
+ content: "none",
+ },
},
+
"&::after": {
content: '""',
position: "absolute",
@@ -67,6 +179,10 @@ export default {
props.isDarkMode ? "rgba(255,255,255,.6)nop" : colors.lightPurple,
transform: "translate(-1rem, .1rem) skew(10deg, -5deg)",
borderRadius: "25px",
+
+ [sizes.down("lg")]: {
+ content: "none",
+ },
},
},
},
diff --git a/src/styles/OverviewStyles.js b/src/styles/OverviewStyles.js
index 4d5e47d..1049d75 100644
--- a/src/styles/OverviewStyles.js
+++ b/src/styles/OverviewStyles.js
@@ -1,3 +1,5 @@
+import sizes from "./sizes";
+
export default {
root: {
textAlign: "center",
@@ -6,9 +8,16 @@ export default {
display: "flex",
justifyContent: "space-evenly",
alignItems: "center",
+
+ [sizes.down("sm")]: {
+ flexWrap: "wrap",
+ padding: "0 1rem",
+ },
},
panelContainer: {
width: "20%",
- // padding: ''
+ [sizes.down("sm")]: {
+ width: "40%",
+ },
},
};
diff --git a/src/styles/StaySafeStyles.js b/src/styles/StaySafeStyles.js
index 7f2c486..6608ffb 100644
--- a/src/styles/StaySafeStyles.js
+++ b/src/styles/StaySafeStyles.js
@@ -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",
+ },
},
};
diff --git a/src/styles/SymptomsStyles.js b/src/styles/SymptomsStyles.js
index ff8b4c5..17a5880 100644
--- a/src/styles/SymptomsStyles.js
+++ b/src/styles/SymptomsStyles.js
@@ -1 +1,128 @@
-export default {};
+import sizes from "./sizes";
+
+export default {
+ symptoms: {
+ padding: ".2rem 1rem",
+
+ [sizes.down("md")]: {
+ marginTop: "1.5rem",
+ padding: "1.5rem",
+ },
+ },
+
+ content: {
+ padding: "1rem",
+ display: "flex",
+
+ [sizes.down("lg")]: {
+ flexDirection: "column",
+ },
+ },
+
+ mainContent: {
+ padding: "4rem",
+ flex: "0 0 1",
+ border: "1px solid #ccc",
+ borderRadius: "1rem",
+ marginRight: "2rem",
+
+ [sizes.down("md")]: {
+ border: "0",
+ padding: "1rem",
+ },
+ },
+
+ sidebar: {
+ padding: ".5rem 1rem",
+ flex: "0 0 30%",
+
+ [sizes.down("lg")]: {
+ padding: "1.5rem 1rem",
+ },
+ },
+
+ video: {
+ height: "25rem",
+ borderRadius: "1rem",
+ marginBottom: "5rem",
+
+ [sizes.down("lg")]: {
+ width: "80%",
+ height: "25rem",
+ margin: "1.75rem auto",
+ },
+
+ "& iframe": {
+ display: "block",
+ overflow: "hidden",
+ border: 0,
+ },
+ },
+
+ heading: {
+ marginBottom: "2rem",
+
+ "& span": {
+ color: "#6236FF",
+ },
+
+ [sizes.down("lg")]: {
+ textAlign: "center",
+ },
+ },
+
+ alert: {
+ fontSize: "1.7rem",
+ padding: "2rem",
+ borderRadius: "1rem",
+ color: "rgb(249, 52, 94)",
+ backgroundColor: "rgb(249, 52, 94,.15)",
+ marginBottom: "2.5rem",
+ },
+
+ symptomsMain: {},
+
+ symptomsDiv: {
+ marginTop: "2rem",
+ marginBottom: "3rem",
+ },
+
+ symptomsHeading: {
+ marginTop: "1.5rem",
+ fontSize: "1.7rem",
+ textTransform: "capitalize",
+ },
+
+ sympList: {
+ padding: ".5rem 2rem",
+ textTransform: "capitalize",
+ },
+
+ helpfulLinks: {
+ padding: "1rem 2rem",
+ },
+
+ link: {
+ transition: "all .3s",
+ "&, &:visited": {
+ textDecoration: "none",
+ },
+
+ "& span": {
+ marginLeft: ".25rem",
+ },
+
+ "&:hover": {
+ color: "#000",
+ "& span": {
+ marginLeft: ".5rem",
+ },
+ },
+ },
+
+ info: {},
+
+ footer: {
+ width: "100%",
+ },
+};
diff --git a/src/styles/sizes.js b/src/styles/sizes.js
new file mode 100644
index 0000000..f3f74e4
--- /dev/null
+++ b/src/styles/sizes.js
@@ -0,0 +1,13 @@
+export default {
+ up() {},
+ down(size) {
+ const sizes = {
+ xs: "575.98px",
+ sm: "767.98px",
+ md: "991.98px",
+ lg: "1199.98px",
+ xl: "1350px",
+ };
+ return `@media (max-width: ${sizes[size]} )`;
+ },
+};