From c74fad179379260dcf46edeae22c1f04ee842508 Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Sat, 2 Dec 2023 16:29:03 -0700 Subject: Manual static image optimization --- components/layout/Header.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'components/layout') diff --git a/components/layout/Header.tsx b/components/layout/Header.tsx index 5e589c9..f55047c 100644 --- a/components/layout/Header.tsx +++ b/components/layout/Header.tsx @@ -1,11 +1,9 @@ -'use client' - import React from 'react' -import Image from 'next/image' +import Image from 'components/Image' import { usePathname } from 'next/navigation' -import header from '~/images/aurora-1197753.jpg' +const header = 'images/aurora-1197753.jpg' export default function Title() { const pathname = usePathname() @@ -29,7 +27,7 @@ export default function Title() { src={header} alt="" role="presentation" - fill={true} + width={[2560,1920,1280,800,600]} sizes={` (max-width: 2560) 100vw, (max-width: 1920) 100vw, -- cgit 1.4.1