/* global React */ const { useState, useEffect, useMemo, useRef } = React; // ============ ICONS ============ const Arr = ({ size = 14, className = "" }) => ( ); const Plus = ({ size = 12 }) => ( ); const Tick = ({ size = 14 }) => ( ); const Dot = () => ; // ============ NAV ============ function Nav({ page, setPage, tweaks }) { const [scrolled, setScrolled] = useState(false); const [open, setOpen] = useState(false); useEffect(() => { const onScroll = () => setScrolled(window.scrollY > 24); window.addEventListener("scroll", onScroll); return () => window.removeEventListener("scroll", onScroll); }, []); const links = [ { id: "solutions", label: "Solutions" }, { id: "process", label: "Process" }, { id: "engine", label: "Engine" }, { id: "proof", label: "Proof" }, { id: "about", label: "About" }, { id: "contact", label: "Contact" }, ]; return (
); } function Logo() { return (
WhyCantI .ca
); } // ============ FOOTER ============ function Footer({ setPage }) { return ( ); } function FootCol({ title, links, setPage }) { return (
{title}
{links.map(([label, id]) => ( ))}
); } // Export Object.assign(window, { Nav, Footer, Arr, Plus, Tick, Dot, Logo });