/** * Minimal top navigation for product subdomains. * * Replaces the dual-left/right sidebar used on `freno.me` for each product * subdomain (`nessa.*`, `lineage.*`, `gaze.*`, `inputhalo.*`). The header is * sticky, site-aware, and derives its links from `NAV_CONFIG` so the nav set * remains the single source of truth. `lineage.freno.me/` intentionally does * not use this component so the original full-bleed parallax landing page is * preserved. */ import { For, Show } from "solid-js"; import { A, useLocation } from "@solidjs/router"; import { useSite } from "~/context/SiteContext"; import { useDarkMode } from "~/context/darkMode"; import { NAV_CONFIG } from "~/lib/nav-config"; import { DarkModeToggle } from "~/components/DarkModeToggle"; export default function SubdomainHeader() { const site = useSite(); const location = useLocation(); const { isDark } = useDarkMode(); const brandName = () => site().displayName; const brandColor = () => isDark() ? (site().brandColorDark ?? site().brandColor) : site().brandColor; const navItems = () => NAV_CONFIG[site().id].filter((item) => item.label !== "Home"); const isActive = (href: string) => { const path = location.pathname; return href === "/" ? path === "/" : path === href; }; return (
{brandName()}
); }