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,54 @@
|
||||
"use client";
|
||||
import { useState } from "react";
|
||||
import Link from "next/link";
|
||||
import { MailMinus } from "lucide-react";
|
||||
import { CHAMFER } from "@/lib/chamfer";
|
||||
|
||||
const reasons = ["Zu viele E-Mails", "Inhalte sind nicht relevant", "Ich nutze HiveGrid nicht mehr", "Sonstiges"];
|
||||
|
||||
export default function AbmeldenForm() {
|
||||
const [done, setDone] = useState(false);
|
||||
const [reason, setReason] = useState("");
|
||||
|
||||
if (done) return (
|
||||
<section className="section-full" style={{ paddingTop: "var(--section-padding-large)", paddingBottom: 80, minHeight: "70vh" }}>
|
||||
<div className="flex flex-col items-center gap-6 mx-auto text-center" style={{ maxWidth: 480 }}>
|
||||
<div className="flex items-center justify-center rounded-full" style={{ width: 80, height: 80, background: "var(--container-bg)" }}>
|
||||
<MailMinus size={36} style={{ color: "var(--text-tertiary)" }} />
|
||||
</div>
|
||||
<h1 className="text-[36px] font-bold" style={{ color: "var(--text-primary)" }}>Sie wurden abgemeldet.</h1>
|
||||
<p className="text-[16px] leading-relaxed" style={{ color: "var(--text-secondary)" }}>Sie erhalten ab sofort keine weiteren E-Mails von uns. Wir hoffen, Sie bald wiederzusehen.</p>
|
||||
<div className="flex flex-col items-center gap-4" style={{ background: "var(--container-bg)", padding: 32, width: "100%", clipPath: CHAMFER }}>
|
||||
<p className="text-[16px] font-semibold" style={{ color: "var(--text-primary)" }}>Abmeldung rückgängig machen?</p>
|
||||
<p className="text-[14px] text-center" style={{ color: "var(--text-secondary)" }}>Falls Sie es sich anders überlegen, können Sie sich jederzeit erneut anmelden.</p>
|
||||
<button onClick={() => setDone(false)} className="rounded-[var(--radius-button)] text-[14px] font-semibold hover:bg-[var(--accent-yellow-dark)] transition-colors" style={{ background: "var(--accent-yellow)", color: "var(--text-primary)", padding: "12px 24px" }}>Erneut anmelden</button>
|
||||
</div>
|
||||
<Link href="/" className="rounded-[var(--radius-button)] text-[14px] font-semibold" style={{ padding: "14px 28px", border: "1px solid var(--border-neutral)", color: "var(--text-primary)" }}>Zur Startseite</Link>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
||||
return (
|
||||
<section className="section-full" style={{ paddingTop: "var(--section-padding-large)", paddingBottom: 80, minHeight: "70vh" }}>
|
||||
<div className="flex flex-col items-center gap-6 mx-auto text-center" style={{ maxWidth: 480 }}>
|
||||
<MailMinus size={48} style={{ color: "var(--text-tertiary)" }} />
|
||||
<h1 className="text-[36px] font-bold" style={{ color: "var(--text-primary)" }}>Newsletter abmelden</h1>
|
||||
<p className="text-[16px] leading-relaxed" style={{ color: "var(--text-secondary)" }}>Schade, dass Sie gehen. Möchten Sie sich wirklich vom HiveGrid Newsletter abmelden?</p>
|
||||
<div className="flex flex-col gap-4 w-full text-left" style={{ background: "var(--container-bg)", padding: 32, clipPath: CHAMFER }}>
|
||||
<p className="text-[14px] font-medium" style={{ color: "var(--text-primary)" }}>Warum möchten Sie sich abmelden?</p>
|
||||
{reasons.map((r) => (
|
||||
<label key={r} className="flex items-center gap-2.5 cursor-pointer">
|
||||
<input type="radio" name="reason" checked={reason === r} onChange={() => setReason(r)} className="accent-[var(--accent-yellow)]" />
|
||||
<span className="text-[14px]" style={{ color: "var(--text-primary)" }}>{r}</span>
|
||||
</label>
|
||||
))}
|
||||
</div>
|
||||
<div className="flex gap-4">
|
||||
<button onClick={() => setDone(true)} className="rounded-[var(--radius-button)] text-[14px] font-semibold transition-colors" style={{ padding: "14px 28px", border: "1.5px solid #E5534B", color: "#E5534B" }}>Abmelden</button>
|
||||
<Link href="/" className="rounded-[var(--radius-button)] text-[14px] font-semibold hover:bg-[var(--accent-yellow-dark)] transition-colors" style={{ background: "var(--accent-yellow)", color: "var(--text-primary)", padding: "14px 28px" }}>Doch lieber bleiben</Link>
|
||||
</div>
|
||||
<p className="text-[12px]" style={{ color: "var(--text-tertiary)" }}>Die Abmeldung wird sofort wirksam.</p>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user