Spaces:
Build error
Build error
| import Link from 'next/link' | |
| import { Terminal, Github, 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 top-0 border-b border-gray-800 bg-brand-dark/80 backdrop-blur-md"> | |
| <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div className="flex items justify-between h-16"> | |
| <div className="flex items-center"> | |
| <Link href="/" className="flex items-center gap-2 text-white font-bold text-xl tracking-tight"> | |
| <div className="bg-white text-black p-1 rounded"> | |
| <Terminal size={20} strokeWidth={2.5} /> | |
| </div> | |
| <span>Deepnote<span className="text-brand-accent">.</span></span> | |
| </Link> | |
| </div> | |
| <div className="hidden md:block"> | |
| <div className="ml-10 flex items-baseline space-x-8"> | |
| <a href="#features" className="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors">Features</a> | |
| <a href="#pricing" className="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors">Pricing</a> | |
| <a href="#docs" className="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors">Docs</a> | |
| <a href="https://github.com" className="text-gray-300 hover:text-white px-3 py-2 rounded-md text-sm font-medium transition-colors"> | |
| <Github size={18} /> | |
| </a> | |
| <button className="bg-white text-black hover:bg-gray-200 px-4 py-2 rounded-md text-sm font-bold transition-colors"> | |
| Get Started | |
| </button> | |
| </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 size={24} /> : <Menu size={24} />} | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| {isOpen && ( | |
| <div className="md:hidden bg-brand-gray border-b border-gray-800"> | |
| <div className="px-2 pt-2 pb-3 space-y-1 sm:px-3"> | |
| <a href="#features" className="text-gray-300 hover:text-white block px-3 py-2 rounded-md text-base font-medium">Features</a> | |
| <a href="#pricing" className="text-gray-300 hover:text-white block px-3 py-2 rounded-md text-base font-medium">Pricing</a> | |
| <button className="w-full text-left text-gray-300 hover:text-white block px-3 py-2 rounded-md text-base font-medium"> | |
| Get Started | |
| </button> | |
| </div> | |
| </div> | |
| )} | |
| </nav> | |
| ) | |
| } |