import { useEffect, useState } from 'react'; import { Menu, X } from 'lucide-react'; import { cn } from '@/lib/cn'; const NAV_LINKS = [ { href: '#testimonials', label: 'Testimonials' }, { href: '#features', label: 'Features' }, { href: '#pricing', label: 'Pricing' }, { href: '#resources', label: 'Resources' }, ]; export function Navbar() { const [scrolled, setScrolled] = useState(false); const [open, setOpen] = useState(false); useEffect(() => { const onScroll = () => setScrolled(window.scrollY > 8); onScroll(); window.addEventListener('scroll', onScroll, { passive: true }); return () => window.removeEventListener('scroll', onScroll); }, []); return (
eLegal Software
Login Get Started
{open && (
{NAV_LINKS.map((link) => ( setOpen(false)} className="py-2 text-sm font-medium text-ink-700" > {link.label} ))}
Login Get Started
)}
); }