From 01580453d4e3d58029819b46de561c0704215b97 Mon Sep 17 00:00:00 2001 From: Felix Schneider Date: Thu, 11 Jun 2026 21:24:45 +0200 Subject: [PATCH] Hero: Ausrichtungs-Varianten (align: center | bottom-left), Startseite zentriert Co-Authored-By: Claude Fable 5 --- app/components/hero.php | 8 +++++--- data/home.json | 1 + public/assets/css/components.css | 14 ++++++++++++++ 3 files changed, 20 insertions(+), 3 deletions(-) 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'; ?> -
+