/* JETX — TEMPORARY shared chrome (review build) Temp Nav + Footer + Shell with every inter-page link removed except Contact. Loaded by the temp home and temp contact pages. */ const { useState: useStateTS, useEffect: useEffectTS } = React; /* ---------- Temp Nav: brand + Contact only ---------- */ function TempNav() { const [scrolled, setScrolled] = useStateTS(false); useEffectTS(() => { const onScroll = () => setScrolled(window.scrollY > 40); onScroll(); window.addEventListener("scroll", onScroll, { passive: true }); return () => window.removeEventListener("scroll", onScroll); }, []); return (
JETX
Get in touch
); } /* ---------- Inline social icons ---------- */ function TempSocialIcon({ name }) { const p = { width: 18, height: 18, viewBox: "0 0 24 24", fill: "currentColor" }; if (name === "X") return ( ); if (name === "LinkedIn") return ( ); if (name === "YouTube") return ( ); if (name === "Instagram") return ( ); return null; } /* ---------- Temp Footer: contact only ---------- */ function TempFooter() { const socials = [ { l: "X", href: "https://twitter.com/JETXAERO" }, { l: "LinkedIn", href: "https://www.linkedin.com/company/jetxus/" }, { l: "YouTube", href: "https://www.youtube.com/channel/UC3EqOdS30VVZnpXG4Lb_88Q" }, { l: "Instagram", href: "https://www.instagram.com/jetx_us/" }, ]; return ( ); } /* ---------- Temp shell (own nav + footer, keeps tweaks) ---------- */ const JETX_TEMP_TWEAK_DEFAULTS = { accent: "#FFFFFF", density: "comfort" }; function TempShell({ children, withCTA = true }) { const [t, setTweak] = window.useTweaks(JETX_TEMP_TWEAK_DEFAULTS); useEffectTS(() => { const map = { "#FFFFFF": "white", "#E40521": "red", "#1A66D6": "blue" }; document.body.dataset.accent = map[t.accent] || "white"; document.body.dataset.density = t.density === "tight" ? "tight" : "comfortable"; }, [t]); return (
{children}
{withCTA ? : null} setTweak("accent", v)} /> setTweak("density", v)} />
); } Object.assign(window, { TempNav, TempFooter, TempSocialIcon, TempShell });