1 import Link from "next/link";
2
3 const links = [
4 { href: "/about", label: "About" },
5 { href: "https://github.com/ondeinference/siti", label: "GitHub", external: true },
6 ];
7
8 export function SiteNav() {
9 return (
10 <header className="sticky top-0 z-10 border-b border-border bg-bg/80 backdrop-blur">
11 <nav className="mx-auto flex max-w-5xl items-center justify-between px-6 py-4">
12 <Link
13 href="/"
14 className="text-[17px] font-semibold tracking-tight text-ink"
15 >
16 Siti<span className="text-brand"> AI</span>
17 </Link>
18 <ul className="flex items-center gap-6 text-sm text-muted">
19 {links.map((link) => (
20 <li key={link.href}>
21 {link.external ? (
22 <a
23 href={link.href}
24 target="_blank"
25 rel="noopener noreferrer"
26 className="transition-colors hover:text-ink"
27 >
28 {link.label}
29 </a>
30 ) : (
31 <Link
32 href={link.href}
33 className="transition-colors hover:text-ink"
34 >
35 {link.label}
36 </Link>
37 )}
38 </li>
39 ))}
40 </ul>
41 </nav>
42 </header>
43 );
44 }