Skip to content

Commit 0779f63

Browse files
Add: Footer styling
1 parent ad53a2b commit 0779f63

File tree

4 files changed

+113
-26
lines changed

4 files changed

+113
-26
lines changed

components/Footer.js

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default function Footer() {
55
return (
66
<footer className={footerStyles.footer}>
77
<div className={footerStyles.container}>
8-
<div className={footerStyles.column}>
8+
<div className={footerStyles.columnLeft}>
99
<ul className={footerStyles.footerList}>
1010
<li className={footerStyles.footerItem}>
1111
<Link href="/about-us">
@@ -23,12 +23,16 @@ export default function Footer() {
2323
</Link>
2424
</li>
2525
</ul>
26-
<img src="/images/web-dev-path-logo-small.png" alt="Logo" />
26+
<img
27+
className={footerStyles.logo}
28+
src="/images/web-dev-path-logo-small.png"
29+
alt="Logo"
30+
/>
2731
</div>
28-
<div className={footerStyles.column}>
32+
<div className={footerStyles.columnRight}>
2933
<div className={footerStyles.subscribe}>
3034
<h2>Subscribe for more</h2>
31-
<p>
35+
<p className={footerStyles.text}>
3236
Get the answer to the most common questions directly to your email
3337
</p>
3438
<form>
@@ -39,15 +43,21 @@ export default function Footer() {
3943
</div>
4044
<div className={footerStyles.socialMedia}>
4145
<Link href="#">
42-
<img src="" alt="Github" />
46+
<img src="iconmonstr-github-1.svg" alt="Github" />
4347
</Link>
4448
<Link href="#">
45-
<img src="" alt="Twitter" />
49+
<img
50+
className={footerStyles.socialMedia__item}
51+
src="iconmonstr-twitter-4.svg"
52+
alt="Twitter"
53+
/>
4654
</Link>
4755
</div>
4856
</div>
4957
</div>
50-
<p>Web Dev Path 2021. All rights reserved.</p>
58+
<p className={footerStyles.copyright}>
59+
Web Dev Path 2021. All rights reserved.
60+
</p>
5161
</footer>
5262
);
5363
}

public/iconmonstr-github-1.svg

Lines changed: 1 addition & 0 deletions
Loading

public/iconmonstr-twitter-4.svg

Lines changed: 1 addition & 0 deletions
Loading

styles/Footer.module.css

Lines changed: 94 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,118 @@
11
.footer {
22
width: 100%;
3-
border-top: 1px solid #eaeaea;
43
}
54

6-
.footer ul {
5+
.footerList {
76
list-style: none;
87
padding: 0;
98
}
109

1110
.container {
12-
display: flex;
13-
justify-content: space-around;
14-
flex-wrap: wrap;
11+
padding: 1rem 0;
1512
margin: 1rem;
16-
border: 1px solid red;
13+
border-top: 1px solid #696969;
14+
border-bottom: 1px solid #696969;
15+
}
16+
17+
.columnLeft {
18+
display: flex;
19+
justify-content: space-between;
20+
align-items: center;
1721
}
1822

19-
/* code {
20-
background: #fafafa;
21-
border-radius: 5px;
22-
padding: 0.75rem;
23-
font-size: 1.1rem;
24-
font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
25-
Bitstream Vera Sans Mono, Courier New, monospace;
26-
} */
23+
.footerItem + .footerItem {
24+
margin-top: 0.5rem;
25+
}
2726

2827
.logo {
29-
height: 1em;
28+
border-radius: 50%;
29+
height: 5em;
30+
}
31+
32+
.subscribe {
33+
text-align: center;
34+
}
35+
36+
.subscribe h2 {
37+
margin-bottom: 0.8rem;
38+
font-size: 1.8rem;
39+
}
40+
41+
.subscribe p {
42+
margin-top: 0.2rem;
43+
font-size: 0.8rem;
44+
color: #696969;
45+
}
46+
47+
.subscribe .text {
48+
font-size: 1rem;
49+
color: #000;
50+
}
51+
52+
.socialMedia {
53+
margin: 1.8rem 0 1rem;
54+
display: flex;
55+
justify-content: center;
56+
}
57+
58+
.socialMedia__item {
59+
margin-left: 1rem;
60+
}
61+
62+
.copyright {
63+
font-size: 0.8rem;
64+
color: #696969;
65+
text-align: center;
3066
}
3167

3268
@media (min-width: 578px) {
33-
/* .footer {
69+
.container {
70+
max-width: 800px;
71+
margin: 0 auto;
72+
display: flex;
73+
flex-direction: row;
74+
justify-content: space-between;
75+
}
76+
77+
.columnLeft {
3478
display: flex;
35-
align-items: center;
3679
flex-direction: column;
37-
} */
80+
}
3881

39-
.container {
82+
.columnRight {
83+
width: 55%;
84+
display: flex;
85+
flex-direction: column;
86+
}
87+
88+
.subscribe {
89+
text-align: left;
90+
}
91+
92+
.subscribe h2 {
93+
margin-top: 0.5rem;
94+
}
95+
96+
.subscribe input {
97+
height: 1.8rem;
98+
width: 65%;
99+
}
100+
101+
.subscribe button {
102+
height: 1.8rem;
103+
width: 30%;
104+
}
105+
106+
.socialMedia {
107+
justify-content: flex-end;
108+
margin-right: 1rem;
109+
}
110+
111+
.copyright {
40112
max-width: 800px;
41113
margin: 0 auto;
114+
margin-top: 1rem;
115+
margin-bottom: 1rem;
116+
text-align: left;
42117
}
43118
}

0 commit comments

Comments
 (0)