feat(design): rebuild landing page, header, and legal pages against new DESIGN.md

Introduces PRODUCT.md/DESIGN.md (Impeccable skill) capturing PawFeed's
existing brand identity ("The Spotlight Porch") as durable reference, then
applies it:

- Landing hero: restrained "spotlight" glow instead of a full orange
  gradient panel, tagline as the actual headline with a marigold accent on
  "Stars"/"stars", real PawPrint mark fixed (was a mismatched hand-drawn
  shape, also fixed a viewBox overflow clipping bug).
- Features section: one dominant mechanism (pet-as-identity) plus a quiet
  supporting list, replacing the four-identical-cards grid craft-floor
  refuses.
- Header: dropped the generic glass-blur sticky nav for a flat header with
  a soft marigold gradient hairline; CTA button now matches DESIGN.md
  (rounded-lg, no shadow, same orange as the hero CTA); logo gets a
  paw-spring hover as a small on-brand moment; new active-page indicator
  (LandingNavLinks) under the current nav link.
- Legal pages (Impressum/Datenschutz/Nutzungsbedingungen): replaced the
  stacked numbered-card-per-section layout with a flowing typographic
  document (hairline dividers, no boxes, no arbitrary section-number
  badges) via the shared LegalLayout/LegalSection components.
- Nutzungsbedingungen: moved Sponsoring earlier (now 3a, right after
  Nutzerinhalte & Urheberrecht) while keeping Salvatorische Klausel/Kontakt
  last; existing section numbers left untouched to avoid breaking the
  "gemäß Abschnitt 5" cross-reference in Haftungsausschluss.
This commit is contained in:
admin committed 2026-08-25 18:22:58 +02:00
1 parent 6e9e08be70
commit 2cb54d4ed4
13 files changed
+640 -156

No files matched your search

