File tree Expand file tree Collapse file tree 4 files changed +18
-14
lines changed Expand file tree Collapse file tree 4 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import Link from "next/link";
2
2
import footerStyles from "../styles/Footer.module.scss" ;
3
3
import { linksNav , linksSocial } from "../utils/links" ;
4
4
import NewsletterSubscribe from "./mailchimp/NewsletterSubscribe" ;
5
+ import Image from "next/image" ;
5
6
6
7
export default function Footer ( ) {
7
8
return (
@@ -19,7 +20,7 @@ export default function Footer() {
19
20
</ li >
20
21
) ) }
21
22
</ ul >
22
- < img
23
+ < Image width = { 77 } height = { 72 }
23
24
className = { footerStyles . logo }
24
25
src = "/images/web-dev-path-logo-small.png"
25
26
alt = "Logo"
@@ -36,13 +37,14 @@ export default function Footer() {
36
37
</ div >
37
38
< div className = { footerStyles . socialMedia } >
38
39
{ linksSocial . map ( ( link ) => (
39
- < Link href = { link . href } key = { link . text } >
40
- < img
41
- className = { footerStyles . socialMedia }
42
- src = { link . src }
43
- alt = { link . text }
44
- />
45
- </ Link >
40
+ < section className = { footerStyles . socialMedia } >
41
+ < Link href = { link . href } key = { link . text } >
42
+ < Image width = { 32 } height = { 32 }
43
+ src = { link . src }
44
+ alt = { link . text }
45
+ />
46
+ </ Link >
47
+ </ section >
46
48
) ) }
47
49
</ div >
48
50
</ div >
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import Link from "next/link";
2
2
import { useEffect , useState } from "react" ;
3
3
import styles from "../styles/Nav.module.scss" ;
4
4
import { linksNav } from "../utils/links" ;
5
+ import Image from "next/image" ;
5
6
6
7
export default function Nav ( ) {
7
8
const [ active , setActive ] = useState ( false ) ;
@@ -27,7 +28,7 @@ export default function Nav() {
27
28
>
28
29
< div className = { styles . align } >
29
30
< Link href = "/" >
30
- < img
31
+ < Image width = { 86 } height = { 80 }
31
32
className = { styles . logo }
32
33
src = "/images/web-dev-path-logo-small.png"
33
34
alt = "Logo"
Original file line number Diff line number Diff line change 38
38
.logo {
39
39
border-radius : 50% ;
40
40
height : 4.5em ;
41
- cursor : pointer ;
41
+ cursor : pointer ;
42
42
43
43
& :hover {
44
44
opacity : 0.6 ;
98
98
}
99
99
100
100
img {
101
- height : 2 rem ;
101
+ padding : 10 px ;
102
102
103
103
& :hover {
104
104
opacity : 65% ;
156
156
text-align : left ;
157
157
}
158
158
}
159
+
You can’t perform that action at this time.
0 commit comments