Files
kolaytercih/src/components/site-header.tsx
bilalgursen dc6d894a37
All checks were successful
Deploy / deploy (push) Successful in 10m26s
Refactor code structure for improved readability and maintainability
2026-07-30 03:17:12 +03:00

42 lines
1.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import Link from "next/link";
import { GraduationCap } from "lucide-react";
import { UserNav } from "@/components/user-nav";
const navLinks = [
{ href: "/#nasil-calisir", label: "Nasıl çalışır?" },
{ href: "/#karsilastirma", label: "Karşılaştır" },
{ href: "/#sss", label: "SSS" },
];
export function SiteHeader() {
return (
<header className="sticky top-6 z-50 mt-6 print:hidden">
<div className="mx-auto flex h-16 max-w-6xl items-center justify-between gap-3 px-4">
<Link
href="/"
className="group flex items-center gap-3 font-bricolage text-xl"
>
<span>
<span className="font-light text-3xl tracking-tighter">Kolay</span>
<span className="font-semibold text-3xl tracking-tighter">
Tercih
</span>
</span>
</Link>
<nav className="hidden items-center gap-1 rounded-full border border-slate-200 bg-white p-1.5 text-base font-medium text-slate-600 sm:flex">
{navLinks.map((link) => (
<Link
key={link.href}
href={link.href}
className="rounded-full px-5 py-2 transition-colors duration-200 hover:bg-slate-100 hover:text-slate-900"
>
{link.label}
</Link>
))}
</nav>
<UserNav />
</div>
</header>
);
}