Files

231 lines
8.3 KiB
TypeScript

"use client";
import Link from "next/link";
import { CHAMFER } from "@/lib/chamfer";
import { useState } from "react";
import LeadForm from "@/components/ui/LeadForm";
import DemoButton from "@/components/ui/DemoButton";
const footerColumns = [
{
heading: "PRODUKTE",
links: [
{ label: "Workflow Engine", href: "/produkt/workflow-engine" },
{ label: "Email Marketing", href: "/produkt/email-marketing" },
{ label: "Chat App", href: "/produkt/chat" },
{ label: "Projektmanagement", href: "/produkt/projektmanagement" },
{ label: "Vertriebspipelines", href: "/produkt/vertriebspipelines" },
{ label: "Mitarbeitermanagement", href: "/produkt/mitarbeitermanagement" },
],
},
{
heading: "UNTERNEHMEN",
links: [
{ label: "Für wen ist HiveGrid?", href: "/kunden" },
{ label: "Unsere Mission", href: "/mission" },
{ label: "Über uns", href: "/ueber-uns" },
{ label: "Kontakt", href: "/kontakt" },
],
},
{
heading: "RECHTLICHES",
links: [
{ label: "Impressum", href: "/impressum" },
{ label: "Datenschutz", href: "/datenschutz" },
{ label: "AGB", href: "/agb" },
],
},
];
export default function Footer() {
const [nl, setNl] = useState("");
const [nlSubmitted, setNlSubmitted] = useState(false);
const handleNewsletter = (e: React.FormEvent) => {
e.preventDefault();
if (!nl || !nl.includes("@")) return;
setNlSubmitted(true);
};
return (
<footer style={{ background: "var(--surface)", padding: "80px 0 40px" }}>
<div className="footer-container">
<div
className="mx-auto footer-inner"
style={{
clipPath: CHAMFER,
background: "var(--dark-bg)",
display: "flex",
flexDirection: "column",
gap: 48,
}}
>
{/* ── Lead / Contact Block — heading left, shared light form card right ── */}
<div className="grid grid-cols-1 lg:grid-cols-[0.9fr_1.1fr] gap-10 lg:gap-16 items-center">
<div className="flex flex-col gap-4" style={{ maxWidth: 460 }}>
<span
className="text-[13px] font-semibold uppercase tracking-widest"
style={{ color: "var(--accent-yellow)" }}
>
Sprich mit uns
</span>
<h2
className="font-extrabold"
style={{
color: "#FFFFFF",
fontSize: "clamp(28px, 3.4vw, 40px)",
lineHeight: 1.1,
letterSpacing: "-0.02em",
}}
>
Frag uns direkt.<br />Wir sind Menschen, keine Bots.
</h2>
<p
className="text-[15px] leading-relaxed"
style={{ color: "#BCBFC8" }}
>
Egal ob konkrete Frage oder unverbindliches Erstgespräch.
Schreib uns hier. Wir antworten innerhalb von 24 Stunden an
Werktagen.
</p>
</div>
<div>
<LeadForm submitLabel="Anfrage senden" />
</div>
</div>
{/* Divider */}
<div style={{ height: 1, background: "#44455A" }} />
{/* ── Top Row: Brand + Newsletter + Nav ─────────────────── */}
<div className="flex flex-col lg:flex-row justify-between gap-10">
{/* Brand Block */}
<div className="flex flex-col gap-5" style={{ maxWidth: 320 }}>
<div className="flex flex-col gap-3">
<img
src="/logo-white.svg"
alt="HiveGrid"
className="self-start"
style={{ height: 40 }}
/>
<p className="text-[14px] leading-relaxed" style={{ color: "#9A9DAE" }}>
HiveGrid verbindet die Software, die dein SHK-Betrieb schon
nutzt, zu einem Überblick. Weniger Suchen, weniger Zettel, mehr
Zeit fürs Handwerk.
</p>
</div>
{/* Newsletter — TODO(noah): behalten oder droppen */}
<div className="flex flex-col gap-2">
<span className="text-[13px] font-semibold" style={{ color: "#CCCCCC" }}>
Newsletter abonnieren
</span>
{nlSubmitted ? (
<p className="text-[13px]" style={{ color: "var(--accent-yellow)" }}>
✓ Danke! Du erhältst eine Bestätigung per E-Mail.
</p>
) : (
<form onSubmit={handleNewsletter} className="flex gap-2">
<input
type="email"
value={nl}
onChange={(e) => setNl(e.target.value)}
suppressHydrationWarning
placeholder="Deine E-Mail-Adresse"
className="flex-1 min-w-0 rounded-[6px] text-[13px] outline-none focus:ring-2 focus:ring-[var(--accent-yellow)] transition-shadow"
style={{
background: "#3E3F4D",
border: "none",
color: "#FFFFFF",
padding: "0 12px",
height: 38,
}}
/>
<DemoButton type="submit" size="sm" className="shrink-0">
Abonnieren
</DemoButton>
</form>
)}
</div>
</div>
{/* Nav Columns */}
<div className="grid grid-cols-1 min-[420px]:grid-cols-2 lg:grid-cols-3 gap-8 lg:gap-14">
{footerColumns.map((col) => (
<div key={col.heading} className="flex flex-col gap-3.5">
<span
className="text-[11px] font-semibold tracking-widest"
style={{ color: "#6A7383" }}
>
{col.heading}
</span>
{col.links.map((link) => (
<Link
key={link.href + link.label}
href={link.href}
className="text-[14px] transition-colors hover:text-white"
style={{ color: "#BCBFC8" }}
>
{link.label}
</Link>
))}
</div>
))}
</div>
</div>
{/* Divider */}
<div style={{ height: 1, background: "#44455A" }} />
{/* Bottom Row */}
<div className="flex flex-col sm:flex-row items-center justify-between gap-4">
<p className="text-[13px]" style={{ color: "#6A7383" }}>
© HiveGrid · Alle Rechte vorbehalten.
</p>
<div className="flex items-center gap-2">
<span
className="flex items-center gap-1.5 text-[12px]"
style={{ color: "#6A7383" }}
>
<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
<path
d="M7 1L8.5 5H13L9.5 7.5L11 12L7 9.5L3 12L4.5 7.5L1 5H5.5L7 1Z"
fill="#F1B729"
/>
</svg>
DSGVO-konform
</span>
<span style={{ color: "#44455A" }}>·</span>
<span
className="flex items-center gap-1.5 text-[12px]"
style={{ color: "#6A7383" }}
>
<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
<rect
x="1"
y="1"
width="12"
height="12"
rx="2"
stroke="#F1B729"
strokeWidth="1.5"
fill="none"
/>
<path
d="M4 7L6.5 9.5L10 5"
stroke="#F1B729"
strokeWidth="1.5"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
Made in Germany
</span>
</div>
</div>
</div>
</div>
</footer>
);
}