Skip to content

Commit 9d6bdb0

Browse files
Add Symptoms and minor changes
1 parent 2a74ef6 commit 9d6bdb0

File tree

4 files changed

+174
-5
lines changed

4 files changed

+174
-5
lines changed

src/App.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
}
44

55
.navBar {
6-
flex: 0 0 10%;
6+
flex: 0 0 8%;
77
min-height: 100vh;
88
background-color: #1A1053;
99
color: rgba(255, 255, 255, .9);

src/App.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Navbar from "./components/Navbar";
66
import { Switch, Route } from "react-router-dom";
77
import StaySafe from "./components/StaySafe";
88
import Help from "./components/Help";
9+
import Symptoms from "./components/Symptoms";
910

1011
class App extends Component {
1112
constructor(props) {
@@ -40,7 +41,7 @@ class App extends Component {
4041
/>
4142
)}
4243
/>
43-
<Route exact path="/symptoms" render={() => <h1>symptoms</h1>} />
44+
<Route exact path="/symptoms" render={() => <Symptoms />} />
4445
<Route exact path="/stay-safe" render={() => <StaySafe />} />
4546
<Route exact path="/essentials" render={() => <Help />} />
4647
<Route

src/components/Symptoms.js

Lines changed: 85 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,95 @@
11
import React, { Component } from "react";
22
import { withStyles } from "@material-ui/styles";
33
import styles from "../styles/SymptomsStyles";
4+
import { Link } from "react-router-dom";
45

56
class Symptoms extends Component {
67
render() {
8+
const { classes } = this.props;
79
return (
8-
<div>
9-
<h1>Symptoms</h1>
10+
<div className={classes.symptoms}>
11+
<h2 className={classes.heading}>
12+
<span>COVID-19 Coronavirus</span> - Symptoms
13+
</h2>
14+
<div className={classes.content}>
15+
<div className={classes.mainContent}>
16+
<div className={classes.alert}>
17+
<p>
18+
There’s currently no vaccine to prevent coronavirus disease
19+
(COVID-19). So, take the necessary preventive measures.
20+
</p>
21+
</div>
22+
<div className={classes.symptomsMain}>
23+
<p>
24+
On average it takes 5–6 days from when someone is infected with
25+
the virus for symptoms to show, however it can take up to 14
26+
days. People with mild symptoms who are otherwise healthy should
27+
self-isolate. Seek medical attention if you have a fever, a
28+
cough, and difficulty breathing.
29+
</p>
30+
</div>
31+
<div className={classes.symptomsDiv}>
32+
<p>
33+
COVID-19 affects different people in different ways. Most
34+
infected people will develop mild to moderate symptoms.
35+
</p>
36+
<h5 className={classes.symptomsHeading}>Common symptoms</h5>
37+
<ul className={classes.sympList}>
38+
<li>fever.</li>
39+
<li>tiredness.</li>
40+
<li>dry cough.</li>
41+
</ul>
42+
<h5 className={classes.symptomsHeading}>
43+
Some people may experience
44+
</h5>
45+
<ul className={classes.sympList}>
46+
<li>aches and pains.</li>
47+
<li>nasal congestion.</li>
48+
<li>runny</li>
49+
<li>nose.</li>
50+
<li>sore throat.</li>
51+
<li>diarrhoea.</li>
52+
</ul>
53+
</div>
54+
<small className={classes.info}>
55+
These are for informational purposes only. Consult your local
56+
medical authority for advice. (Source: World Health Organization)
57+
</small>
58+
</div>
59+
<div className={classes.sidebar}>
60+
<div className={classes.video}>
61+
<iframe
62+
title="coronavirus-who"
63+
width="100%"
64+
height="100%"
65+
src="https://www.youtube.com/embed/bPITHEiFWLc"
66+
frameBorder="0"
67+
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
68+
allowFullScreen
69+
></iframe>
70+
</div>
71+
<div>
72+
<h4>Useful Links</h4>
73+
<ul className={classes.helpfulLinks}>
74+
<li>
75+
<Link className={classes.link} to="/stay-safe">
76+
Prevention of Coronavirus.
77+
</Link>
78+
</li>
79+
<li>
80+
<a
81+
className={classes.link}
82+
href="https://www.who.int/emergencies/diseases/novel-coronavirus-2019"
83+
target="_blank"
84+
rel="noopener noreferrer"
85+
>
86+
Learn more on who.int
87+
</a>
88+
</li>
89+
</ul>
90+
</div>
91+
</div>
92+
</div>
1093
</div>
1194
);
1295
}

src/styles/SymptomsStyles.js

Lines changed: 86 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,86 @@
1-
export default {};
1+
export default {
2+
symptoms: {
3+
padding: ".2rem 1rem",
4+
},
5+
6+
content: {
7+
padding: "1rem",
8+
display: "flex",
9+
},
10+
11+
mainContent: {
12+
padding: "4rem",
13+
flex: "0 0 1",
14+
border: "1px solid #ccc",
15+
borderRadius: "1rem",
16+
marginRight: "2rem",
17+
},
18+
19+
sidebar: {
20+
padding: ".5rem 1rem",
21+
flex: "0 0 30%",
22+
},
23+
24+
video: {
25+
height: "25rem",
26+
borderRadius: "1rem",
27+
marginBottom: "4rem",
28+
"& iframe": {
29+
display: "block",
30+
overflow: "hidden",
31+
border: 0,
32+
},
33+
},
34+
35+
heading: {
36+
marginBottom: "2rem",
37+
"& span": {
38+
color: "#6236FF",
39+
},
40+
},
41+
42+
alert: {
43+
fontSize: "1.7rem",
44+
padding: "2rem",
45+
borderRadius: "1rem",
46+
color: "rgb(249, 52, 94)",
47+
backgroundColor: "rgb(249, 52, 94,.15)",
48+
marginBottom: "2.5rem",
49+
},
50+
51+
symptomsMain: {},
52+
53+
symptomsDiv: {
54+
marginTop: "2rem",
55+
marginBottom: "3rem",
56+
},
57+
58+
symptomsHeading: {
59+
marginTop: "1.5rem",
60+
fontSize: "1.7rem",
61+
textTransform: "capitalize",
62+
},
63+
64+
sympList: {
65+
padding: ".5rem 2rem",
66+
textTransform: "capitalize",
67+
},
68+
69+
helpfulLinks: {
70+
padding: "1rem 2rem",
71+
},
72+
73+
link: {
74+
transition: "all .2s",
75+
"&, &:visited": {
76+
textDecoration: "none",
77+
},
78+
79+
"&:hover": {
80+
color: "#000",
81+
marginRight: "2rem",
82+
},
83+
},
84+
85+
info: {},
86+
};

0 commit comments

Comments
 (0)