+1 -1
View File
@@ -195,7 +195,7 @@ export default function DatenschutzPage() {
</p>
</LegalSection>
<div className="bg-card border rounded-xl p-6 flex items-center justify-between">
<div className="pt-6 flex items-center justify-between">
<p className="text-sm text-muted-foreground">Weitere rechtliche Informationen</p>
<div className="flex gap-4">
<Link href="/impressum" className="text-sm text-orange-600 dark:text-orange-400 hover:underline">
+49
View File
@@ -176,6 +176,55 @@
.animate-paw-burst {
animation: none;
}
.landing-logo:hover .landing-logo-paw,
.landing-logo:focus-visible .landing-logo-paw,
.landing-logo:active .landing-logo-paw {
animation: none;
}
}
/* Header logo — reuses the paw-spring reaction as a small brand moment on
hover/tap/focus, not an auto-playing loop (navbar polish). */
.landing-logo:hover .landing-logo-paw,
.landing-logo:focus-visible .landing-logo-paw,
.landing-logo:active .landing-logo-paw {
animation: paw-spring 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Header hairline — a soft marigold glow centered under the logo/nav instead
of a flat neutral-gray line, echoing the hero's "porch light" motif. */
.landing-header-hairline {
border-bottom: 1px solid transparent;
border-image: linear-gradient(
to right,
transparent,
oklch(0.7024 0.1967 41.45 / 35%) 50%,
transparent
)
1;
}
/* Landing page — hero "porch light" entrance (Gitea design system rebuild).
Plays once on mount, not scroll-triggered — the hero is above the fold. */
@keyframes porch-glow-in {
from {
opacity: 0;
transform: scale(0.82);
}
to {
opacity: 1;
transform: scale(1);
}
}
.porch-glow {
animation: porch-glow-in 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@media (prefers-reduced-motion: reduce) {
.porch-glow {
animation: none;
}
}
/* Landing page — scroll reveal + parallax */
+1 -1
View File
@@ -99,7 +99,7 @@ export default function ImpressumPage() {
</p>
</LegalSection>
<div className="bg-card border rounded-xl p-6 flex items-center justify-between">
<div className="pt-6 flex items-center justify-between">
<p className="text-sm text-muted-foreground">Weitere rechtliche Informationen</p>
<div className="flex gap-4">
<Link href="/datenschutz" className="text-sm text-orange-600 dark:text-orange-400 hover:underline">
+31 -31
View File
@@ -60,6 +60,36 @@ export default function NutzungsbedingungenPage() {
</p>
</LegalSection>
<LegalSection number="3a" title="Sponsoring">
<p>
Du kannst PawFeed freiwillig mit einem Einmalbetrag oder einem
monatlich kündbaren Beitrag (Community-Abo) ab 2€ unterstützen. Die
Zahlungsabwicklung erfolgt über unseren Zahlungsdienstleister
Stripe (siehe{" "}
<Link href="/datenschutz" className="text-orange-600 dark:text-orange-400 hover:underline">
Datenschutzerklärung
</Link>
).
</p>
<p className="mt-2">
Als Gegenleistung erhältst du ein "Sponsor"-Badge, das auf deinem
Profil und bei jedem Beitrag all deiner Haustiere sichtbar ist —
es schaltet keine zusätzlichen Funktionen frei. Da PawFeed ein
gewerbliches Angebot und keine gemeinnützige Organisation ist,
handelt es sich bei deinem Beitrag um eine freiwillige Zuwendung an
ein Gewerbe, nicht um eine steuerlich absetzbare Spende.
</p>
<p className="mt-2">
Ein Community-Abo kannst du jederzeit zum Ende der laufenden
Abrechnungsperiode kündigen; dein Sponsor-Badge bleibt bis zu
diesem Zeitpunkt bestehen. Mit Bestätigung deiner Zahlung
stimmst du der sofortigen Erbringung der Leistung (Freischaltung
des Badges) zu und nimmst zur Kenntnis, dass dein gesetzliches
Widerrufsrecht damit erlischt, sobald die Leistung vollständig
erbracht wurde.
</p>
</LegalSection>
<LegalSection number="4" title="Verbotene Inhalte & Verhaltensregeln">
<p className="mb-2">Folgende Inhalte und Verhaltensweisen sind auf PawFeed untersagt:</p>
<ul className="space-y-1.5">
@@ -186,37 +216,7 @@ export default function NutzungsbedingungenPage() {
</p>
</LegalSection>
<LegalSection number="12" title="Sponsoring">
<p>
Du kannst PawFeed freiwillig mit einem Einmalbetrag oder einem
monatlich kündbaren Beitrag (Community-Abo) ab 2€ unterstützen. Die
Zahlungsabwicklung erfolgt über unseren Zahlungsdienstleister
Stripe (siehe{" "}
<Link href="/datenschutz" className="text-orange-600 dark:text-orange-400 hover:underline">
Datenschutzerklärung
</Link>
).
</p>
<p className="mt-2">
Als Gegenleistung erhältst du ein "Sponsor"-Badge, das auf deinem
Profil und bei jedem Beitrag all deiner Haustiere sichtbar ist —
es schaltet keine zusätzlichen Funktionen frei. Da PawFeed ein
gewerbliches Angebot und keine gemeinnützige Organisation ist,
handelt es sich bei deinem Beitrag um eine freiwillige Zuwendung an
ein Gewerbe, nicht um eine steuerlich absetzbare Spende.
</p>
<p className="mt-2">
Ein Community-Abo kannst du jederzeit zum Ende der laufenden
Abrechnungsperiode kündigen; dein Sponsor-Badge bleibt bis zu
diesem Zeitpunkt bestehen. Mit Bestätigung deiner Zahlung
stimmst du der sofortigen Erbringung der Leistung (Freischaltung
des Badges) zu und nimmst zur Kenntnis, dass dein gesetzliches
Widerrufsrecht damit erlischt, sobald die Leistung vollständig
erbracht wurde.
</p>
</LegalSection>
<div className="bg-card border rounded-xl p-6 flex items-center justify-between">
<div className="pt-6 flex items-center justify-between">
<p className="text-sm text-muted-foreground">Weitere rechtliche Informationen</p>
<div className="flex gap-4">
<Link href="/impressum" className="text-sm text-orange-600 dark:text-orange-400 hover:underline">
+115 -86
View File
@@ -20,11 +20,14 @@ import { LandingFooter } from "@/components/landing/LandingFooter";
* render for everyone; the redirect-when-authenticated check happens here
* instead via a plain auth() read (not .protect()).
*
* Redesigned 2026-08-12 (Gitea #11) after a structural reference (navbar
* position, rounded hero card with phone mockup + floating badges,
* catchphrase section, second detail-feature card, footer repeating the
* navbar) — colors/typography adapted to PawFeed's existing orange brand
* instead of the generic SaaS reference palette.
* Rebuilt 2026-08-24 against DESIGN.md ("The Spotlight Porch"): the prior
* version (Gitea #11) was a full-bleed orange gradient hero + a uniform
* 4-card icon/heading/text feature grid — both are the exact patterns
* craft-floor.md refuses (large-area accent wash; same-size cards as page
* structure). This version treats orange as the rare "spotlight" moment
* DESIGN.md's One Accent Rule calls for, and gives the pet-as-identity
* feature real hierarchy over the three supporting ones instead of four
* identical cards. Copy/translation keys are unchanged — only composition.
*/
export default async function RootPage() {
const { userId } = await auth();
@@ -32,8 +35,7 @@ export default async function RootPage() {
const t = await getTranslations("Landing");
const features = [
{ icon: PawPrint, title: t("feature1Title"), body: t("feature1Body") },
const supportingFeatures = [
{ icon: Images, title: t("feature2Title"), body: t("feature2Body") },
{ icon: HeartPulse, title: t("feature3Title"), body: t("feature3Body") },
{ icon: MessageCircle, title: t("feature4Title"), body: t("feature4Body") },
@@ -44,43 +46,49 @@ export default async function RootPage() {
<LandingHeader />
<main>
{/* Hero */}
<section className="px-4 pt-8 sm:px-6 sm:pt-10">
<div className="relative mx-auto max-w-6xl overflow-hidden rounded-4xl bg-gradient-to-br from-orange-400 via-orange-500 to-orange-700">
<PawPrint
className="hero-parallax-icon pointer-events-none absolute -right-24 -top-20 h-[480px] w-[480px] text-white opacity-[0.14] sm:-right-16"
fill="white"
strokeWidth={0}
aria-hidden="true"
/>
<div className="relative z-10 grid gap-12 px-6 py-16 sm:px-10 sm:py-24 lg:grid-cols-2 lg:items-center lg:gap-8">
{/* Hero — "The Spotlight Porch": a calm, mostly-neutral canvas with
one warm glow behind the one thing worth looking at, instead of
an orange-soaked panel. */}
<section className="relative overflow-hidden px-4 pt-14 pb-20 sm:px-6 sm:pt-20 sm:pb-28 lg:px-10">
<div className="mx-auto grid max-w-6xl gap-14 lg:grid-cols-2 lg:items-center lg:gap-10">
<div className="text-center lg:text-left">
<h1 className="text-5xl font-extrabold tracking-tight text-white sm:text-6xl lg:text-7xl">
PawFeed
<h1 className="text-4xl font-extrabold tracking-tight text-foreground sm:text-5xl lg:text-6xl">
{t.rich("tagline", {
stars: (chunks) => (
<span className="text-orange-600 dark:text-orange-400">{chunks}</span>
),
})}
</h1>
<p className="mx-auto mt-5 max-w-lg text-lg font-medium text-orange-50 sm:text-xl lg:mx-0 lg:text-2xl">
{t("tagline")}
</p>
<div className="mt-10 flex flex-col justify-center gap-3 sm:flex-row lg:justify-start">
<Link
href="/sign-up"
className="inline-flex items-center justify-center rounded-xl bg-white px-7 py-3.5 text-base font-semibold text-orange-700 shadow-lg transition-transform hover:-translate-y-0.5 hover:bg-orange-50"
className="inline-flex items-center justify-center rounded-xl bg-orange-500 px-7 py-3.5 text-base font-semibold text-white transition-colors hover:bg-orange-600"
>
{t("getStarted")}
</Link>
<Link
href="/log-in"
className="inline-flex items-center justify-center rounded-xl border-2 border-white/70 px-7 py-3.5 text-base font-semibold text-white transition-colors hover:bg-white/10"
className="inline-flex items-center justify-center rounded-xl border border-border px-7 py-3.5 text-base font-semibold text-foreground transition-colors hover:bg-muted"
>
{t("logIn")}
</Link>
</div>
</div>
{/* Phone mockup + floating badges */}
<div className="relative mx-auto w-full max-w-[320px] lg:mx-0 lg:justify-self-end">
<div className="relative rounded-[3rem] bg-neutral-900 p-2.5 shadow-2xl ring-1 ring-white/10">
{/* Phone mockup — sits inside one soft marigold glow, the hero's
single spotlight moment, not a hero-wide wash. */}
<div className="porch-glow relative mx-auto w-full max-w-[320px] lg:mx-0 lg:justify-self-end">
<div
className="pointer-events-none absolute left-1/2 top-1/2 -z-10 h-[420px] w-[420px] -translate-x-1/2 -translate-y-1/2 rounded-full opacity-70 blur-3xl"
style={{
background:
"radial-gradient(circle, oklch(0.7024 0.1967 41.45 / 35%) 0%, oklch(0.7024 0.1967 41.45 / 0%) 70%)",
}}
aria-hidden="true"
/>
<div className="relative rounded-[3rem] bg-neutral-900 p-2.5 ring-1 ring-foreground/10">
<span className="absolute -left-px top-24 h-8 w-[3px] rounded-l-sm bg-neutral-950" aria-hidden="true" />
<span className="absolute -left-px top-36 h-12 w-[3px] rounded-l-sm bg-neutral-950" aria-hidden="true" />
<span className="absolute -right-px top-32 h-16 w-[3px] rounded-r-sm bg-neutral-950" aria-hidden="true" />
@@ -105,83 +113,104 @@ export default async function RootPage() {
</div>
</div>
{/* Two grounded annotations, not three — ring-defined like the
rest of the system, not shadow-heavy floating chips. */}
<div
className="float-badge absolute -left-10 top-24 hidden items-center gap-2 rounded-2xl bg-white px-3 py-2 shadow-xl sm:flex"
className="float-badge absolute -left-8 top-20 hidden items-center gap-2 rounded-2xl bg-card px-3 py-2 ring-1 ring-foreground/10 sm:flex"
style={{ animationDelay: "0.5s" }}
>
<Heart className="h-4 w-4 shrink-0 fill-orange-500 text-orange-500" aria-hidden="true" />
<span className="text-xs font-semibold text-zinc-900">{t("heroBadge2")}</span>
<span className="text-xs font-semibold text-foreground">{t("heroBadge1")}</span>
</div>
<div
className="float-badge absolute -right-6 top-1/2 hidden items-center gap-2 rounded-2xl bg-white px-3 py-2 shadow-xl sm:flex"
style={{ animationDelay: "1.2s" }}
className="float-badge absolute -right-6 bottom-10 hidden items-center gap-2 rounded-2xl bg-card px-3 py-2 ring-1 ring-foreground/10 sm:flex"
style={{ animationDelay: "1.6s" }}
>
<Sparkles className="h-4 w-4 shrink-0 text-orange-500" aria-hidden="true" />
<span className="text-xs font-semibold text-zinc-900">{t("heroBadge3")}</span>
</div>
<div
className="float-badge absolute -bottom-8 left-1/4 hidden items-center gap-2 rounded-2xl bg-white px-3 py-2 shadow-xl sm:flex"
style={{ animationDelay: "2.4s" }}
>
<PawPrint className="h-4 w-4 shrink-0 fill-orange-500 text-orange-500" aria-hidden="true" />
<span className="text-xs font-semibold text-zinc-900">{t("heroBadge1")}</span>
<span className="text-xs font-semibold text-foreground">{t("heroBadge3")}</span>
</div>
</div>
</div>
</div>
</section>
</section>
{/* Catchphrase + feature grid */}
<section className="px-6 py-24 sm:px-10">
<div className="mx-auto max-w-5xl">
<ScrollReveal className="text-center" delayMs={100}>
<h2 className="text-3xl font-bold tracking-tight text-foreground sm:text-4xl">
{t("catchHeading")}
</h2>
<p className="mx-auto mt-4 max-w-2xl text-base text-muted-foreground sm:text-lg">
{t("catchSubline")}
</p>
</ScrollReveal>
{/* Features — one dominant mechanism, three supporting facts.
Not four identical icon/heading/text cards. */}
<section className="px-6 py-24 sm:px-10">
<div className="mx-auto max-w-5xl">
<ScrollReveal className="text-center">
<h2 className="text-3xl font-bold tracking-tight text-foreground sm:text-4xl">
{t("catchHeading")}
</h2>
<p className="mx-auto mt-4 max-w-2xl text-base text-muted-foreground sm:text-lg">
{t("catchSubline")}
</p>
</ScrollReveal>
<div className="mt-14 grid gap-6 sm:grid-cols-2 lg:grid-cols-4">
{features.map(({ icon: Icon, title, body }, index) => (
<ScrollReveal key={title} delayMs={200 + index * 100}>
<div className="group h-full rounded-2xl border border-border/60 bg-card p-6 transition-all duration-300 hover:-translate-y-1 hover:border-orange-500/30 hover:shadow-md">
<div className="flex h-11 w-11 items-center justify-center rounded-xl bg-orange-100 text-orange-600 transition-transform duration-300 group-hover:scale-105">
<Icon className="h-5.5 w-5.5" aria-hidden="true" />
</div>
<h3 className="mt-4 text-base font-semibold text-foreground">{title}</h3>
<p className="mt-1.5 text-sm leading-relaxed text-muted-foreground">{body}</p>
<div className="mt-16 grid gap-12 lg:grid-cols-5 lg:gap-16">
{/* Dominant feature — the actual mechanism, given real weight */}
<ScrollReveal className="relative lg:col-span-3">
{/* Same PawPrint mark as the header/footer logo — a
different hand-drawn paw here (as before) read as an
off-brand, unrelated shape. */}
<PawPrint
className="pointer-events-none absolute -left-4 -top-6 h-40 w-40 text-orange-500/10 lg:-left-8 lg:h-56 lg:w-56"
fill="currentColor"
strokeWidth={0}
aria-hidden="true"
/>
<div className="relative">
<h3 className="text-2xl font-bold tracking-tight text-foreground sm:text-3xl">
{t("feature1Title")}
</h3>
<p className="mt-3 max-w-md text-base leading-relaxed text-muted-foreground sm:text-lg">
{t("feature1Body")}
</p>
</div>
</ScrollReveal>
))}
</div>
</div>
</section>
{/* Detail feature card */}
<section className="px-4 pb-24 sm:px-6">
<ScrollReveal className="mx-auto max-w-6xl">
<div className="grid gap-10 rounded-4xl bg-muted/40 px-6 py-14 sm:px-10 sm:py-16 lg:grid-cols-2 lg:items-center lg:gap-16">
<div>
<h2 className="text-3xl font-bold tracking-tight text-foreground sm:text-4xl">
{t("detailHeading")}
</h2>
<p className="mt-4 text-base text-muted-foreground sm:text-lg">{t("detailBody")}</p>
{/* Supporting facts — a quiet list, not boxed cards */}
<ScrollReveal className="divide-y divide-border lg:col-span-2" delayMs={100}>
{supportingFeatures.map(({ icon: Icon, title, body }) => (
<div key={title} className="flex gap-4 py-5 first:pt-0 last:pb-0">
<div className="flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-orange-100 text-orange-600 dark:bg-orange-500/15 dark:text-orange-400">
<Icon className="h-4.5 w-4.5" aria-hidden="true" />
</div>
<div>
<h4 className="text-sm font-semibold text-foreground">{title}</h4>
<p className="mt-1 text-sm leading-relaxed text-muted-foreground">{body}</p>
</div>
</div>
))}
</ScrollReveal>
</div>
<ul className="space-y-4">
{[t("detailPoint1"), t("detailPoint2")].map((point) => (
<li key={point} className="flex items-start gap-3 rounded-2xl bg-background p-4 shadow-sm">
<CheckCircle2 className="mt-0.5 h-5 w-5 shrink-0 text-orange-500" aria-hidden="true" />
<span className="text-sm text-foreground sm:text-base">{point}</span>
</li>
))}
</ul>
</div>
</ScrollReveal>
</section>
</section>
{/* Detail panel — flat, ring-defined, no drop shadows */}
<section className="px-4 pb-24 sm:px-6">
<ScrollReveal className="mx-auto max-w-6xl">
<div className="grid gap-10 rounded-4xl bg-muted/40 px-6 py-14 sm:px-10 sm:py-16 lg:grid-cols-2 lg:items-center lg:gap-16">
<div>
<h2 className="text-3xl font-bold tracking-tight text-foreground sm:text-4xl">
{t("detailHeading")}
</h2>
<p className="mt-4 text-base text-muted-foreground sm:text-lg">{t("detailBody")}</p>
</div>
<ul className="space-y-3">
{[t("detailPoint1"), t("detailPoint2")].map((point) => (
<li
key={point}
className="flex items-start gap-3 rounded-2xl bg-background p-4 ring-1 ring-foreground/10"
>
<CheckCircle2 className="mt-0.5 h-5 w-5 shrink-0 text-orange-500" aria-hidden="true" />
<span className="text-sm text-foreground sm:text-base">{point}</span>
</li>
))}
</ul>
</div>
</ScrollReveal>
</section>
</main>
{/* Footer — repeats the navbar */}
+11 -11
View File
@@ -3,6 +3,7 @@ import Link from "next/link";
import { PawPrint } from "lucide-react";
import { LanguageSwitcher } from "@/components/i18n/LanguageSwitcher";
import { ThemeToggleButton } from "@/components/landing/ThemeToggleButton";
import { LandingNavLinks } from "@/components/landing/LandingNavLinks";
/**
* Shared navbar for the public landing page and "Über uns" (Gitea #23) —
@@ -19,20 +20,19 @@ export async function LandingHeader() {
] as const;
return (
<header className="sticky top-0 z-20 border-b border-border/60 bg-background/80 px-4 py-4 backdrop-blur-md sm:px-6 lg:px-10">
<header className="landing-header-hairline sticky top-0 z-20 bg-background px-4 py-4 sm:px-6 lg:px-10">
<div className="mx-auto flex max-w-6xl items-center justify-between">
<Link href="/" className="flex items-center gap-2">
<PawPrint className="h-6 w-6 text-orange-500" fill="currentColor" strokeWidth={0} aria-hidden="true" />
<Link href="/" className="landing-logo flex items-center gap-2">
<PawPrint
className="landing-logo-paw h-6 w-6 text-orange-500"
fill="currentColor"
strokeWidth={0}
aria-hidden="true"
/>
<span className="text-lg font-bold text-foreground">PawFeed</span>
</Link>
<nav className="hidden items-center gap-6 text-sm font-medium text-muted-foreground lg:flex">
{navLinks.map((link) => (
<Link key={link.label} href={link.href} className="transition-colors hover:text-foreground">
{link.label}
</Link>
))}
</nav>
<LandingNavLinks links={navLinks} />
<div className="flex items-center gap-1 sm:gap-3">
<ThemeToggleButton />
@@ -45,7 +45,7 @@ export async function LandingHeader() {
</Link>
<Link
href="/sign-up"
className="inline-flex items-center justify-center whitespace-nowrap rounded-full bg-orange-700 px-3 py-2 text-sm font-semibold text-white shadow-sm transition-colors hover:bg-orange-800 sm:px-4"
className="inline-flex items-center justify-center whitespace-nowrap rounded-lg bg-orange-500 px-3 py-2 text-sm font-semibold text-white transition-colors hover:bg-orange-600 sm:px-4"
>
{t("navSignUp")}
</Link>
@@ -0,0 +1,42 @@
"use client";
import Link from "next/link";
import { usePathname } from "next/navigation";
interface LandingNavLinksProps {
links: readonly { href: string; label: string }[];
}
/**
* Client island for LandingHeader's nav — split out only because knowing
* the active page requires usePathname(), which needs "use client", while
* the rest of LandingHeader stays a plain async Server Component.
*/
export function LandingNavLinks({ links }: LandingNavLinksProps) {
const pathname = usePathname();
return (
<nav className="hidden items-center gap-6 text-sm font-medium text-muted-foreground lg:flex">
{links.map((link) => {
const isActive = pathname === link.href;
return (
<Link
key={link.href}
href={link.href}
className={`relative pb-1 transition-colors hover:text-foreground ${
isActive ? "text-foreground" : ""
}`}
>
{link.label}
{isActive && (
<span
className="absolute -bottom-1 left-1/2 h-1 w-1 -translate-x-1/2 rounded-full bg-orange-500"
aria-hidden="true"
/>
)}
</Link>
);
})}
</nav>
);
}
+24 -24
View File
@@ -1,6 +1,15 @@
import Link from "next/link";
import { PawPrint, ArrowLeft } from "lucide-react";
/**
* Rebuilt against DESIGN.md — the previous version stacked every section as
* an identical bordered+shadowed card with an arbitrary 1-12 numeral badge,
* exactly the "same-size cards" and "section numbers that carry no
* information" patterns craft-floor.md refuses. This reads as a flowing
* legal document instead: plain typographic headings, hairline dividers
* between sections, no boxes. `number` is kept only as an anchor id, never
* rendered as a numeral.
*/
export function LegalLayout({
title,
subtitle,
@@ -11,35 +20,31 @@ export function LegalLayout({
children: React.ReactNode;
}) {
return (
<div className="min-h-screen bg-muted/30">
<div className="max-w-2xl mx-auto px-4 py-10">
{/* Back link */}
<div className="min-h-screen bg-background">
<div className="landing-header-hairline max-w-2xl mx-auto px-4 pb-6">
<Link
href="/"
className="inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors mb-8 group"
className="inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors mt-10 mb-8 group"
>
<ArrowLeft className="h-4 w-4 group-hover:-translate-x-0.5 transition-transform" />
Zurück zu PawFeed
</Link>
{/* Logo */}
<div className="flex items-center gap-3 mb-8">
<div className="w-10 h-10 bg-orange-500 rounded-xl flex items-center justify-center shadow-sm">
<div className="flex items-center gap-3">
<div className="w-10 h-10 bg-orange-500 rounded-xl flex items-center justify-center">
<PawPrint className="h-5 w-5 text-white" />
</div>
<span className="text-2xl font-bold tracking-tight">PawFeed</span>
</div>
</div>
{/* Page title card */}
<div className="bg-card border rounded-2xl px-8 py-7 shadow-sm mb-5">
<h1 className="text-2xl font-bold text-foreground">{title}</h1>
{subtitle && (
<p className="text-sm text-muted-foreground mt-1">{subtitle}</p>
)}
</div>
<div className="max-w-2xl mx-auto px-4 py-10">
{/* Page title */}
<h1 className="text-3xl font-bold tracking-tight text-foreground">{title}</h1>
{subtitle && <p className="text-sm text-muted-foreground mt-2">{subtitle}</p>}
{/* Sections */}
<div className="space-y-3">{children}</div>
<div className="mt-8 divide-y divide-border">{children}</div>
{/* Footer */}
<p className="mt-10 text-center text-xs text-muted-foreground">
@@ -60,16 +65,11 @@ export function LegalSection({
children: React.ReactNode;
}) {
return (
<div className="bg-card border rounded-xl p-6">
<div className="flex items-center gap-3 mb-4">
<span className="flex-shrink-0 w-6 h-6 bg-orange-500/10 text-orange-600 dark:text-orange-400 rounded-md text-xs font-bold flex items-center justify-center">
{number}
</span>
<h2 className="text-sm font-semibold text-foreground">{title}</h2>
</div>
<div className="text-sm text-muted-foreground leading-relaxed space-y-2 pl-9">
<section id={`abschnitt-${number}`} className="py-6 first:pt-0 last:pb-0">
<h2 className="text-lg font-semibold tracking-tight text-foreground">{title}</h2>
<div className="mt-3 text-sm text-muted-foreground leading-relaxed space-y-2">
{children}
</div>
</div>
</section>
);
}