feat(SW-365): Implemented focal point

This commit is contained in:
Erik Tiekstra
2024-10-16 08:22:01 +02:00
parent 59ffbef8fb
commit 7d905a46bf
11 changed files with 14 additions and 3 deletions

View File

@@ -1,4 +1,7 @@
import type { FocalPoint } from "@/types/components/image"
export interface HeroProps {
alt: string
src: string
focalPoint?: FocalPoint
}

View File

@@ -4,7 +4,7 @@ import { HeroProps } from "./hero"
import styles from "./hero.module.css"
export default async function Hero({ alt, src }: HeroProps) {
export default async function Hero({ alt, src, focalPoint }: HeroProps) {
return (
<Image
className={styles.hero}
@@ -12,6 +12,7 @@ export default async function Hero({ alt, src }: HeroProps) {
height={480}
width={1196}
src={src}
focalPoint={focalPoint}
/>
)
}