Files
HiveGrid-Wireframes/03 Quellen und Referenzen/hivegrid-website/components/ui/CTABanner.tsx
T

65 lines
1.9 KiB
TypeScript

import Link from "next/link";
import { CHAMFER } from "@/lib/chamfer";
import DemoButton from "@/components/ui/DemoButton";
interface CTABannerProps {
headline: string;
sub: string;
primaryLabel?: string;
primaryHref?: string;
secondaryLabel?: string;
secondaryHref?: string;
}
export default function CTABanner({
headline,
sub,
primaryLabel = "Auf die Warteliste",
primaryHref = "/waitlist",
secondaryLabel = "Kontakt",
secondaryHref = "/kontakt",
}: CTABannerProps) {
return (
<section
className="section-full"
style={{ background: "var(--surface)", paddingBlock: 80 }}
>
<div className="mx-auto" style={{ maxWidth: "var(--content-width)" }}>
<div
className="flex flex-col lg:flex-row items-center justify-between gap-8"
style={{ background: "var(--dark-bg)", padding: "56px 64px", clipPath: CHAMFER }}
>
{/* Text */}
<div className="flex flex-col gap-4 w-full lg:max-w-lg">
<h2
className="text-[28px] md:text-[36px] font-bold leading-[1.2]"
style={{ color: "#FFFFFF" }}
>
{headline}
</h2>
<p className="text-[16px] leading-relaxed" style={{ color: "#A3ACBA" }}>
{sub}
</p>
</div>
{/* Buttons */}
<div className="flex flex-wrap gap-3 shrink-0">
<DemoButton href={primaryHref}>{primaryLabel}</DemoButton>
<Link
href={secondaryHref}
className="inline-flex items-center justify-center rounded-[var(--radius-button)] text-[16px] font-semibold hover:bg-white/10 transition-colors"
style={{
color: "#FFFFFF",
padding: "14px 28px",
border: "1px solid #FFFFFF",
}}
>
{secondaryLabel}
</Link>
</div>
</div>
</div>
</section>
);
}