2025-02-15 17:18:58 -06:00
|
|
|
"use client";
|
2025-02-15 20:06:35 -06:00
|
|
|
import { BrandingGenericIcon } from "@/components/icon";
|
2025-02-15 17:18:58 -06:00
|
|
|
import { version } from "@/config/version";
|
2025-02-15 20:06:35 -06:00
|
|
|
import { useScroll } from "@/lib/hooks/use-scroll";
|
2025-02-15 17:18:58 -06:00
|
|
|
import { cn } from "@/lib/utils";
|
2025-02-15 20:06:35 -06:00
|
|
|
import Link from "next/link";
|
2025-02-15 17:18:58 -06:00
|
|
|
|
|
|
|
|
export function NavBar() {
|
2025-02-15 20:06:35 -06:00
|
|
|
const showBorder = useScroll(40);
|
|
|
|
|
|
2025-02-15 17:18:58 -06:00
|
|
|
return (
|
|
|
|
|
<div
|
|
|
|
|
className={cn(
|
2025-02-15 20:06:35 -06:00
|
|
|
"w-screen h-[3rem] grid-cols-3 fixed backdrop-blur-xl z-10 flex",
|
|
|
|
|
"items-center justify-self-start me-auto pl-4 flex-1 transition-all",
|
|
|
|
|
showBorder ? "border-b" : ""
|
2025-02-15 17:18:58 -06:00
|
|
|
)}
|
|
|
|
|
>
|
2025-02-15 20:06:35 -06:00
|
|
|
<Link className="gap-5 flex items-center " href="/">
|
|
|
|
|
<BrandingGenericIcon className="max-w-[32px] max-h-[32px] mt-0.5" />
|
|
|
|
|
<span className="gap-2 flex group hover:text-blue-500 hover:underline transition-all">
|
|
|
|
|
<strong className="">MHSF</strong>
|
|
|
|
|
<span className="text-muted-foreground group-hover:text-blue-500 transition-all">
|
|
|
|
|
v{version}
|
|
|
|
|
</span>
|
2025-02-15 17:18:58 -06:00
|
|
|
</span>
|
2025-02-15 20:06:35 -06:00
|
|
|
</Link>
|
2025-02-15 17:18:58 -06:00
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|