Skip to content

Commit cf10e8d

Browse files
Made structural changes
1 parent 4b0c8a7 commit cf10e8d

File tree

3 files changed

+55
-61
lines changed

3 files changed

+55
-61
lines changed

src/components/CovidApp.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ class CovidApp extends Component {
2323
mapData: [],
2424
tableData: [],
2525
};
26+
27+
this.fetchData = this.fetchData.bind(this);
2628
this.formatData = this.formatData.bind(this);
2729
this.findId = this.findId.bind(this);
2830
this.handleFormat = this.handleFormat.bind(this);

src/styles/CovidAppStyles.js

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,57 @@ export default {
9797
transform: "rotate(359deg)",
9898
},
9999
},
100+
101+
button: {
102+
border: "none",
103+
backgroundColor: colors.purple,
104+
padding: "1.5rem 3rem",
105+
color: "#fff",
106+
borderRadius: "10rem",
107+
fontFamily: "inherit",
108+
fontSize: "1.6rem",
109+
// marginTop: "6rem",
110+
marginLeft: "2rem",
111+
transition: "all .4s",
112+
boxShadow: "0 .5rem 1rem rgba(0,0,0,.2)",
113+
position: "relative",
114+
115+
"&:hover": {
116+
backgroundColor: colors.darkPurple,
117+
boxShadow: "0 .25rem .5rem rgba(0,0,0,.2)",
118+
outline: "none",
119+
border: "none",
120+
121+
"&::before": {
122+
transform: "scaleX(1.4) scaleY(1.6)",
123+
opacity: 0,
124+
},
125+
},
126+
127+
"&:focus": {
128+
border: "none",
129+
outline: "none",
130+
},
131+
132+
"&:hover svg": {
133+
animationName: "$rotation",
134+
animationDuration: "1s",
135+
animationTimingFunction: "linear",
136+
animationIterationCount: "infinite",
137+
},
138+
139+
"&::before": {
140+
content: '""',
141+
position: "absolute",
142+
display: "inline-block",
143+
backgroundColor: colors.purple,
144+
width: "100%",
145+
height: "100%",
146+
top: 0,
147+
left: 0,
148+
borderRadius: "10rem",
149+
transition: "all .4s",
150+
zIndex: -1,
151+
},
152+
},
100153
};

src/styles/OverviewStyles.js

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -9,65 +9,4 @@ export default {
99
justifyContent: "space-between",
1010
alignItems: "center",
1111
},
12-
btnBox: {
13-
position: "absolute",
14-
top: "-.5%",
15-
left: "27%",
16-
marginLeft: "2rem",
17-
// transform: "translate(-50%, 0)",
18-
},
19-
button: {
20-
top: "0",
21-
left: "0",
22-
border: "none",
23-
backgroundColor: colors.purple,
24-
padding: "1.5rem 3rem",
25-
color: "#fff",
26-
borderRadius: "10rem",
27-
fontFamily: "inherit",
28-
fontSize: "1.6rem",
29-
marginTop: "6rem",
30-
transition: "all .4s",
31-
boxShadow: "0 .5rem 1rem rgba(0,0,0,.2)",
32-
position: "relative",
33-
34-
"&:hover": {
35-
backgroundColor: colors.darkPurple,
36-
boxShadow: "0 .25rem .5rem rgba(0,0,0,.2)",
37-
outline: "none",
38-
border: "none",
39-
// transform: "translateY(-.3rem)",
40-
41-
"&::before": {
42-
transform: "scaleX(1.4) scaleY(1.6)",
43-
opacity: 0,
44-
},
45-
},
46-
47-
"&:focus": {
48-
border: "none",
49-
outline: "none",
50-
},
51-
52-
"&:hover svg": {
53-
animationName: "$rotation",
54-
animationDuration: "1s",
55-
animationTimingFunction: "linear",
56-
animationIterationCount: "infinite",
57-
},
58-
59-
"&::before": {
60-
content: '""',
61-
position: "absolute",
62-
display: "inline-block",
63-
backgroundColor: colors.purple,
64-
width: "100%",
65-
height: "100%",
66-
top: 0,
67-
left: 0,
68-
borderRadius: "10rem",
69-
transition: "all .4s",
70-
zIndex: -1,
71-
},
72-
},
7312
};

0 commit comments

Comments
 (0)