Komponente banner-slider liest data/banners.json; banner.js übernimmt Autoplay/Pause/Steuerung (progressive enhancement). Slider sitzt zwischen Hero und Instagram-Feed. Bilder vorerst als Platzhalter-SVGs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KDQZ6FuchNUh2bxSW9PeNv
30 lines
1012 B
PHP
30 lines
1012 B
PHP
<?php
|
||
|
||
declare(strict_types=1);
|
||
|
||
/**
|
||
* Startseite — Sektions-Reihenfolge wie auf der alten Seite:
|
||
* Hero → Aktuelles (Instagram) → Historie → Sportheim → Zahlen → Partner → Kontakt.
|
||
* Inhalte: data/home.json (Single Source of Truth).
|
||
*/
|
||
$home = json_load('home');
|
||
|
||
$meta = [
|
||
'title' => 'Fußball & Turnen in Kulmbach – TSV 08 Kulmbach',
|
||
'title_absolute' => true,
|
||
'description' => 'Dein Sportverein für Fußball und Turnen in Kulmbach: Jugend-, Herren- und Damenfußball, Turnen und Trampolin – seit 1908 im Katzbachtal. Jetzt Mitglied werden!',
|
||
'scripts' => ['form.js', 'banner.js'],
|
||
];
|
||
|
||
component('hero', ['hero' => $home['hero']]);
|
||
component('banner-slider');
|
||
component('instagram-feed');
|
||
|
||
foreach ($home['sections'] as $section) {
|
||
component('section', ['section' => $section]);
|
||
}
|
||
|
||
component('stats', ['stats' => $home['stats']]);
|
||
component('partner-grid', ['intro' => $home['partners']]);
|
||
component('contact-form', ['intro' => $home['contact']]);
|