Skip to content

Commit 99e5f9e

Browse files
committed
Update
1 parent 82d5b6a commit 99e5f9e

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/components/HeroPattern.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1+
import Image from 'next/image'
2+
13
export function HeroPattern() {
24
return (
35
<div className="absolute inset-0 -z-10 mx-0 max-w-none flex justify-center overflow-hidden">
46
<div className="w-[108rem] flex-none flex justify-end">
57
<picture>
68
<source srcSet="/images/[email protected]" type="image/avif" className="not-prose"/>
79
{/* eslint-disable-next-line @next/next/no-img-element */}
8-
<img
10+
<Image
911
src="/images/[email protected]" alt=""
1012
className="not-prose w-[71.75rem] flex-none max-w-none dark:hidden" decoding="async"/>
1113
</picture>
1214
<picture>
1315
<source srcSet="/images/[email protected]" type="image/avif" className="not-prose"/>
1416
{/* eslint-disable-next-line @next/next/no-img-element */}
15-
<img src="/images/[email protected]" alt=""
17+
<Image src="/images/[email protected]" alt=""
1618
className="not-prose w-[90rem] flex-none max-w-none hidden dark:block" decoding="async"/>
1719
</picture>
1820
</div>

src/components/Logo.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// import Image from 'next/image'
1+
import Image from 'next/image'
22

33
export function Logo() {
44
return (
55
<div className="h-8 w-full">
6-
<img src='/logo-light.png' className="block dark:hidden w-full h-auto max-h-8 mt-1" alt="Triangle Web"></img>
7-
<img src='/logo-dark.png' className="hidden dark:block w-full h-auto max-h-8 mt-1" alt="Triangle Web"></img>
6+
<Image src='/logo-light.png' className="block dark:hidden w-full h-auto max-h-8 mt-1" alt="Triangle Web"></Image>
7+
<Image src='/logo-dark.png' className="hidden dark:block w-full h-auto max-h-8 mt-1" alt="Triangle Web"></Image>
88
</div>
99
)
1010
}

0 commit comments

Comments
 (0)