Skip to content

Commit c4333f0

Browse files
committed
aligned footer components
1 parent 869ecdc commit c4333f0

File tree

2 files changed

+68
-5
lines changed

2 files changed

+68
-5
lines changed

components/layout/Footer.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ export default function Footer() {
2323
</a>
2424
</Link>
2525

26+
<div className={footerStyles.footer__navSocialsDiv}>
27+
{/* nav & socials */}
28+
2629
<nav className={footerStyles.footer__nav} aria-label='Main'>
2730
<ul className={footerStyles.footer__navList}>
2831
{linksNav.map(link => (
@@ -35,21 +38,24 @@ export default function Footer() {
3538
</ul>
3639
</nav>
3740

38-
<div>
39-
<ul>
41+
<div className={footerStyles.footer__socialIcons}>
42+
<ul className={footerStyles.footer__socialList}>
4043
{linksSocial.map(link => (
41-
<li key={link.id}>
44+
<li className={footerStyles.footer__socialItem} key={link.id}>
4245
<Image
4346
src={link.src}
44-
height={47}
45-
width={47}
47+
height={82}
48+
width={68}
4649
/>
4750
</li>
4851
))}
4952
</ul>
5053
</div>
54+
</div>
5155

5256
</Container>
57+
58+
5359
<Container>
5460
<p className={footerStyles.footer__copyright}>
5561
© Web Dev Path {new Date().getFullYear()}. All rights reserved.

styles/Footer.module.scss

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,20 @@
3030

3131
&__navList {
3232
padding: 0;
33+
34+
@include tablet {
35+
display: flex;
36+
flex-direction: row;
37+
}
3338
}
3439

40+
3541
&__navItem {
3642
margin: 0.5rem 0;
43+
44+
@include tablet {
45+
padding-left: 60px;
46+
}
3747
}
3848

3949
&__logo {
@@ -52,10 +62,57 @@
5262
}
5363
}
5464

65+
&____navSocialsDiv {
66+
display: flex;
67+
flex-direction: column;
68+
69+
}
70+
71+
&__socialIcons {
72+
73+
@include tablet {
74+
75+
}
76+
77+
@include large-desktop {
78+
79+
}
80+
}
81+
82+
&__socialList {
83+
display: flex;
84+
justify-content: center;
85+
margin: 0;
86+
padding: 0;
87+
88+
@include tablet {
89+
justify-content: end;
90+
}
91+
}
92+
93+
&__socialItem {
94+
width: 47px;
95+
96+
@include tablet {
97+
padding-left: 28px;
98+
max-width: 68px;
99+
}
100+
101+
@include large-desktop {
102+
max-width: 100%;
103+
padding-left: 28px;
104+
width: 68px;
105+
}
106+
}
107+
55108
&__copyright {
56109
text-align: center;
57110
margin: 0;
58111
font-size: 1rem;
59112
padding-bottom: 2.5rem;
113+
114+
@include tablet {
115+
text-align: end;
116+
}
60117
}
61118
}

0 commit comments

Comments
 (0)