diff --git a/app/components/hero.php b/app/components/hero.php index 8c61add..8952487 100644 --- a/app/components/hero.php +++ b/app/components/hero.php @@ -3,11 +3,13 @@ declare(strict_types=1); /** - * Vollflächiger Hero mit Hintergrundbild, Titel, Intro und CTAs. - * Props: $hero (array aus home.json: title, text, image, ctas) + * Vollflächiger Hero mit Hintergrundbild/-video, Titel, Intro und CTAs. + * Props: $hero (array aus home.json: title, text, image, video?, ctas, align?) + * align-Varianten: 'center' (mittig zentriert), 'bottom-left' (Default). */ +$align = in_array($hero['align'] ?? '', ['center', 'bottom-left'], true) ? $hero['align'] : 'bottom-left'; ?> -
+