import Link from "next/link"; import { CHAMFER } from "@/lib/chamfer"; import type { ReactNode } from "react"; import DemoButton from "@/components/ui/DemoButton"; import { AnimatedDavidCard } from "@/app/ueber-uns/TeamCards"; /* ────────────────────────────────────────────────────────────────────────── * CTA banner with three interchangeable right-side visuals. Shared by the * landing page and the product pages so each surface can pick the variant * that fits (not the same one everywhere): * - "hex": honeycomb texture (abstract brand) * - "portrait": David-portrait frame (human touch) * - "kanban": kanban board preview (product peek / pipeline) * ────────────────────────────────────────────────────────────────────────── */ export type CtaVariant = "hex" | "portrait" | "kanban"; function HexRightArt() { // Brand honeycomb graphic over the text-free right area. Two layers: // 1. the honeycomb (public/cta-honeycomb.svg) at uniform strength // 2. a navy background that fades in from the right (0%) to the left (100%), // revealing the honeycomb progressively toward the right. return (
); } function PortraitRightArt() { return (
); } // Mini priority flag — same mark as the projektmanagement KanbanBoard, lighter // tints so it reads on the dark CTA background. function MiniFlag({ priority }: { priority: "high" | "medium" | "low" }) { const color = priority === "high" ? "#F87171" : priority === "medium" ? "#F1B729" : "rgba(255,255,255,0.35)"; return ( ); } function KanbanRightArt() { const columns = [ { title: "Angebote", accent: "#93C5FD", cards: [ { title: "Sanitär Neubau · Weber", tag: "Neu", tagColor: "#93C5FD", priority: "high" as const, value: "€ 42.500", initials: "MW" }, { title: "Heizung Modernis. · Berg", tag: "Follow-up", tagColor: "#F1B729", priority: "medium" as const, value: "€ 18.900", initials: "LK" }, ], }, { title: "Baustellen", accent: "#F1B729", cards: [ { title: "Solarcarport · Linnich", tag: "Planung", tagColor: "#F1B729", priority: "high" as const, value: "€ 73.800", initials: "AW" }, ], }, { title: "Abgeschlossen", accent: "#4ADE80", cards: [ { title: "Wartung Müller", tag: "OK", tagColor: "#4ADE80", priority: "low" as const, value: "12 Anlagen", initials: "SM" }, { title: "Bad Renov. Fischer", tag: "Abgenommen", tagColor: "#4ADE80", priority: "low" as const, value: "€ 24.300", initials: "TB" }, ], }, ]; return (
Beispielansicht
{columns.map((col) => (
{col.title}
{col.cards.map((card, i) => ( // Same card anatomy as the projektmanagement board: tag + priority // flag row, prominent title, footer with an avatar and a chip — // just re-coloured for the dark banner.
{/* Row 1: tag · priority flag */}
{card.tag}
{/* Title */} {card.title} {/* Footer: avatar · value chip */}
{card.initials} {card.value}
))}
))}
); } export default function CtaBanner({ headline, sub, variant = "hex", ctaLabel = "Auf die Warteliste", }: { headline: ReactNode; sub: string; variant?: CtaVariant; ctaLabel?: string; }) { const compactPortraitSpacing = variant === "portrait"; return (
{/* Variant-specific right-side art (hex is absolute-full, others sit inline) */} {variant === "hex" && } {/* Text block */}

{headline}

{sub}

{ctaLabel} Kontakt
{/* Non-hex variants: inline art on the right */} {variant === "portrait" && } {variant === "kanban" && }
); }