ctfone commited on
Commit
8568307
·
verified ·
1 Parent(s): c48fdbb

Upload components/Navbar.js with huggingface_hub

Browse files
Files changed (1) hide show
  1. components/Navbar.js +59 -0
components/Navbar.js ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import Link from 'next/link'
2
+ import { Terminal, Github, 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 top-0 border-b border-gray-800 bg-brand-dark/80 backdrop-blur-md">
10
+ <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
11
+ <div className="flex items justify-between h-16">
12
+ <div className="flex items-center">
13
+ <Link href="/" className="flex items-center gap-2 text-white font-bold text-xl tracking-tight">
14
+ <div className="bg-white text-black p-1 rounded">
15
+ <Terminal size={20} strokeWidth={2.5} />
16
+ </div>
17
+ <span>Deepnote<span className="text-brand-accent">.</span></span>
18
+ </Link>
19
+ </div>
20
+
21
+ <div className="hidden md:block">
22
+ <div className="ml-10 flex items-baseline space-x-8">
23
+ <a href="#features" className="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors">Features</a>
24
+ <a href="#pricing" className="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors">Pricing</a>
25
+ <a href="#docs" className="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors">Docs</a>
26
+ <a href="https://github.com" className="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors">
27
+ <Github size={18} />
28
+ </a>
29
+ <button className="bg-white text-black hover:bg-gray-200 px-4 py-2 rounded-md text-sm font-bold transition-colors">
30
+ Get Started
31
+ </button>
32
+ </div>
33
+ </div>
34
+
35
+ <div className="-mr-2 flex md:hidden">
36
+ <button
37
+ onClick={() => setIsOpen(!isOpen)}
38
+ className="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none"
39
+ >
40
+ {isOpen ? <X size={24} /> : <Menu size={24} />}
41
+ </button>
42
+ </div>
43
+ </div>
44
+ </div>
45
+
46
+ {isOpen && (
47
+ <div className="md:hidden bg-brand-gray border-b border-gray-800">
48
+ <div className="px-2 pt-2 pb-3 space-y-1 sm:px-3">
49
+ <a href="#features" className="text-gray-300 hover:text-white block px-3 py-2 rounded-md text-base font-medium">Features</a>
50
+ <a href="#pricing" className="text-gray-300 hover:text-white block px-3 py-2 rounded-md text-base font-medium">Pricing</a>
51
+ <button className="w-full text-left text-gray-300 hover:text-white block px-3 py-2 rounded-md text-base font-medium">
52
+ Get Started
53
+ </button>
54
+ </div>
55
+ </div>
56
+ )}
57
+ </nav>
58
+ )
59
+ }