Skip to content

Commit a23418e

Browse files
committed
fixed image link
1 parent c4333f0 commit a23418e

File tree

2 files changed

+46
-37
lines changed

2 files changed

+46
-37
lines changed

components/layout/Footer.js

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -23,39 +23,42 @@ export default function Footer() {
2323
</a>
2424
</Link>
2525

26-
<div className={footerStyles.footer__navSocialsDiv}>
27-
{/* nav & socials */}
28-
29-
<nav className={footerStyles.footer__nav} aria-label='Main'>
30-
<ul className={footerStyles.footer__navList}>
31-
{linksNav.map(link => (
32-
<li className={footerStyles.footer__navItem} key={link.text}>
33-
<Link href={link.href}>
34-
<a title={link.text}>{link.text}</a>
35-
</Link>
36-
</li>
37-
))}
38-
</ul>
39-
</nav>
26+
<div className={footerStyles.footer__navSocialsDiv}>
27+
{/* nav & socials */}
4028

41-
<div className={footerStyles.footer__socialIcons}>
42-
<ul className={footerStyles.footer__socialList}>
43-
{linksSocial.map(link => (
44-
<li className={footerStyles.footer__socialItem} key={link.id}>
45-
<Image
46-
src={link.src}
47-
height={82}
48-
width={68}
49-
/>
50-
</li>
51-
))}
52-
</ul>
53-
</div>
54-
</div>
29+
<nav className={footerStyles.footer__nav} aria-label='Main'>
30+
<ul className={footerStyles.footer__navList}>
31+
{linksNav.map(link => (
32+
<li className={footerStyles.footer__navItem} key={link.text}>
33+
<Link href={link.href}>
34+
<a title={link.text}>{link.text}</a>
35+
</Link>
36+
</li>
37+
))}
38+
</ul>
39+
</nav>
5540

41+
<div className={footerStyles.footer__socialIcons}>
42+
<ul className={footerStyles.footer__socialList}>
43+
{linksSocial.map(link => (
44+
<li className={footerStyles.footer__socialItem} key={link.id}>
45+
<Link href={link.href}>
46+
<a title={link.text} target="_blank">
47+
<Image
48+
href={link.href}
49+
src={link.src}
50+
height={82}
51+
width={68}
52+
/>
53+
</a>
54+
</Link>
55+
</li>
56+
))}
57+
</ul>
58+
</div>
59+
</div>
5660
</Container>
5761

58-
5962
<Container>
6063
<p className={footerStyles.footer__copyright}>
6164
© Web Dev Path {new Date().getFullYear()}. All rights reserved.

styles/Footer.module.scss

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,22 @@
1717
}
1818
}
1919

20+
&____navSocialsDiv {
21+
display: flex;
22+
// flex-direction: column;
23+
24+
}
25+
2026
&__nav {
27+
2128
@include tablet {
2229
min-width: 6.5rem;
2330
order: 2;
2431
}
2532

2633
@include large-desktop {
2734
font-size: 1.5rem;
35+
order: 2;
2836
}
2937
}
3038

@@ -37,7 +45,6 @@
3745
}
3846
}
3947

40-
4148
&__navItem {
4249
margin: 0.5rem 0;
4350

@@ -62,16 +69,13 @@
6269
}
6370
}
6471

65-
&____navSocialsDiv {
66-
display: flex;
67-
flex-direction: column;
68-
69-
}
72+
//social
7073

7174
&__socialIcons {
72-
75+
76+
7377
@include tablet {
74-
78+
7579
}
7680

7781
@include large-desktop {
@@ -91,11 +95,13 @@
9195
}
9296

9397
&__socialItem {
98+
cursor: pointer;
9499
width: 47px;
95100

96101
@include tablet {
97102
padding-left: 28px;
98103
max-width: 68px;
104+
max-width: 100%;
99105
}
100106

101107
@include large-desktop {

0 commit comments

Comments
 (0)