import { useState, useEffect } from 'react'; import { Menu, X, Glasses } from 'lucide-react'; import { Button } from '@/components/ui/button'; const navLinks = [ { label: 'Sobre', href: '#sobre' }, { label: 'Tecnologia', href: '#tecnologia' }, { label: 'Design', href: '#design' }, { label: 'Funcionalidades', href: '#funcionalidades' }, { label: 'Especificações', href: '#especificacoes' }, { label: 'Contato', href: '#contato' }, ]; export function Navigation() { const [isScrolled, setIsScrolled] = useState(false); const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false); useEffect(() => { const handleScroll = () => { setIsScrolled(window.scrollY > 50); }; window.addEventListener('scroll', handleScroll, { passive: true }); return () => window.removeEventListener('scroll', handleScroll); }, []); const scrollToSection = (href: string) => { const element = document.querySelector(href); if (element) { element.scrollIntoView({ behavior: 'smooth' }); } setIsMobileMenuOpen(false); }; return (
); }