Skip to content

Commit 76a595a

Browse files
Make footer responsive
1 parent 608b15f commit 76a595a

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

src/styles/FooterStyles.js

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
1+
import sizes from "./sizes";
2+
13
export default {
24
footer: {
35
display: "flex",
46
justifyContent: "space-around",
57
marginTop: "3rem",
68
padding: "4rem",
9+
10+
[sizes.down("md")]: {
11+
marginTop: "2rem",
12+
padding: "2rem",
13+
},
14+
15+
[sizes.down("sm")]: {
16+
marginTop: "1rem",
17+
padding: "1.5rem",
18+
flexDirection: "column",
19+
alignItems: "center",
20+
},
721
},
22+
823
btn: {
924
padding: "1.5rem 4rem",
1025
fontFamily: "inherit",
@@ -14,12 +29,31 @@ export default {
1429
color: "white",
1530
transition: "all .3s",
1631
transform: "translateY(-.5rem)",
17-
boxShadow: "0 .5rem 2rem rgba(0,0,0,.5)",
1832
textDecoration: "none",
1933

34+
[sizes.down("md")]: {
35+
padding: "1rem 2.5rem",
36+
fontSize: "1.6rem",
37+
},
38+
39+
[sizes.down("sm")]: {
40+
marginBottom: "1rem",
41+
textAlign: "center",
42+
boxShadow: "0",
43+
fontSize: "1.3rem",
44+
padding: ".5rem 2.5rem",
45+
transform: "translateY(0)",
46+
borderRadius: "5px",
47+
width: "15rem",
48+
},
49+
2050
"&:hover": {
2151
transform: "translateY(0)",
2252
boxShadow: "0 .25rem 1rem rgba(0,0,0,.25)",
53+
54+
[sizes.down("sm")]: {
55+
boxShadow: "none",
56+
},
2357
},
2458
},
2559

0 commit comments

Comments
 (0)