import type { ReactNode } from "react";
import Link from "next/link";
import { ArrowRight, Check } from "lucide-react";
import Header from "@/components/Header";
import Footer from "@/components/Footer";
import MobileContactBar from "@/components/MobileContactBar";
/* Gemeinsame Bausteine der Unterseiten (Theme Cobalt, Markenfarben). */
export type Tone = "warm" | "cool";
export function PageShell({ children }: { children: ReactNode }) {
return (
{children}
);
}
export function PageHead({
title,
lead,
crumbs,
actions,
badge,
}: {
title: ReactNode;
lead?: ReactNode;
crumbs?: { label: string; href?: string }[];
actions?: ReactNode;
badge?: ReactNode;
}) {
return (
{crumbs && (
)}
{badge}
{title}
{lead &&
{lead}
}
{actions &&
{actions}
}
);
}
export function Sub({
title,
lead,
band = false,
id,
children,
}: {
title?: ReactNode;
lead?: ReactNode;
band?: boolean;
id?: string;
children: ReactNode;
}) {
return (
{title && (
)}
{children}
);
}
export function Offer({
tone = "warm",
title,
badge,
text,
chips,
actions,
price,
}: {
tone?: Tone;
title: ReactNode;
badge?: string;
text: ReactNode;
chips?: string[];
actions: ReactNode;
price: { was?: string; value: string; note: string };
}) {
return (
{badge &&
{badge}}
{title}
{text}
{chips && (
{chips.map((c) => (
- {c}
))}
)}
{actions}
{price.was && {price.was}}
{price.value}
{price.note}
);
}
export function LinkCard({
href,
tone = "warm",
icon,
title,
text,
meta,
headingLevel = "h2",
}: {
href: string;
tone?: Tone;
icon?: ReactNode;
title: string;
text: ReactNode;
meta: string;
headingLevel?: "h2" | "h3";
}) {
const H = headingLevel;
return (
{icon}
{title}
{text}
{meta}
);
}
export function CheckList({ items }: { items: string[] }) {
return (
{items.map((item) => (
-
{item}
))}
);
}
export function Consult({
children,
cta = "Kostenloses ErstgesprÃĪch anfragen",
href = "/#contact",
}: {
children: ReactNode;
cta?: string;
href?: string;
}) {
return (
);
}