chore(repo): sync wireframe structure and references
This commit is contained in:
1 parent
05d2d5777f
commit
d953a79e95
453 files changed
+36639
-621
No files matched your search
@@ -0,0 +1,319 @@
|
||||
"use client";
|
||||
import { useState } from "react";
|
||||
import Link from "next/link";
|
||||
import { Mail, MapPin, Clock } from "lucide-react";
|
||||
import DemoButton from "@/components/ui/DemoButton";
|
||||
|
||||
/* ─── shared input styles ─── */
|
||||
const inputClass =
|
||||
"w-full rounded-lg px-3 h-11 text-[14px] outline-none focus:ring-2 focus:ring-[var(--accent-yellow)]";
|
||||
const inputStyle = {
|
||||
border: "1px solid var(--border-neutral)",
|
||||
background: "var(--surface)",
|
||||
color: "var(--text-primary)",
|
||||
};
|
||||
|
||||
export default function KontaktForm() {
|
||||
const [submitted, setSubmitted] = useState(false);
|
||||
const [form, setForm] = useState({
|
||||
vorname: "",
|
||||
nachname: "",
|
||||
email: "",
|
||||
unternehmen: "",
|
||||
betreff: "Allgemeine Anfrage",
|
||||
nachricht: "",
|
||||
dsgvo: false,
|
||||
});
|
||||
|
||||
const update = (k: string, v: string | boolean) =>
|
||||
setForm((f) => ({ ...f, [k]: v }));
|
||||
|
||||
const handleSubmit = (e: React.FormEvent) => {
|
||||
e.preventDefault();
|
||||
if (!form.email || !form.vorname || !form.dsgvo) return;
|
||||
setSubmitted(true);
|
||||
};
|
||||
|
||||
/* ─── Success state ─── */
|
||||
if (submitted) {
|
||||
return (
|
||||
<section
|
||||
className="section-full"
|
||||
style={{
|
||||
paddingTop: "var(--hero-top-padding)",
|
||||
paddingBottom: 80,
|
||||
minHeight: "70vh",
|
||||
}}
|
||||
>
|
||||
<div
|
||||
className="flex flex-col items-center gap-6 mx-auto text-center"
|
||||
style={{ maxWidth: 560 }}
|
||||
>
|
||||
<div
|
||||
className="flex items-center justify-center rounded-full"
|
||||
style={{
|
||||
width: 80,
|
||||
height: 80,
|
||||
background: "var(--accent-yellow-light)",
|
||||
}}
|
||||
>
|
||||
<Mail size={36} style={{ color: "var(--accent-yellow-dark)" }} />
|
||||
</div>
|
||||
<h1
|
||||
className="text-[32px] md:text-[42px] font-bold"
|
||||
style={{ color: "var(--text-primary)" }}
|
||||
>
|
||||
Vielen Dank!
|
||||
</h1>
|
||||
<p
|
||||
className="text-[16px] md:text-[18px] leading-relaxed"
|
||||
style={{ color: "var(--text-secondary)" }}
|
||||
>
|
||||
Wir haben deine Nachricht erhalten und melden uns innerhalb von
|
||||
24 Stunden bei dir.
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
/* ─── Form ─── */
|
||||
return (
|
||||
<>
|
||||
<section
|
||||
className="section-full"
|
||||
style={{ paddingTop: "var(--hero-top-padding)", paddingBottom: 0 }}
|
||||
>
|
||||
<div className="flex flex-col items-center gap-5 mx-auto text-center">
|
||||
<span
|
||||
className="text-[12px] font-semibold tracking-widest chamfer-badge px-3 py-1"
|
||||
style={{
|
||||
background: "var(--accent-yellow-light)",
|
||||
color: "var(--accent-yellow-dark)",
|
||||
}}
|
||||
>
|
||||
KONTAKT
|
||||
</span>
|
||||
<h1
|
||||
className="text-[32px] md:text-[56px] font-bold leading-[1.1]"
|
||||
style={{ color: "var(--text-primary)" }}
|
||||
>
|
||||
Wir sind für dich da.
|
||||
</h1>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section className="section-full" style={{ paddingBlock: "48px 80px" }}>
|
||||
<div
|
||||
className="mx-auto overflow-hidden"
|
||||
style={{ maxWidth: "var(--content-width)" }}
|
||||
>
|
||||
<p
|
||||
className="text-[15px] md:text-[16px] leading-relaxed mb-8"
|
||||
style={{ color: "var(--text-secondary)" }}
|
||||
>
|
||||
Egal ob konkrete Frage oder unverbindliches Erstgespräch: Schreib
|
||||
uns, und wir melden uns so schnell wie möglich.
|
||||
</p>
|
||||
|
||||
<div className="flex flex-col lg:flex-row gap-10 lg:gap-16">
|
||||
{/* ── Form ── */}
|
||||
<form
|
||||
onSubmit={handleSubmit}
|
||||
className="flex flex-col gap-5 flex-1 min-w-0"
|
||||
>
|
||||
{/* Vorname / Nachname */}
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
|
||||
<label className="flex flex-col gap-1.5">
|
||||
<span
|
||||
className="text-[13px] font-medium"
|
||||
style={{ color: "var(--text-primary)" }}
|
||||
>
|
||||
Vorname *
|
||||
</span>
|
||||
<input
|
||||
required
|
||||
value={form.vorname}
|
||||
onChange={(e) => update("vorname", e.target.value)}
|
||||
className={inputClass}
|
||||
style={inputStyle}
|
||||
/>
|
||||
</label>
|
||||
<label className="flex flex-col gap-1.5">
|
||||
<span
|
||||
className="text-[13px] font-medium"
|
||||
style={{ color: "var(--text-primary)" }}
|
||||
>
|
||||
Nachname
|
||||
</span>
|
||||
<input
|
||||
value={form.nachname}
|
||||
onChange={(e) => update("nachname", e.target.value)}
|
||||
className={inputClass}
|
||||
style={inputStyle}
|
||||
/>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
{/* E-Mail */}
|
||||
<label className="flex flex-col gap-1.5">
|
||||
<span
|
||||
className="text-[13px] font-medium"
|
||||
style={{ color: "var(--text-primary)" }}
|
||||
>
|
||||
E-Mail *
|
||||
</span>
|
||||
<input
|
||||
required
|
||||
type="email"
|
||||
value={form.email}
|
||||
onChange={(e) => update("email", e.target.value)}
|
||||
className={inputClass}
|
||||
style={inputStyle}
|
||||
/>
|
||||
</label>
|
||||
|
||||
{/* Unternehmen */}
|
||||
<label className="flex flex-col gap-1.5">
|
||||
<span
|
||||
className="text-[13px] font-medium"
|
||||
style={{ color: "var(--text-primary)" }}
|
||||
>
|
||||
Unternehmen
|
||||
</span>
|
||||
<input
|
||||
value={form.unternehmen}
|
||||
onChange={(e) => update("unternehmen", e.target.value)}
|
||||
className={inputClass}
|
||||
style={inputStyle}
|
||||
/>
|
||||
</label>
|
||||
|
||||
{/* Betreff */}
|
||||
<label className="flex flex-col gap-1.5">
|
||||
<span
|
||||
className="text-[13px] font-medium"
|
||||
style={{ color: "var(--text-primary)" }}
|
||||
>
|
||||
Betreff
|
||||
</span>
|
||||
<select
|
||||
value={form.betreff}
|
||||
onChange={(e) => update("betreff", e.target.value)}
|
||||
className={inputClass}
|
||||
style={inputStyle}
|
||||
>
|
||||
<option>Allgemeine Anfrage</option>
|
||||
<option>Demo buchen</option>
|
||||
<option>Technischer Support</option>
|
||||
<option>Partnerschaft</option>
|
||||
</select>
|
||||
</label>
|
||||
|
||||
{/* Nachricht */}
|
||||
<label className="flex flex-col gap-1.5">
|
||||
<span
|
||||
className="text-[13px] font-medium"
|
||||
style={{ color: "var(--text-primary)" }}
|
||||
>
|
||||
Nachricht
|
||||
</span>
|
||||
<textarea
|
||||
rows={5}
|
||||
value={form.nachricht}
|
||||
onChange={(e) => update("nachricht", e.target.value)}
|
||||
className="w-full rounded-lg px-3 py-2.5 text-[14px] outline-none resize-y focus:ring-2 focus:ring-[var(--accent-yellow)]"
|
||||
style={inputStyle}
|
||||
/>
|
||||
</label>
|
||||
|
||||
{/* DSGVO */}
|
||||
<label className="flex items-start gap-2.5 cursor-pointer">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={form.dsgvo}
|
||||
onChange={(e) => update("dsgvo", e.target.checked)}
|
||||
className="mt-1 shrink-0 accent-[var(--accent-yellow)]"
|
||||
/>
|
||||
<span
|
||||
className="text-[13px] leading-relaxed"
|
||||
style={{ color: "var(--text-secondary)" }}
|
||||
>
|
||||
Ich stimme der Verarbeitung meiner Daten gemäß der{" "}
|
||||
<Link
|
||||
href="/datenschutz"
|
||||
className="underline underline-offset-2 hover:no-underline"
|
||||
style={{ color: "var(--accent-yellow)" }}
|
||||
>
|
||||
Datenschutzerklärung
|
||||
</Link>{" "}
|
||||
zu. *
|
||||
</span>
|
||||
</label>
|
||||
|
||||
{/* Submit — wave button, right-aligned like the footer lead form */}
|
||||
<DemoButton type="submit" className="self-end">
|
||||
Nachricht senden
|
||||
</DemoButton>
|
||||
</form>
|
||||
|
||||
{/* ── Sidebar ── */}
|
||||
<div className="flex flex-col gap-6 w-full lg:w-[340px] lg:shrink-0">
|
||||
<div
|
||||
className="flex flex-col gap-5 rounded-xl"
|
||||
style={{ background: "var(--container-bg)", padding: "24px 28px" }}
|
||||
>
|
||||
<h3
|
||||
className="text-[16px] font-semibold"
|
||||
style={{ color: "var(--text-primary)" }}
|
||||
>
|
||||
Kontaktinformationen
|
||||
</h3>
|
||||
{[
|
||||
{ icon: Mail, text: "info@hivegrid.de" },
|
||||
{ icon: MapPin, text: "Bruchsal, Deutschland" },
|
||||
{ icon: Clock, text: "Mo–Fr, 8–18 Uhr" },
|
||||
].map(({ icon: Icon, text }) => (
|
||||
<div key={text} className="flex items-center gap-3">
|
||||
<Icon
|
||||
size={18}
|
||||
className="shrink-0"
|
||||
style={{ color: "var(--accent-yellow)" }}
|
||||
/>
|
||||
<span
|
||||
className="text-[14px]"
|
||||
style={{ color: "var(--text-secondary)" }}
|
||||
>
|
||||
{text}
|
||||
</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
<div
|
||||
className="rounded-xl"
|
||||
style={{
|
||||
background: "var(--accent-yellow-light)",
|
||||
padding: "20px 24px",
|
||||
}}
|
||||
>
|
||||
<p
|
||||
className="text-[14px] font-semibold mb-2"
|
||||
style={{ color: "var(--text-primary)" }}
|
||||
>
|
||||
Unser Versprechen
|
||||
</p>
|
||||
<p
|
||||
className="text-[13px] leading-relaxed"
|
||||
style={{ color: "var(--text-secondary)" }}
|
||||
>
|
||||
Wir antworten innerhalb von 24 Stunden an Werktagen.
|
||||
Persönlich, nicht automatisiert.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
// Contact and demo were unified into the waitlist. Keep the old URL working.
|
||||
export default function KontaktPage() {
|
||||
redirect("/waitlist");
|
||||
}
|
||||
Reference in new issue
Block a user