import { $, component$, useOnDocument, useSignal } from "@builder.io/qwik"; import { Link, useLocation } from "@builder.io/qwik-city"; import { buttonVariants, cn } from "./design"; const navLinks = [ { name: "Changelog", href: "/changelog" }, { name: "Pricing", href: "/pricing" }, { name: "Login", href: "/login" } ] export const NavBar = component$(() => { const location = useLocation() const hasScrolled = useSignal(false); useOnDocument( 'scroll', $(() => { hasScrolled.value = window.scrollY > 0; }) ); return ( ) })