// 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 */} {/* logo */}
go("home")} style={{ cursor: "pointer", textAlign: "center", flex: "0 0 auto" }}> {window.FURN?.LOGO ? {window.FURN.SITE_NAME : <>
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 });