Skip to content

Commit c2c91a0

Browse files
committed
Seperate header and footer links, add new logo to header
1 parent ca9cfec commit c2c91a0

File tree

4 files changed

+27
-22
lines changed

4 files changed

+27
-22
lines changed

components/Footer.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Link from 'next/link';
22
import footerStyles from '../styles/Footer.module.scss';
3-
import { linksNav } from '../utils/links';
3+
import { footerNavLinks } from '../utils/links';
44
import NewsletterSubscribe from './mailchimp/NewsletterSubscribe';
55
import Image from 'next/image';
66

@@ -11,7 +11,7 @@ export default function Footer() {
1111
<section className={footerStyles.footer__section}>
1212
<nav className={footerStyles.footer__nav} aria-label="Main">
1313
<ul className={footerStyles.footer__navList}>
14-
{linksNav.map(link => (
14+
{footerNavLinks.map(link => (
1515
<li className={footerStyles.footer__navItem} key={link.text}>
1616
<Link href={link.href}>{link.text}</Link>
1717
</li>
@@ -20,7 +20,12 @@ export default function Footer() {
2020
</nav>
2121
<Link href="/">
2222
<a className={footerStyles.footer__logo} title="Go to the Homepage">
23-
<Image src="/images/svg/logo.svg" height={326} width={326} />
23+
<Image
24+
src="/images/svg/logo.svg"
25+
height={326}
26+
width={326}
27+
alt="Logo"
28+
/>
2429
</a>
2530
</Link>
2631
</section>

components/Nav.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Link from 'next/link';
22
import { useEffect, useState } from 'react';
33
import styles from '../styles/Nav.module.scss';
4-
import { linksNav } from '../utils/links';
4+
import { headerNavLinks } from '../utils/links';
55
import Image from 'next/image';
66

77
export default function Nav() {
@@ -28,10 +28,9 @@ export default function Nav() {
2828
<Link href="/" passHref>
2929
<a>
3030
<Image
31-
width={86}
32-
height={80}
33-
className={styles.logo}
34-
src="/images/web-dev-path-logo-small.png"
31+
src="/images/svg/logo.svg"
32+
height={115.54}
33+
width={180}
3534
alt="Logo"
3635
/>
3736
</a>
@@ -46,7 +45,7 @@ export default function Nav() {
4645
</div>
4746
<nav className={`${active ? styles.navVisible : styles.nav}`}>
4847
<ul className={styles.navList}>
49-
{linksNav.map(link => (
48+
{headerNavLinks.map(link => (
5049
<li className={styles.navItem} key={link.href}>
5150
<Link href={link.href}>
5251
<a className={styles.navLink} title={link.text}>

styles/Nav.module.scss

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
.header {
1010
width: 100%;
11-
padding: 1em 0;
11+
padding: 2.25rem 0;
12+
background-color: $dark-bg-color;
1213
}
1314

1415
.align {
@@ -91,24 +92,14 @@
9192

9293
.navLink {
9394
text-decoration: none;
94-
color: $primary-content-color;
95+
color: $white;
9596

9697
&:focus,
9798
&:hover {
9899
opacity: 0.6;
99100
}
100101
}
101102

102-
.logo {
103-
border-radius: 50%;
104-
height: 5em;
105-
cursor: pointer;
106-
107-
&:hover {
108-
opacity: 0.6;
109-
}
110-
}
111-
112103
@media (min-width: $tablet-breakpoint) {
113104
.navToggle {
114105
display: none;

utils/links.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const linksNav = [
1+
export const footerNavLinks = [
22
{
33
text: 'Join us',
44
href: 'https://webdevpath.slack.com/join/shared_invite/zt-xqqgwwo5-a09BSVWC9ZrHmS6RaMBzVw#/shared-invite/email',
@@ -8,6 +8,16 @@ export const linksNav = [
88
{ text: 'Contact Us', href: '/contact-us' },
99
];
1010

11+
export const headerNavLinks = [
12+
{ text: 'About', href: '/about-us' },
13+
{ text: 'Blog', href: '/blog' },
14+
{ text: 'Contact', href: '/contact-us' },
15+
{
16+
text: 'Join us',
17+
href: 'https://webdevpath.slack.com/join/shared_invite/zt-xqqgwwo5-a09BSVWC9ZrHmS6RaMBzVw#/shared-invite/email',
18+
},
19+
];
20+
1121
export const linksSocial = [
1222
{ text: 'Github', href: '#', src: '/images/svg/iconmonstr-github.svg' },
1323
{ text: 'Twitter', href: '#', src: '/images/svg/iconmonstr-twitter.svg' },

0 commit comments

Comments
 (0)