fix: apply all final review findings from site restructuring

- Fix 1: FamilyGuardPromo.tsx - change anchor to Link with /#contact for proper routing from /privatkunden
- Fix 2: Header.tsx - change nav breakpoints from md: to lg: to prevent cramping with 7 nav links
- Fix 3: Already correct - no extra blank lines in PaperlessSection.tsx or DataSovereignty.tsx
- Fix 4: geschaeftskunden/page.tsx - use Link instead of anchor for consistency
- Fix 5: CLAUDE.md - add privatkunden/ and geschaeftskunden/ routes, update page structure documentation

Tests: npx tsc --noEmit (no errors), npm run build (success)
This commit is contained in:
MBO-Tech-IT 2026-09-25 15:55:50 +02:00
parent 5e6c1a650e
commit 761b0f7b4d
5 changed files with 11 additions and 9 deletions

View File

@ -24,6 +24,8 @@ app/
impressum/ # Statische Seite
datenschutz/ # Statische Seite
pakete/ # Statische Seite
privatkunden/ # Statische Seite
geschaeftskunden/ # Statische Seite
components/ # Eine Komponente = eine Sektion oder ein UI-Primitiv
hooks/ # Client-only Hooks ("use client" in .ts-Dateien)
@ -32,7 +34,7 @@ hooks/ # Client-only Hooks ("use client" in .ts-Dateien)
**Komponentenmodell:** Sektionskomponenten sind standardmäßig React Server Components. `"use client"` nur wenn Browser-APIs oder Hooks verwendet werden (`ScrollReveal`, `StatsBar`, `Hero`, `useTypewriter`).
**Seitenaufbau (app/page.tsx):**
Header → Hero → TaglineBanner → StatsBar → Services → TaglineBanner → PaperlessSection → DataSovereignty → TaglineBanner → Technologies → About → TaglineBanner → Contact → Footer
Header → Hero → StatsBar → Services → TaglineBanner → PaperlessSection → DataSovereignty → Technologies → About → Contact → Footer
## Design-System

View File

@ -84,9 +84,9 @@ export default function GeschaeftskundenPage() {
<Link href="/pakete/vpn" className="btn-primary inline-flex justify-center px-6 py-3 text-sm">
VPN-Pakete entdecken
</Link>
<a href="/#contact" className="btn-secondary inline-flex justify-center px-6 py-3 text-sm">
<Link href="/#contact" className="btn-secondary inline-flex justify-center px-6 py-3 text-sm">
Jetzt beraten lassen
</a>
</Link>
</div>
</div>
<div className="flex-shrink-0 lg:w-64 p-5 rounded-xl bg-orange-500/5 border border-orange-500/20 text-center">

View File

@ -49,9 +49,9 @@ export default function FamilyGuardPromo() {
>
Flyer herunterladen
</Link>
<a href="#contact" className="btn-secondary inline-flex justify-center px-6 py-3 text-sm">
<Link href="/#contact" className="btn-secondary inline-flex justify-center px-6 py-3 text-sm">
Jetzt beraten lassen
</a>
</Link>
</div>
</div>
<div className="flex-shrink-0 lg:w-64 p-5 rounded-xl bg-orange-500/5 border border-orange-500/20 text-center">

View File

@ -49,7 +49,7 @@ export default function Header() {
</Link>
{/* Desktop Nav */}
<nav className="hidden md:flex items-center gap-6">
<nav className="hidden lg:flex items-center gap-6">
{navLinks.map((link) => (
<Link
key={link.href}
@ -70,7 +70,7 @@ export default function Header() {
{/* Mobile Menu Button */}
<button
className="md:hidden text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-white transition-colors"
className="lg:hidden text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-white transition-colors"
onClick={() => setMenuOpen(!menuOpen)}
aria-label="Menu"
>
@ -87,7 +87,7 @@ export default function Header() {
{/* Mobile Menu */}
{menuOpen && (
<div className="md:hidden bg-white/98 dark:bg-[#111925]/98 backdrop-blur-md border-t border-slate-200 dark:border-gray-800">
<div className="lg:hidden bg-white/98 dark:bg-[#111925]/98 backdrop-blur-md border-t border-slate-200 dark:border-gray-800">
<nav className="px-4 py-4 flex flex-col gap-4">
{navLinks.map((link) => (
<Link

File diff suppressed because one or more lines are too long