Mirrored from https://github.com/Camo67/OCIU-npo.git
Synced Nov 21, 04:45 UTC
fix/restore-static-site
| 1 | import { useState } from "react"; |
| 2 | import { Button } from "@/components/ui/button"; |
| 3 | import logoBanner from "@/assets/logo-banner.png"; |
| 4 | import { Menu, X } from "lucide-react"; |
| 5 | const navItems = [{ |
| 6 | label: "OCIU Dashboard", |
| 7 | href: "#dashboard" |
| 8 | }, { |
| 9 | label: "Mission", |
| 10 | href: "#mission" |
| 11 | }, { |
| 12 | label: "Leadership", |
| 13 | href: "#leadership" |
| 14 | }, { |
| 15 | label: "Podcast", |
| 16 | href: "#podcast" |
| 17 | }, { |
| 18 | label: "Services", |
| 19 | href: "#services" |
| 20 | }, { |
| 21 | label: "News", |
| 22 | href: "/community-news" |
| 23 | }, { |
| 24 | label: "Jobs", |
| 25 | href: "/job-seeker" |
| 26 | }, { |
| 27 | label: "AI Tutor", |
| 28 | href: "/ai-tutor" |
| 29 | }, { |
| 30 | label: "Classroom", |
| 31 | href: "/community-classroom" |
| 32 | }, { |
| 33 | label: "Get Involved", |
| 34 | href: "#join" |
| 35 | }]; |
| 36 | export const Navigation = () => { |
| 37 | const [isOpen, setIsOpen] = useState(false); |
| 38 | return <nav className="fixed top-0 left-0 right-0 z-50 border-b border-border shadow-sm bg-primary"> |
| 39 | <div className="container mx-auto px-4"> |
| 40 | <div className="flex items-center justify-between h-16"> |
| 41 | {/* Logo */} |
| 42 | <a href="/" className="flex items-center"> |
| 43 | <img src={logoBanner} alt="Community & Unity" className="h-12 w-auto" /> |
| 44 | </a> |
| 45 | |
| 46 | {/* Desktop Navigation */} |
| 47 | <div className="hidden md:flex items-center gap-6"> |
| 48 | {navItems.map(item => <a key={item.label} href={item.href} className="text-primary-foreground hover:text-accent transition-colors font-medium"> |
| 49 | {item.label} |
| 50 | </a>)} |
| 51 | </div> |
| 52 | |
| 53 | {/* Mobile Menu Button */} |
| 54 | <Button variant="ghost" size="icon" className="md:hidden" onClick={() => setIsOpen(!isOpen)}> |
| 55 | {isOpen ? <X /> : <Menu />} |
| 56 | </Button> |
| 57 | </div> |
| 58 | |
| 59 | {/* Mobile Navigation */} |
| 60 | {isOpen && <div className="md:hidden py-4 space-y-3 border-t border-border"> |
| 61 | {navItems.map(item => <a key={item.label} href={item.href} className="block py-2 text-primary-foreground hover:text-accent transition-colors font-medium" onClick={() => setIsOpen(false)}> |
| 62 | {item.label} |
| 63 | </a>)} |
| 64 | </div>} |
| 65 | </div> |
| 66 | </nav>; |
| 67 | }; |