371 lines
16 KiB
TypeScript
371 lines
16 KiB
TypeScript
import {
|
|
Kanban, BellRing, Link as LinkIcon, Radar, TrendingUp, Users,
|
|
FileText, CircleCheckBig, Zap,
|
|
} from "lucide-react";
|
|
|
|
/* ── Feature list data (teal icons, matching design) ── */
|
|
const features = [
|
|
{ icon: Kanban, title: "Visuelle Pipeline-Ansicht", desc: "Deals per Drag-and-Drop verwalten" },
|
|
{ icon: BellRing, title: "Automatische Follow-ups", desc: "Nie wieder Nachfassen vergessen" },
|
|
{ icon: LinkIcon, title: "Angebots-Verknüpfung", desc: "Angebote direkt mit Deals verbinden" },
|
|
{ icon: Radar, title: "Lead-Quellen-Tracking", desc: "Wissen, woher deine Leads kommen" },
|
|
{ icon: TrendingUp, title: "Umsatzprognose", desc: "Präzise Vorhersagen für deinen Umsatz" },
|
|
{ icon: Users, title: "Team-Zuteilung", desc: "Leads automatisch dem Team zuweisen" },
|
|
];
|
|
|
|
/* ── Notification pills ── */
|
|
const notifications = [
|
|
{ dot: "#F1B729", bg: "#FEF7E0", color: "#C4931E", text: "Neuer Auftrag", pl: 20 },
|
|
{ dot: "#34A853", bg: "#EBF5EB", color: "#2D7A3A", text: "Projekt abgeschlossen", pl: 32 },
|
|
{ dot: "#5856D6", bg: "#EEF2FF", color: "#4845B0", text: "Termin morgen 10:00", pl: 44 },
|
|
];
|
|
|
|
/* ═══════════════════════════════════════════════════════
|
|
COMPONENT
|
|
═══════════════════════════════════════════════════════ */
|
|
export default function VertriebBentoGrid() {
|
|
return (
|
|
<section className="section-full" style={{ background: "#FFFFFF", paddingBlock: 80 }}>
|
|
<div className="flex flex-col gap-4 mx-auto" style={{ maxWidth: "var(--content-width)" }}>
|
|
|
|
{/* ── TOP ROW ─────────────────────────────────── */}
|
|
<div className="flex flex-col lg:flex-row gap-4" style={{ minHeight: 520 }}>
|
|
|
|
{/* ▸ Left Column (Features + Bottom Pair) */}
|
|
<div className="flex-1 flex flex-col gap-4">
|
|
|
|
{/* Tile — "Alles was Sie brauchen" */}
|
|
<div
|
|
className="flex-1 rounded-3xl flex flex-col gap-6 overflow-hidden"
|
|
style={{ background: "#FFFFFF", border: "1px solid #E2E2E7", padding: 32 }}
|
|
>
|
|
<h3 className="text-[28px] font-bold" style={{ color: "var(--text-primary)" }}>
|
|
Alles, was du brauchst
|
|
</h3>
|
|
<div className="flex flex-col gap-5">
|
|
{/* Row 1 */}
|
|
<div className="flex gap-5">
|
|
{features.slice(0, 3).map((f) => (
|
|
<FeatureItem key={f.title} {...f} />
|
|
))}
|
|
</div>
|
|
{/* Row 2 */}
|
|
<div className="flex gap-5">
|
|
{features.slice(3, 6).map((f) => (
|
|
<FeatureItem key={f.title} {...f} />
|
|
))}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{/* Bottom Pair: Automatisierung + Benachrichtigungen */}
|
|
<div className="flex gap-4" style={{ height: 240, flexShrink: 0 }}>
|
|
{/* Tile — Automatisierung (Trigger → Zap → Action) */}
|
|
<div
|
|
className="flex-1 rounded-3xl flex flex-col overflow-hidden"
|
|
style={{ background: "#FFFFFF", border: "1px solid #E2E2E7" }}
|
|
>
|
|
{/* Visual */}
|
|
<div
|
|
className="flex items-center justify-center gap-3 flex-1 rounded-xl mx-6 mt-4"
|
|
style={{ background: "#F8F9FA", padding: "24px 32px" }}
|
|
>
|
|
{/* Trigger card */}
|
|
<div className="rounded-xl flex flex-col gap-1.5" style={{ background: "#FEF7E0", padding: "10px 14px", width: 130 }}>
|
|
<span
|
|
className="self-start text-[9px] font-bold tracking-wide rounded px-2 py-0.5 text-white"
|
|
style={{ background: "#C4931E", letterSpacing: 0.5 }}
|
|
>
|
|
TRIGGER
|
|
</span>
|
|
<span className="text-[11px] font-semibold" style={{ color: "var(--dark-bg)" }}>
|
|
Status → Fertig
|
|
</span>
|
|
</div>
|
|
|
|
{/* Zap icon */}
|
|
<Zap size={20} style={{ color: "var(--accent-yellow)" }} />
|
|
|
|
{/* Action card */}
|
|
<div className="rounded-xl flex flex-col gap-1.5" style={{ background: "#EBF5EB", padding: "10px 14px", width: 130 }}>
|
|
<span
|
|
className="self-start text-[9px] font-bold tracking-wide rounded px-2 py-0.5 text-white"
|
|
style={{ background: "#22C55E", letterSpacing: 0.5 }}
|
|
>
|
|
AKTION
|
|
</span>
|
|
<span className="text-[11px] font-semibold" style={{ color: "var(--dark-bg)" }}>
|
|
E-Mail senden
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
{/* Text */}
|
|
<div className="flex flex-col gap-1 px-6 py-4">
|
|
<span className="text-[17px] font-bold" style={{ color: "var(--text-primary)" }}>
|
|
Automatisierung
|
|
</span>
|
|
<span className="text-[13px]" style={{ color: "var(--text-secondary)" }}>
|
|
Workflows automatisch bei Statusänderungen auslösen
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
{/* Tile — Benachrichtigungen */}
|
|
<div
|
|
className="flex-1 rounded-3xl flex flex-col gap-3 overflow-hidden"
|
|
style={{ background: "#FFFFFF", border: "1px solid #E2E2E7", padding: 24 }}
|
|
>
|
|
{/* Notification pills */}
|
|
<div
|
|
className="flex flex-col items-center justify-center gap-1.5 flex-1 rounded-xl"
|
|
style={{ background: "#F8F9FA" }}
|
|
>
|
|
{notifications.map((n) => (
|
|
<div
|
|
key={n.text}
|
|
className="flex items-center gap-2 rounded-lg"
|
|
style={{
|
|
background: n.bg,
|
|
height: 30,
|
|
padding: `0 12px 0 ${n.pl}px`,
|
|
}}
|
|
>
|
|
<span
|
|
className="rounded-full"
|
|
style={{ width: 6, height: 6, background: n.dot, flexShrink: 0 }}
|
|
/>
|
|
<span className="text-[12px] font-medium" style={{ color: n.color }}>
|
|
{n.text}
|
|
</span>
|
|
</div>
|
|
))}
|
|
</div>
|
|
|
|
{/* Text */}
|
|
<div className="flex flex-col gap-0.5">
|
|
<span className="text-[17px] font-bold" style={{ color: "var(--text-primary)" }}>
|
|
Benachrichtigungen
|
|
</span>
|
|
<span className="text-[13px]" style={{ color: "var(--text-secondary)" }}>
|
|
Immer informiert, in Echtzeit.
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{/* ▸ Right Column — Tile "Angebote" */}
|
|
<div
|
|
className="shrink-0 rounded-3xl flex flex-col justify-end gap-5 overflow-hidden"
|
|
style={{ background: "#FFFFFF", border: "1px solid #E2E2E7", padding: 28, width: 420 }}
|
|
>
|
|
{/* Visual area */}
|
|
<div className="relative flex-1 rounded-2xl overflow-hidden" style={{ background: "#F8F9FA" }}>
|
|
{/* Tilted document */}
|
|
<div
|
|
className="absolute rounded-xl flex flex-col gap-2.5 opacity-70"
|
|
style={{
|
|
left: 50, top: 180, width: 210,
|
|
padding: "16px 18px",
|
|
background: "#FFFFFF",
|
|
boxShadow: "0 4px 16px rgba(0,0,0,0.08)",
|
|
transform: "rotate(-4deg)",
|
|
}}
|
|
>
|
|
<div className="flex items-center gap-2">
|
|
<FileText size={16} style={{ color: "var(--text-secondary)" }} />
|
|
<span className="text-[12px] font-semibold leading-snug" style={{ color: "var(--text-primary)" }}>
|
|
Dein Angebot mit Fördergarantie
|
|
</span>
|
|
</div>
|
|
<div className="rounded-sm" style={{ height: 4, width: 160, background: "#E5E7EB" }} />
|
|
<div className="rounded-sm" style={{ height: 4, width: 120, background: "#E5E7EB" }} />
|
|
</div>
|
|
|
|
{/* Floating Card */}
|
|
<div
|
|
className="absolute rounded-2xl flex flex-col gap-4"
|
|
style={{
|
|
left: 30, top: 24, width: 260,
|
|
padding: 20,
|
|
background: "#FFFFFF",
|
|
boxShadow: "0 8px 32px rgba(0,0,0,0.1)",
|
|
}}
|
|
>
|
|
{/* Header */}
|
|
<div className="flex items-center justify-between">
|
|
<span className="text-[18px] font-bold" style={{ color: "var(--text-primary)" }}>
|
|
Angebot
|
|
</span>
|
|
<span
|
|
className="text-[11px] font-semibold text-white rounded-md px-2.5 py-1"
|
|
style={{ background: "#22C55E" }}
|
|
>
|
|
Fertig
|
|
</span>
|
|
</div>
|
|
|
|
{/* Progress bars */}
|
|
<div className="flex flex-col gap-2.5">
|
|
<ProgressBar width="85%" />
|
|
<ProgressBar width="62%" />
|
|
<ProgressBar width="45%" />
|
|
</div>
|
|
|
|
{/* Action row */}
|
|
<div className="flex items-center justify-between">
|
|
<div className="flex items-center gap-1.5">
|
|
<CircleCheckBig size={16} style={{ color: "#22C55E" }} />
|
|
<span className="text-[12px] font-medium" style={{ color: "var(--text-secondary)" }}>
|
|
Im Kundenportal
|
|
</span>
|
|
</div>
|
|
<span
|
|
className="text-[12px] font-semibold text-white rounded-lg px-3.5 py-1.5"
|
|
style={{ background: "#5856D6" }}
|
|
>
|
|
Teilen
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{/* Text area */}
|
|
<div className="flex flex-col gap-1.5">
|
|
<span className="text-[20px] font-bold" style={{ color: "var(--text-primary)" }}>
|
|
Angebote
|
|
</span>
|
|
<span className="text-[14px] leading-snug" style={{ color: "var(--text-secondary)" }}>
|
|
Professionelle Angebote erstellen und direkt im Kundenportal teilen.
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{/* ── BOTTOM ROW — Umsatzprognose ─────────── */}
|
|
<div
|
|
className="rounded-3xl flex flex-col lg:flex-row gap-10 overflow-hidden"
|
|
style={{ background: "#FFFFFF", border: "1px solid #E2E2E7", padding: 32, minHeight: 320 }}
|
|
>
|
|
{/* Text column */}
|
|
<div className="flex flex-col justify-center gap-5 shrink-0" style={{ width: "min(100%, 320px)" }}>
|
|
<h3 className="text-[28px] font-bold" style={{ color: "var(--text-primary)" }}>
|
|
Umsatzprognose
|
|
</h3>
|
|
<p className="text-[15px] leading-relaxed" style={{ color: "var(--text-secondary)" }}>
|
|
Behalte deine Umsatzziele im Blick. Echtzeit-Prognosen auf Basis deiner
|
|
Pipeline, automatisch berechnet.
|
|
</p>
|
|
<div className="flex gap-4">
|
|
<KPIBox value="€284k" label="Prognose" color="var(--text-primary)" />
|
|
<KPIBox value="€198k" label="Gesichert" color="#22C55E" />
|
|
</div>
|
|
</div>
|
|
|
|
{/* Chart area */}
|
|
<div
|
|
className="flex-1 rounded-2xl relative overflow-hidden"
|
|
style={{ background: "#F8F9FA", minHeight: 240 }}
|
|
>
|
|
<svg className="w-full h-full" viewBox="0 0 660 250" fill="none" preserveAspectRatio="xMidYMid meet">
|
|
{/* Grid lines */}
|
|
{[80, 120, 160, 200].map((y) => (
|
|
<line key={y} x1="30" y1={y} x2="640" y2={y} stroke="#E5E7EB" strokeWidth="1" />
|
|
))}
|
|
|
|
{/* Chart header */}
|
|
<text x="30" y="30" fontSize="13" fontWeight="600" fill="var(--text-secondary)" fontFamily="Inter">
|
|
2026
|
|
</text>
|
|
|
|
{/* Revenue curve */}
|
|
<path
|
|
d="M40 180 C80 175, 120 155, 160 150 C200 145, 240 140, 280 135 C320 130, 360 115, 400 110 C440 105, 480 95, 520 88 C560 82, 600 70, 620 65"
|
|
stroke="#5856D6" strokeWidth="2.5" strokeLinecap="round" fill="none"
|
|
/>
|
|
{/* Fill area */}
|
|
<path
|
|
d="M40 180 C80 175, 120 155, 160 150 C200 145, 240 140, 280 135 C320 130, 360 115, 400 110 C440 105, 480 95, 520 88 C560 82, 600 70, 620 65 L620 220 L40 220 Z"
|
|
fill="url(#chartGrad)" opacity="0.5"
|
|
/>
|
|
<defs>
|
|
<linearGradient id="chartGrad" x1="0" y1="0" x2="0" y2="1">
|
|
<stop offset="0%" stopColor="#5856D6" stopOpacity="0.12" />
|
|
<stop offset="100%" stopColor="#5856D6" stopOpacity="0.02" />
|
|
</linearGradient>
|
|
</defs>
|
|
|
|
{/* Dots */}
|
|
{[
|
|
[40, 180], [160, 150], [280, 135], [400, 110], [520, 88],
|
|
].map(([cx, cy], i) => (
|
|
<circle key={i} cx={cx} cy={cy} r={4} fill="#5856D6" />
|
|
))}
|
|
{/* Last dot — hollow with glow */}
|
|
<circle cx={620} cy={65} r={5} fill="#FFFFFF" stroke="#5856D6" strokeWidth={2.5} />
|
|
|
|
{/* Month labels */}
|
|
{["Jan", "Feb", "Mär", "Apr", "Mai", "Jun"].map((m, i) => (
|
|
<text
|
|
key={m}
|
|
x={40 + i * 116}
|
|
y={240}
|
|
fontSize="11"
|
|
fontWeight="500"
|
|
fill="#888888"
|
|
fontFamily="Inter"
|
|
textAnchor="middle"
|
|
>
|
|
{m}
|
|
</text>
|
|
))}
|
|
</svg>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
);
|
|
}
|
|
|
|
/* ── Sub-components ── */
|
|
|
|
function FeatureItem({ icon: Icon, title, desc }: { icon: typeof Kanban; title: string; desc: string }) {
|
|
return (
|
|
<div
|
|
className="flex items-center gap-3 flex-1 rounded-xl"
|
|
style={{ background: "#F8F9FA", padding: 12 }}
|
|
>
|
|
<Icon size={24} style={{ color: "var(--accent-teal)", flexShrink: 0 }} strokeWidth={2} />
|
|
<div className="flex flex-col gap-0.5">
|
|
<span className="text-[14px] font-semibold" style={{ color: "var(--text-primary)" }}>
|
|
{title}
|
|
</span>
|
|
<span className="text-[12px]" style={{ color: "var(--text-secondary)" }}>
|
|
{desc}
|
|
</span>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
function ProgressBar({ width }: { width: string }) {
|
|
return (
|
|
<div className="rounded-sm overflow-hidden" style={{ height: 6, background: "#E5E7EB" }}>
|
|
<div className="rounded-sm h-full" style={{ width, background: "#D0D0D0" }} />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
function KPIBox({ value, label, color }: { value: string; label: string; color: string }) {
|
|
return (
|
|
<div
|
|
className="rounded-xl flex flex-col gap-0.5"
|
|
style={{ background: "#F8F9FA", padding: "12px 16px", border: "1px solid #E8E8ED" }}
|
|
>
|
|
<span className="text-[24px] font-bold" style={{ color }}>{value}</span>
|
|
<span className="text-[12px] font-medium" style={{ color: "var(--text-secondary)" }}>{label}</span>
|
|
</div>
|
|
);
|
|
}
|