BSJ2004 commited on
Commit
65783d9
·
verified ·
1 Parent(s): c2b0583

Upload components/Navbar.jsx with huggingface_hub

Browse files
Files changed (1) hide show
  1. components/Navbar.jsx +68 -0
components/Navbar.jsx ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import Link from 'next/link';
2
+ import { 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 top-0 left-0 right-0 z-50 bg-slate-900/80 backdrop-blur-md border-b border-slate-800">
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-20">
12
+ <div className="flex items-center gap-2">
13
+ <div className="w-10 h-10 bg-gradient-to-br from-blue-500 to-purple-600 rounded-xl flex items-center justify-center">
14
+ <span className="text-white font-bold text-xl">AI</span>
15
+ </div>
16
+ <span className="text-xl font-bold text-white">NeuralScroll</span>
17
+ </div>
18
+
19
+ <div className="hidden md:block">
20
+ <div className="ml-10 flex items-baseline space-x-8">
21
+ {['Features', 'Demo', 'Pricing', 'About'].map((item) => (
22
+ <Link
23
+ key={item}
24
+ href={`#${item.toLowerCase()}`}
25
+ className="text-slate-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200"
26
+ >
27
+ {item}
28
+ </Link>
29
+ ))}
30
+ <button className="bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white px-6 py-2 rounded-full text-sm font-medium transition-all duration-200 transform hover:scale-105">
31
+ Get Started
32
+ </button>
33
+ </div>
34
+ </div>
35
+
36
+ <div className="md:hidden">
37
+ <button
38
+ onClick={() => setIsOpen(!isOpen)}
39
+ className="text-slate-300 hover:text-white p-2"
40
+ >
41
+ {isOpen ? <X size={24} /> : <Menu size={24} />}
42
+ </button>
43
+ </div>
44
+ </div>
45
+ </div>
46
+
47
+ {isOpen && (
48
+ <div className="md:hidden bg-slate-900 border-b border-slate-800">
49
+ <div className="px-2 pt-2 pb-3 space-y-1 sm:px-3">
50
+ {['Features', 'Demo', 'Pricing', 'About'].map((item) => (
51
+ <Link
52
+ key={item}
53
+ href={`#${item.toLowerCase()}`}
54
+ className="text-slate-300 hover:text-white block px-3 py-2 rounded-md text-base font-medium"
55
+ onClick={() => setIsOpen(false)}
56
+ >
57
+ {item}
58
+ </Link>
59
+ ))}
60
+ <button className="w-full mt-4 bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white px-6 py-3 rounded-lg text-sm font-medium transition-all duration-200">
61
+ Get Started
62
+ </button>
63
+ </div>
64
+ </div>
65
+ )}
66
+ </nav>
67
+ );
68
+ }