Neue Seiten + Routen: fussball, fussball/{erste-mannschaft,zweite-mannschaft,
damen}, jugendfussball, verein, impressum, datenschutz. Dazu die Komponenten
team, team-cards/-roster/-photo/-bento, faq/faq-contact, key-facts, age-groups,
cta-band, training-location und der contact-slider.
Daten in teams/fussball/jugend/verein.json; club.json um Vorstand, Bankdaten,
Datenschutz-Kontakt erweitert. person-grid bekommt $names-Filter, partner-grid
einen Intro-Stil. Seiten setzen $meta['schema'] via team_/page_schema.
Styles für alle neuen Komponenten in components.css.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KDQZ6FuchNUh2bxSW9PeNv
31 lines
1.0 KiB
PHP
31 lines
1.0 KiB
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('person-grid');
|
||
component('contact-form', ['intro' => $home['contact']]);
|