Extends the CMS work (Phase 5) to the content the user pointed out was still missing, using the YouTube section as the concrete example: text, alignment, and the button link weren't editable anywhere. Rather than patch that one section, this builds the reusable pattern the user asked for and applies it to every comparable text block on the homepage: hero (text only, its two nav buttons stay fixed), the YouTube section, the craft and consultation blocks, the gallery intro, and the "more than car-hifi" block. New home_sections table (bilingual DE/EN, like faqs, since the site has a language switcher) + HomeSectionController, following the same DB-row-with-built-in-defaults pattern as legal_pages: a section not yet customized returns the exact text that used to be hard-coded in the i18n dictionary, so nothing on a live site goes blank. New "Startseite" admin page (content.manage, alongside FAQ) with per-section DE/EN tabs, reusing the Phase 4 RichTextEditor for the body text and a plain alignment dropdown. Wired into export/import (Settings -> Export & Import) alongside the other content sections. Alignment is applied via fixed left/center/right class lookup tables in Home.jsx rather than a template-string class name, since Tailwind's build-time scanner needs literal class names present in the source to avoid purging them from the production CSS. Known trade-off: two sections (hero, "more than car-hifi") previously had hand-tuned responsive alignment that differed by breakpoint (e.g. centered on mobile, left-aligned on desktop for "more"). Making alignment a single admin-editable value necessarily replaces that with one fixed choice at every breakpoint - simpler to reason about and control, at the cost of that responsive nuance. Verified end-to-end against the local database directly via PHP CLI (bypassing a local Apache path-routing quirk unrelated to this change): confirmed defaults come back correctly before any row exists, and that saving and reading back a row round-trips correctly - then removed the test row before finishing. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
53 lines
2.8 KiB
HTML
53 lines
2.8 KiB
HTML
<!doctype html>
|
||
<html lang="de">
|
||
<head>
|
||
<meta charset="UTF-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||
<link rel="icon" type="image/png" href="/favicon.png" />
|
||
<!-- Nur fuer die Paket-Kacheln auf der Modell-Seite (Name/Preis-Typografie im
|
||
Kunden-Referenzdesign) - der Rest der Seite bleibt beim Standard-Font. -->
|
||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||
<link href="https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Condensed:wght@500;600&family=Michroma&display=swap" rel="stylesheet" />
|
||
<title>HifiPlanet | Car-Hifi Umbauten nach Maß</title>
|
||
<meta name="description" content="HifiPlanet – dein Car-Hifi Spezialist. Marke und Modell wählen, passende Sound-Pakete entdecken und unverbindlich anfragen." />
|
||
<link rel="canonical" href="https://hifi-planet.de/" />
|
||
|
||
<meta property="og:type" content="website" />
|
||
<meta property="og:site_name" content="HifiPlanet" />
|
||
<meta property="og:title" content="HifiPlanet | Car-Hifi Umbauten nach Maß" />
|
||
<meta property="og:description" content="Dein Car-Hifi Spezialist: Marke und Modell wählen, passende Sound-Pakete entdecken und unverbindlich anfragen." />
|
||
<meta property="og:locale" content="de_DE" />
|
||
<meta name="twitter:card" content="summary" />
|
||
|
||
<script type="application/ld+json">
|
||
{
|
||
"@context": "https://schema.org",
|
||
"@type": "AutoRepair",
|
||
"name": "HifiPlanet",
|
||
"description": "Car-Hifi Spezialist für individuelle Sound-Umbauten – vom unauffälligen Upgrade bis zum Komplettumbau.",
|
||
"url": "https://hifi-planet.de/",
|
||
"telephone": "+4993732062390",
|
||
"email": "info@hifi-planet-amorbach.de",
|
||
"address": {
|
||
"@type": "PostalAddress",
|
||
"streetAddress": "Boxbrunner Str. 20a",
|
||
"postalCode": "63916",
|
||
"addressLocality": "Amorbach",
|
||
"addressCountry": "DE"
|
||
},
|
||
"openingHoursSpecification": [
|
||
{ "@type": "OpeningHoursSpecification", "dayOfWeek": ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"], "opens": "09:00", "closes": "18:00" },
|
||
{ "@type": "OpeningHoursSpecification", "dayOfWeek": ["Saturday"], "opens": "10:00", "closes": "13:00" }
|
||
],
|
||
"sameAs": ["https://www.youtube.com/@hifiplanet2812"]
|
||
}
|
||
</script>
|
||
<script type="module" crossorigin src="/assets/index-CbPgqJea.js"></script>
|
||
<link rel="modulepreload" crossorigin href="/assets/lucide-icons-Cg2IxtAO.js">
|
||
<link rel="stylesheet" crossorigin href="/assets/index-XtLTH0HQ.css">
|
||
</head>
|
||
<body class="bg-white text-slate-900 dark:bg-slate-950 dark:text-slate-100">
|
||
<div id="root"></div>
|
||
</body>
|
||
</html>
|