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";
22import footerStyles from "../styles/Footer.module.scss" ;
33import { linksNav , linksSocial } from "../utils/links" ;
44import NewsletterSubscribe from "./mailchimp/NewsletterSubscribe" ;
5+ import Image from "next/image" ;
56
67export default function Footer ( ) {
78 return (
@@ -19,7 +20,7 @@ export default function Footer() {
1920 </ li >
2021 ) ) }
2122 </ ul >
22- < img
23+ < Image width = { 77 } height = { 72 }
2324 className = { footerStyles . logo }
2425 src = "/images/web-dev-path-logo-small.png"
2526 alt = "Logo"
@@ -36,13 +37,14 @@ export default function Footer() {
3637 </ div >
3738 < div className = { footerStyles . socialMedia } >
3839 { 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 >
4648 ) ) }
4749 </ div >
4850 </ div >
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import Link from "next/link";
22import { useEffect , useState } from "react" ;
33import styles from "../styles/Nav.module.scss" ;
44import { linksNav } from "../utils/links" ;
5+ import Image from "next/image" ;
56
67export default function Nav ( ) {
78 const [ active , setActive ] = useState ( false ) ;
@@ -27,7 +28,7 @@ export default function Nav() {
2728 >
2829 < div className = { styles . align } >
2930 < Link href = "/" >
30- < img
31+ < Image width = { 86 } height = { 80 }
3132 className = { styles . logo }
3233 src = "/images/web-dev-path-logo-small.png"
3334 alt = "Logo"
Original file line number Diff line number Diff line change 3838.logo {
3939 border-radius : 50% ;
4040 height : 4.5em ;
41- cursor : pointer ;
41+ cursor : pointer ;
4242
4343 & :hover {
4444 opacity : 0.6 ;
9898 }
9999
100100 img {
101- height : 2 rem ;
101+ padding : 10 px ;
102102
103103 & :hover {
104104 opacity : 65% ;
156156 text-align : left ;
157157 }
158158}
159+
You can’t perform that action at this time.
0 commit comments