Neubau Fundament + Startseite: Designsystem, PHP-Komponenten, Brevo-Formular, Instagram-Sync
- Ordnerstruktur mit public/-Docroot, Deny-.htaccess für app/bin/config/data/storage - CLAUDE.md mit Leitplanken (self-hosted only, Single Source of Truth, Component-first) - Design-Tokens aus alter Seite extrahiert (Akzent #e20612, Coolvetica/Abel als woff2) - Front Controller mit Routen-Register, Sitemap, Canonical, JSON-LD (SportsClub) - Startseite: Hero, Instagram-Feed (lokaler Cache), Historie/Sportheim, Stats, Partner, Kontakt - Kontaktformular via PHPMailer/Brevo mit Honeypot + HMAC-Time-Trap (kein reCAPTCHA) - bin/instagram-sync.php: Scraper mit Strategie-Kette, flock, atomarem Cache, lokalen Bildern Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
16
app/pages/404.php
Normal file
16
app/pages/404.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
$meta = [
|
||||
'title' => 'Seite nicht gefunden',
|
||||
'description' => 'Die angeforderte Seite existiert nicht.',
|
||||
];
|
||||
?>
|
||||
<section class="section section--center">
|
||||
<div class="container">
|
||||
<h1>404 – Seite nicht gefunden</h1>
|
||||
<p>Die angeforderte Seite gibt es nicht (mehr). Vielleicht hilft dir die Startseite weiter.</p>
|
||||
<p><a class="btn" href="<?= e(url()) ?>">Zur Startseite</a></p>
|
||||
</div>
|
||||
</section>
|
||||
28
app/pages/home.php
Normal file
28
app/pages/home.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?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' => 'TSV 08 Kulmbach – Fußball & Turnen in Kulmbach',
|
||||
'title_absolute' => true,
|
||||
'description' => json_load('club')['description'],
|
||||
'scripts' => ['form.js'],
|
||||
];
|
||||
|
||||
component('hero', ['hero' => $home['hero']]);
|
||||
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']]);
|
||||
Reference in New Issue
Block a user