Replaces em dashes with en dashes across all hardcoded copy, emails, and seed content, then reworks the site's visual language so it reads as deliberately designed rather than assembled from generic components: - New ArrowLink component replaces ad hoc "Mehr erfahren ->" links and ghost buttons; one shared FormField (TextField/TextAreaField) replaces 7 near-duplicate field styles across every form - Navbar loses its glassmorphism blur for a solid warm background, gets a subtle active-link underline and a softer, warmer mega-menu - PageHeader supports per-page blob tone/position and a compact mode instead of an identical band on every interior page - Homepage: the core offer is featured large instead of four equal cards, the philosophy section gets a single calmer accent blob, blog teasers now show their cover image like the real /aktuelles page does - Booking calendar and widget: 44px touch targets throughout (month nav, day cells, time slots, cancel action), a visible "today" ring, and responsive padding so the calendar isn't cramped on small screens - Quieter, warmer empty states on /termine and /aktuelles No functional changes: all interaction logic (nav menus, forms, booking, CMS data fetching) is untouched, only markup and styling.
54 lines
1.9 KiB
TypeScript
54 lines
1.9 KiB
TypeScript
import type { ReactNode } from "react";
|
||
import { OrganicBlob } from "@/components/OrganicBlob";
|
||
import { ImagePlaceholder } from "@/components/ImagePlaceholder";
|
||
import type { ImageMood } from "@/lib/angebote";
|
||
|
||
type HeroProps = {
|
||
eyebrow?: string;
|
||
title: string;
|
||
children?: ReactNode;
|
||
actions?: ReactNode;
|
||
mood?: ImageMood;
|
||
imageSrc?: string;
|
||
imageAlt?: string;
|
||
};
|
||
|
||
export function Hero({ eyebrow, title, children, actions, mood = "rose", imageSrc, imageAlt }: HeroProps) {
|
||
return (
|
||
<section className="relative overflow-hidden pb-20 pt-16 sm:pb-28 sm:pt-24">
|
||
<OrganicBlob tone="rose" className="-right-24 -top-24 h-[28rem] w-[28rem]" />
|
||
<OrganicBlob tone="cream" className="-left-32 bottom-0 h-96 w-96" />
|
||
|
||
<div className="relative mx-auto grid max-w-6xl gap-14 px-6 sm:px-8 lg:grid-cols-[1.1fr_0.9fr] lg:items-center lg:px-12">
|
||
<div className="animate-fade-up">
|
||
{eyebrow && (
|
||
<p className="mb-5 text-xs font-medium uppercase tracking-[0.24em] text-anouma-plum">
|
||
{eyebrow}
|
||
</p>
|
||
)}
|
||
<h1 className="text-balance font-serif text-5xl font-medium leading-[1.08] text-anouma-plum sm:text-6xl lg:text-7xl">
|
||
{title}
|
||
</h1>
|
||
{children && (
|
||
<div className="mt-7 max-w-xl text-lg leading-relaxed text-anouma-plum sm:text-xl">
|
||
{children}
|
||
</div>
|
||
)}
|
||
{actions && <div className="mt-9 flex flex-wrap gap-4">{actions}</div>}
|
||
</div>
|
||
|
||
<div className="relative mx-auto aspect-[4/5] w-full max-w-md animate-fade-in [animation-delay:200ms] lg:max-w-none">
|
||
<ImagePlaceholder
|
||
mood={mood}
|
||
label="Anouma – warme, naturverbundene Begleitung"
|
||
src={imageSrc}
|
||
alt={imageAlt}
|
||
priority
|
||
className="h-full w-full"
|
||
/>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
);
|
||
}
|