feat(SW-190): added hero to loyalty pages

This commit is contained in:
Erik Tiekstra
2024-08-13 13:58:06 +02:00
parent df076f50f5
commit f1ca9a0704
8 changed files with 66 additions and 3 deletions

View File

@@ -0,0 +1,8 @@
.hero {
height: 480px;
margin-bottom: var(--Spacing-x2);
max-width: 100%;
object-fit: cover;
border-radius: var(--Corner-radius-Medium);
margin: 0;
}

View File

@@ -0,0 +1,4 @@
export interface HeroProps {
alt: string
src: string
}

View File

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