fix/images: changed default cache time from 1 minute to 31 days. Reduced size of swan icons * fix/images: changed default cache time from 1 minute to 31 days. Reduced size of swan icons * More performance improvements * Priority on hero image on startpage Approved-by: Anton Gunnarsson
20 lines
375 B
TypeScript
20 lines
375 B
TypeScript
import Image from "@/components/Image"
|
|
|
|
import styles from "./hero.module.css"
|
|
|
|
import type { HeroProps } from "./hero"
|
|
|
|
export default async function Hero({ alt, src, focalPoint }: HeroProps) {
|
|
return (
|
|
<Image
|
|
className={styles.hero}
|
|
alt={alt}
|
|
height={480}
|
|
width={1196}
|
|
src={src}
|
|
focalPoint={focalPoint}
|
|
priority
|
|
/>
|
|
)
|
|
}
|