ColdSlim commited on
Commit
dde8c19
·
verified ·
1 Parent(s): 583626c

Upload components/Navbar.js with huggingface_hub

Browse files
Files changed (1) hide show
  1. components/Navbar.js +55 -0
components/Navbar.js ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import Link from 'next/link';
2
+ import { Cpu, Menu, X } from 'lucide-react';
3
+ import { useState } from 'react';
4
+
5
+ export default function Navbar() {
6
+ const [isOpen, setIsOpen] = useState(false);
7
+
8
+ return (
9
+ <nav className="fixed w-full z-50 glass-panel border-b-0 rounded-none top-0">
10
+ <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
11
+ <div className="flex items-center justify-between h-16">
12
+ <div className="flex items-center">
13
+ <Link href="/" className="flex items-center space-x-2">
14
+ <Cpu className="h-8 w-8 text-primary" />
15
+ <span className="text-2xl font-bold font-mono tracking-tighter">
16
+ NEXUS<span className="text-primary">ROBOTICS</span>
17
+ </span>
18
+ </Link>
19
+ </div>
20
+
21
+ <div className="hidden md:block">
22
+ <div className="ml-10 flex items-baseline space-x-8">
23
+ <Link href="#features" className="hover:text-primary transition-colors px-3 py-2 rounded-md text-sm font-medium">Features</Link>
24
+ <Link href="#models" className="hover:text-primary transition-colors px-3 py-2 rounded-md text-sm font-medium">Models</Link>
25
+ <Link href="#technology" className="hover:text-primary transition-colors px-3 py-2 rounded-md text-sm font-medium">Technology</Link>
26
+ <Link href="#contact" className="bg-primary text-dark hover:bg-white transition-all px-4 py-2 rounded-full font-bold text-sm">
27
+ Pre-Order
28
+ </Link>
29
+ </div>
30
+ </div>
31
+
32
+ <div className="-mr-2 flex md:hidden">
33
+ <button
34
+ onClick={() => setIsOpen(!isOpen)}
35
+ className="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none"
36
+ >
37
+ {isOpen ? <X className="h-6 w-6" /> : <Menu className="h-6 w-6" />}
38
+ </button>
39
+ </div>
40
+ </div>
41
+ </div>
42
+
43
+ {isOpen && (
44
+ <div className="md:hidden bg-surface border-b border-white/10">
45
+ <div className="px-2 pt-2 pb-3 space-y-1 sm:px-3">
46
+ <Link href="#features" className="text-gray-300 hover:text-white block px-3 py-2 rounded-md text-base font-medium">Features</Link>
47
+ <Link href="#models" className="text-gray-300 hover:text-white block px-3 py-2 rounded-md text-base font-medium">Models</Link>
48
+ <Link href="#technology" className="text-gray-300 hover:text-white block px-3 py-2 rounded-md text-base font-medium">Technology</Link>
49
+ <Link href="#contact" className="text-primary font-bold block px-3 py-2 rounded-md text-base">Pre-Order</Link>
50
+ </div>
51
+ </div>
52
+ )}
53
+ </nav>
54
+ );
55
+ }