Spaces:
Build error
Build error
| import Link from 'next/link'; | |
| import { Cpu, Menu, X } from 'lucide-react'; | |
| import { useState } from 'react'; | |
| export default function Navbar() { | |
| const [isOpen, setIsOpen] = useState(false); | |
| return ( | |
| <nav className="fixed w-full z-50 glass-panel border-b-0 rounded-none top-0"> | |
| <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div className="flex items-center justify-between h-16"> | |
| <div className="flex items-center"> | |
| <Link href="/" className="flex items-center space-x-2"> | |
| <Cpu className="h-8 w-8 text-primary" /> | |
| <span className="text-2xl font-bold font-mono tracking-tighter"> | |
| NEXUS<span className="text-primary">ROBOTICS</span> | |
| </span> | |
| </Link> | |
| </div> | |
| <div className="hidden md:block"> | |
| <div className="ml-10 flex items-baseline space-x-8"> | |
| <Link href="#features" className="hover:text-primary transition-colors px-3 py-2 rounded-md text-sm font-medium">Features</Link> | |
| <Link href="#models" className="hover:text-primary transition-colors px-3 py-2 rounded-md text-sm font-medium">Models</Link> | |
| <Link href="#technology" className="hover:text-primary transition-colors px-3 py-2 rounded-md text-sm font-medium">Technology</Link> | |
| <Link href="#contact" className="bg-primary text-dark hover:bg-white transition-all px-4 py-2 rounded-full font-bold text-sm"> | |
| Pre-Order | |
| </Link> | |
| </div> | |
| </div> | |
| <div className="-mr-2 flex md:hidden"> | |
| <button | |
| onClick={() => setIsOpen(!isOpen)} | |
| className="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none" | |
| > | |
| {isOpen ? <X className="h-6 w-6" /> : <Menu className="h-6 w-6" />} | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| {isOpen && ( | |
| <div className="md:hidden bg-surface border-b border-white/10"> | |
| <div className="px-2 pt-2 pb-3 space-y-1 sm:px-3"> | |
| <Link href="#features" className="text-gray-300 hover:text-white block px-3 py-2 rounded-md text-base font-medium">Features</Link> | |
| <Link href="#models" className="text-gray-300 hover:text-white block px-3 py-2 rounded-md text-base font-medium">Models</Link> | |
| <Link href="#technology" className="text-gray-300 hover:text-white block px-3 py-2 rounded-md text-base font-medium">Technology</Link> | |
| <Link href="#contact" className="text-primary font-bold block px-3 py-2 rounded-md text-base">Pre-Order</Link> | |
| </div> | |
| </div> | |
| )} | |
| </nav> | |
| ); | |
| } |