"use client"; import Link from "next/link"; import { useState } from "react"; import { ArrowRight, Menu, X } from "lucide-react"; import { cn } from "@/lib/utils"; import { useScroll } from "@/hooks/use-scroll"; import { Portal, PortalBackdrop } from "@/components/portal"; const navLinks = [ { label: "Tentang", href: "#about" }, { label: "Modul Peta", href: "#projects" }, { label: "Dokumentasi", href: "/auth/login" }, ]; export function LandingHeader() { const scrolled = useScroll(10); const [open, setOpen] = useState(false); return (
{/* Mobile Menu Overlay */} {open && ( setOpen(false)} />
Waras — Portal GIS
{navLinks.map((link) => ( setOpen(false)} className="text-[28px] sm:text-[32px] font-medium text-gray-900 hover:text-primary transition-colors" > {link.label} ))}
{/* Action Button - routes to Login */} setOpen(false)} className="group w-full flex items-center justify-between bg-primary text-primary-foreground text-[14px] font-medium rounded-full pl-6 pr-2 py-2.5 transition-all duration-300 hover:bg-primary/80" > Login
)}
); }