diff options
author | Ashelyn Rose <git@tempest.dev> | 2023-12-02 16:29:03 -0700 |
---|---|---|
committer | Ashelyn Rose <git@tempest.dev> | 2023-12-02 16:29:03 -0700 |
commit | c74fad179379260dcf46edeae22c1f04ee842508 (patch) | |
tree | 6e5cce69c0b01227599933179cc7be2b230486a0 /components/layout/Header.tsx | |
parent | 11aed6e30f3050a1062e37149bba878d485d52a8 (diff) |
Manual static image optimization
Diffstat (limited to 'components/layout/Header.tsx')
-rw-r--r-- | components/layout/Header.tsx | 8 |
1 files changed, 3 insertions, 5 deletions
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, |