// Furnishfy — shell: Header, Footer function Header({ page, go, openSearch }) { const [solid, setSolid] = useState(false); useEffect(() => { const onScroll = () => setSolid(window.scrollY > 40); onScroll(); window.addEventListener("scroll", onScroll, { passive: true }); return () => window.removeEventListener("scroll", onScroll); }, []); const links = [ { id: "home", label: "Home" }, { id: "shop", label: "Collection" }, { id: "rooms", label: "Rooms" }, { id: "story", label: "Atelier" }, { id: "contact", label: "Contact" }, ]; return ( {/* left nav */} {links.map((l) => ( go(l.id)} style={{ cursor: "pointer", fontSize: 12.5, letterSpacing: ".16em", textTransform: "uppercase", fontWeight: 400, color: page === l.id ? "var(--gold)" : "var(--muted)", transition: "color .3s", position: "relative", paddingBottom: 3, }} onMouseEnter={(e) => (e.currentTarget.style.color = "var(--ink)")} onMouseLeave={(e) => (e.currentTarget.style.color = page === l.id ? "var(--gold)" : "var(--muted)")}> {l.label} {page === l.id && } ))} {/* logo */} go("home")} style={{ cursor: "pointer", textAlign: "center", flex: "0 0 auto" }}> {window.FURN?.LOGO ? : <> Furnishfy Maison de Luxe > } {/* right actions */} ); } // ---------------- Footer ---------------- function Footer({ go }) { const [sent, setSent] = useState(false); const cols = [ { h: "Shop", items: ["Sofas", "Chairs", "Tables", "Lighting", "Bedroom"] }, { h: "Maison", items: ["Our story", "Makers", "Showroom", "Sustainability"] }, { h: "Care", items: ["Shipping", "Assembly", "Warranty", "Contact"] }, ]; return ( ); } Object.assign(window, { Header, Footer });