|
| 1 | +"use client"; |
| 2 | +import React, { useState } from 'react'; |
| 3 | + |
| 4 | +export default function Navbar() { |
| 5 | + const [isMenuOpen, setIsMenuOpen] = useState(false); |
| 6 | + |
| 7 | + const toggleMenu = () => { |
| 8 | + setIsMenuOpen(!isMenuOpen); |
| 9 | + }; |
| 10 | + |
| 11 | + return ( |
| 12 | + <nav className="bg-white/95 backdrop-blur-sm border-b border-gray-200 fixed top-0 left-0 right-0 z-50"> |
| 13 | + <div className="max-w-7xl mx-auto px-6"> |
| 14 | + <div className="flex items-center justify-between h-16"> |
| 15 | + <a className="font-poppins text-xl font-bold text-blue-600" href="/"> |
| 16 | + AccessibilityGuard |
| 17 | + </a> |
| 18 | + <div className="hidden md:flex items-center space-x-8"> |
| 19 | + <a className="font-roboto text-gray-600 hover:text-[#00d4ff] transition-colors font-medium" href="#features">Features</a> |
| 20 | + <a className="font-roboto text-gray-600 hover:text-[#00d4ff] transition-colors font-medium" href="#how-it-works">How It Works</a> |
| 21 | + <a className="font-roboto text-gray-600 hover:text-[#00d4ff] transition-colors font-medium" href="#pricing">Pricing</a> |
| 22 | + <a className="font-roboto text-gray-600 hover:text-[#00d4ff] transition-colors font-medium" href="#about">About</a> |
| 23 | + </div> |
| 24 | + <div className="hidden md:flex items-center space-x-3"> |
| 25 | + <a |
| 26 | + className="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors h-10 px-4 py-2" |
| 27 | + href="/dashboard/overview" |
| 28 | + > |
| 29 | + Sign In |
| 30 | + </a> |
| 31 | + <a |
| 32 | + className="inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm bg-[#00d4ff] text-white font-semibold hover:bg-[#00d4ff]/90 shadow-md transition-all duration-300 h-10 px-4 py-2" |
| 33 | + href="/dashboard/overview" |
| 34 | + > |
| 35 | + Get Started Free |
| 36 | + </a> |
| 37 | + </div> |
| 38 | + <button |
| 39 | + className="md:hidden p-2" |
| 40 | + aria-label="Toggle menu" |
| 41 | + onClick={toggleMenu} |
| 42 | + > |
| 43 | + <svg |
| 44 | + xmlns="http://www.w3.org/2000/svg" |
| 45 | + width="24" |
| 46 | + height="24" |
| 47 | + viewBox="0 0 24 24" |
| 48 | + fill="none" |
| 49 | + stroke="currentColor" |
| 50 | + strokeWidth="2" |
| 51 | + strokeLinecap="round" |
| 52 | + strokeLinejoin="round" |
| 53 | + className="lucide lucide-menu h-6 w-6 text-gray-600" |
| 54 | + > |
| 55 | + <line x1="4" x2="20" y1="12" y2="12"></line> |
| 56 | + <line x1="4" x2="20" y1="6" y2="6"></line> |
| 57 | + <line x1="4" x2="20" y1="18" y2="18"></line> |
| 58 | + </svg> |
| 59 | + </button> |
| 60 | + |
| 61 | + {/* Mobile menu, show/hide based on menu state */} |
| 62 | + {isMenuOpen && ( |
| 63 | + <div className="md:hidden absolute top-16 left-0 right-0 bg-white shadow-lg p-4"> |
| 64 | + <div className="flex flex-col space-y-4"> |
| 65 | + <a className="font-roboto text-gray-600 hover:text-[#00d4ff] transition-colors font-medium" href="#features">Features</a> |
| 66 | + <a className="font-roboto text-gray-600 hover:text-[#00d4ff] transition-colors font-medium" href="#how-it-works">How It Works</a> |
| 67 | + <a className="font-roboto text-gray-600 hover:text-[#00d4ff] transition-colors font-medium" href="#pricing">Pricing</a> |
| 68 | + <a className="font-roboto text-gray-600 hover:text-[#00d4ff] transition-colors font-medium" href="#about">About</a> |
| 69 | + <a className="font-medium text-[#00d4ff]" href="/dashboard/overview">Sign In</a> |
| 70 | + <a className="inline-flex items-center justify-center rounded-md bg-[#00d4ff] text-white font-semibold px-4 py-2" href="/dashboard/overview">Get Started Free</a> |
| 71 | + </div> |
| 72 | + </div> |
| 73 | + )} |
| 74 | + </div> |
| 75 | + </div> |
| 76 | + </nav> |
| 77 | + ); |
| 78 | +} |
0 commit comments