/* ===== contact, callback modal, footer ===== */
function Field({ label, children }) {
return (
);
}
const inputStyle = {
font: "inherit", fontSize: "1rem", padding: "13px 15px", borderRadius: "var(--radius-sm)",
border: "1.5px solid var(--line)", background: "var(--card)", color: "var(--ink)", width: "100%",
};
function CallbackForm({ compact, onDone }) {
const [done, setDone] = useState(false);
const submit = (e) => { e.preventDefault(); setDone(true); onDone && onDone(); };
if (done) {
return (
C'est noté, on te rappelle !
On te recontacte sur le créneau choisi (entre 17h et 22h). À tout de suite.
);
}
return (
);
}
function CallbackModal({ open, onClose }) {
useEffect(() => {
const k = (e) => e.key === "Escape" && onClose();
if (open) window.addEventListener("keydown", k);
return () => window.removeEventListener("keydown", k);
}, [open, onClose]);
if (!open) return null;
return (
e.stopPropagation()} className="card" style={{ width: "min(520px,100%)", padding: "34px 32px", position: "relative", boxShadow: "0 40px 90px -30px rgba(10,16,50,.5)" }}>
Rappel gratuit
On te rappelle
Laisse tes coordonnées, on s'occupe du reste.
);
}
function Contact() {
const infos = [
["phone", "Téléphone", "06 58 66 54 93", "tel:+33658665493"],
["mail", "Email", "aupcbienportant@gmail.com", "mailto:aupcbienportant@gmail.com"],
["clock", "Horaires", "Tous les jours · 17h → 22h", null],
["pin", "Zone", "Caen & alentours · déplacement compris", null],
];
return (
);
}
function Footer() {
return (
);
}
Object.assign(window, { CallbackModal, Contact, Footer });