import { Outlet, NavLink, useLocation } from "react-router-dom"; import { Activity, Github, Headphones, BarChart3, Info, Home, } from "lucide-react"; import { cn } from "@/lib/utils"; import WaveformBackground from "./WaveformBackground"; import ThemeToggle from "./ThemeToggle"; const NAV = [ { to: "/", label: "Home", icon: Home, end: true }, { to: "/demo", label: "Demo", icon: Headphones }, { to: "/benchmarks", label: "Benchmarks", icon: BarChart3 }, { to: "/about", label: "About", icon: Info }, ]; export default function Layout() { const location = useLocation(); // Show a subtle accent bar under the nav indicating which page is active. return (
{/* ── Header ──────────────────────────────────────────────── */}
{/* Brand */}
ADFD. forensic audio
{/* Nav */}
{/* Sub-bar showing current path crumbs (subtle) */}
workspace / {location.pathname === "/" ? "home" : location.pathname.slice(1)}
backend live · 8 detectors · meta-LR ensemble
{/* ── Main ────────────────────────────────────────────────── */}
{/* ── Footer ──────────────────────────────────────────────── */}
); }