File tree Expand file tree Collapse file tree 4 files changed +27
-22
lines changed Expand file tree Collapse file tree 4 files changed +27
-22
lines changed Original file line number Diff line number Diff line change 1
1
import Link from 'next/link' ;
2
2
import footerStyles from '../styles/Footer.module.scss' ;
3
- import { linksNav } from '../utils/links' ;
3
+ import { footerNavLinks } from '../utils/links' ;
4
4
import NewsletterSubscribe from './mailchimp/NewsletterSubscribe' ;
5
5
import Image from 'next/image' ;
6
6
@@ -11,7 +11,7 @@ export default function Footer() {
11
11
< section className = { footerStyles . footer__section } >
12
12
< nav className = { footerStyles . footer__nav } aria-label = "Main" >
13
13
< ul className = { footerStyles . footer__navList } >
14
- { linksNav . map ( link => (
14
+ { footerNavLinks . map ( link => (
15
15
< li className = { footerStyles . footer__navItem } key = { link . text } >
16
16
< Link href = { link . href } > { link . text } </ Link >
17
17
</ li >
@@ -20,7 +20,12 @@ export default function Footer() {
20
20
</ nav >
21
21
< Link href = "/" >
22
22
< 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
+ />
24
29
</ a >
25
30
</ Link >
26
31
</ section >
Original file line number Diff line number Diff line change 1
1
import Link from 'next/link' ;
2
2
import { useEffect , useState } from 'react' ;
3
3
import styles from '../styles/Nav.module.scss' ;
4
- import { linksNav } from '../utils/links' ;
4
+ import { headerNavLinks } from '../utils/links' ;
5
5
import Image from 'next/image' ;
6
6
7
7
export default function Nav ( ) {
@@ -28,10 +28,9 @@ export default function Nav() {
28
28
< Link href = "/" passHref >
29
29
< a >
30
30
< 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 }
35
34
alt = "Logo"
36
35
/>
37
36
</ a >
@@ -46,7 +45,7 @@ export default function Nav() {
46
45
</ div >
47
46
< nav className = { `${ active ? styles . navVisible : styles . nav } ` } >
48
47
< ul className = { styles . navList } >
49
- { linksNav . map ( link => (
48
+ { headerNavLinks . map ( link => (
50
49
< li className = { styles . navItem } key = { link . href } >
51
50
< Link href = { link . href } >
52
51
< a className = { styles . navLink } title = { link . text } >
Original file line number Diff line number Diff line change 8
8
9
9
.header {
10
10
width : 100% ;
11
- padding : 1em 0 ;
11
+ padding : 2.25rem 0 ;
12
+ background-color : $dark-bg-color ;
12
13
}
13
14
14
15
.align {
91
92
92
93
.navLink {
93
94
text-decoration : none ;
94
- color : $primary-content-color ;
95
+ color : $white ;
95
96
96
97
& :focus ,
97
98
& :hover {
98
99
opacity : 0.6 ;
99
100
}
100
101
}
101
102
102
- .logo {
103
- border-radius : 50% ;
104
- height : 5em ;
105
- cursor : pointer ;
106
-
107
- & :hover {
108
- opacity : 0.6 ;
109
- }
110
- }
111
-
112
103
@media (min-width : $tablet-breakpoint ) {
113
104
.navToggle {
114
105
display : none ;
Original file line number Diff line number Diff line change 1
- export const linksNav = [
1
+ export const footerNavLinks = [
2
2
{
3
3
text : 'Join us' ,
4
4
href : 'https://webdevpath.slack.com/join/shared_invite/zt-xqqgwwo5-a09BSVWC9ZrHmS6RaMBzVw#/shared-invite/email' ,
@@ -8,6 +8,16 @@ export const linksNav = [
8
8
{ text : 'Contact Us' , href : '/contact-us' } ,
9
9
] ;
10
10
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
+
11
21
export const linksSocial = [
12
22
{ text : 'Github' , href : '#' , src : '/images/svg/iconmonstr-github.svg' } ,
13
23
{ text : 'Twitter' , href : '#' , src : '/images/svg/iconmonstr-twitter.svg' } ,
You can’t perform that action at this time.
0 commit comments