Skip to content

Commit 869ecdc

Browse files
committed
added social icons svg
1 parent 68083f6 commit 869ecdc

File tree

5 files changed

+66
-15
lines changed

5 files changed

+66
-15
lines changed

components/layout/Footer.js

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Link from 'next/link';
22
import footerStyles from '@/styles/Footer.module.scss';
33
import { linksNav } from '@/utils/links';
4+
import { linksSocial } from '@/utils/links';
45
import NewsletterSubscribe from '@/components/mailchimp/NewsletterSubscribe';
56
import Image from 'next/image';
67
import Container from '@/components/containers/Container';
@@ -9,7 +10,19 @@ export default function Footer() {
910
return (
1011
<footer className={footerStyles.footer}>
1112
<NewsletterSubscribe />
13+
1214
<Container className={footerStyles.footer__inner}>
15+
<Link href='/'>
16+
<a className={footerStyles.footer__logo} title='Go to the Homepage'>
17+
<Image
18+
src='/images/svg/logo.svg'
19+
height={250}
20+
width={250}
21+
alt='Logo'
22+
/>
23+
</a>
24+
</Link>
25+
1326
<nav className={footerStyles.footer__nav} aria-label='Main'>
1427
<ul className={footerStyles.footer__navList}>
1528
{linksNav.map(link => (
@@ -21,16 +34,21 @@ export default function Footer() {
2134
))}
2235
</ul>
2336
</nav>
24-
<Link href='/'>
25-
<a className={footerStyles.footer__logo} title='Go to the Homepage'>
26-
<Image
27-
src='/images/svg/logo.svg'
28-
height={250}
29-
width={250}
30-
alt='Logo'
31-
/>
32-
</a>
33-
</Link>
37+
38+
<div>
39+
<ul>
40+
{linksSocial.map(link => (
41+
<li key={link.id}>
42+
<Image
43+
src={link.src}
44+
height={47}
45+
width={47}
46+
/>
47+
</li>
48+
))}
49+
</ul>
50+
</div>
51+
3452
</Container>
3553
<Container>
3654
<p className={footerStyles.footer__copyright}>

public/images/svg/GitHub.svg

Lines changed: 9 additions & 0 deletions
Loading

public/images/svg/LinkedIn.svg

Lines changed: 9 additions & 0 deletions
Loading

public/images/svg/YouTube.svg

Lines changed: 9 additions & 0 deletions
Loading

utils/links.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,20 @@ export const linksNav = [
1212
export const linksSocial = [
1313
{
1414
id: 1,
15-
text: 'Github',
15+
text: 'LinkedIn',
1616
href: '#',
17-
src: '/images/svg/iconmonstr-github.svg',
17+
src: '/images/svg/LinkedIn.svg',
1818
},
1919
{
2020
id: 2,
21-
text: 'Twitter',
22-
href: '#',
23-
src: '/images/svg/iconmonstr-twitter.svg',
21+
text: 'YouTube',
22+
href: 'https://www.youtube.com/channel/UCCLwmU7r4IUWZOtH3bCEN6g',
23+
src: '/images/svg/YouTube.svg',
24+
},
25+
{
26+
id: 3,
27+
text: 'Github',
28+
href: 'https://github.com/Web-Dev-Path',
29+
src: '/images/svg/GitHub.svg',
2430
},
2531
];

0 commit comments

Comments
 (0)