--- /** * HeroSplit * Tekst links, image/media rechts. Klassieke "above the fold" layout. * * Props: * - eyebrow?: string * - headline: string * - sub?: string * - ctaPrimary?: { label: string; href: string } * - ctaSecondary?: { label: string; href: string } * - image: string * - imageAlt?: string * - imagePosition?: 'right' | 'left' — default: right * - badge?: string — optioneel floating badge op image */ interface Props { eyebrow?: string; headline: string; sub?: string; ctaPrimary?: { label: string; href: string }; ctaSecondary?: { label: string; href: string }; image: string; imageAlt?: string; imagePosition?: 'right' | 'left'; badge?: string; } const { eyebrow, headline, sub, ctaPrimary, ctaSecondary, image, imageAlt = '', imagePosition = 'right', badge, } = Astro.props; --- {eyebrow && {eyebrow}} {headline} {sub && {sub}} {(ctaPrimary || ctaSecondary) && ( {ctaPrimary && {ctaPrimary.label}} {ctaSecondary && {ctaSecondary.label}} )} {badge && {badge}}
{eyebrow}
{sub}