Mirrored from https://github.com/Camo67/OCIU-npo.git
Synced Nov 21, 03:37 UTC
Visual edit in Lovable
gpt-engineer-app[bot] committed
Oct 8, 2025 at 04:04 UTC
223f2342d2f8603096b6967028d794fb4d4c505f
1 file changed
+28
-48
src/components/Navigation.tsx
+28
-48
@@ -2,71 +2,51 @@ 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
-
6
-const navItems = [
7
- { label: "Mission", href: "#mission" },
8
- { label: "Leadership", href: "#leadership" },
9
- { label: "Podcast", href: "#podcast" },
10
- { label: "Services", href: "#services" },
11
- { label: "Get Involved", href: "#join" },
12
-];
13
-
5
+const navItems = [{
6
+ label: "Mission",
7
+ href: "#mission"
8
+}, {
9
+ label: "Leadership",
10
+ href: "#leadership"
11
+}, {
12
+ label: "Podcast",
13
+ href: "#podcast"
14
+}, {
15
+ label: "Services",
16
+ href: "#services"
17
+}, {
18
+ label: "Get Involved",
19
+ href: "#join"
20
+}];
21
export const Navigation = () => {
22
const [isOpen, setIsOpen] = useState(false);
16
-
17
- return (
18
- <nav className="fixed top-0 left-0 right-0 z-50 bg-background/95 backdrop-blur-sm border-b border-border shadow-sm">
23
+ return <nav className="fixed top-0 left-0 right-0 z-50 backdrop-blur-sm border-b border-border shadow-sm bg-[vrgb(51,_0,_255)] bg-[#3300ff]">
24
<div className="container mx-auto px-4">
20
- <div className="flex items-center justify-between h-16">
25
+ <div className="flex items-center justify-between h-16 bg-[#3300ff]">
26
{/* Logo */}
27
<a href="#home" className="flex items-center">
23
- <img
24
- src={logoBanner}
25
- alt="Community & Unity"
26
- className="h-12 w-auto"
27
- />
28
+ <img src={logoBanner} alt="Community & Unity" className="h-12 w-auto" />
29
</a>
30
31
{/* Desktop Navigation */}
32
<div className="hidden md:flex items-center gap-6">
32
- {navItems.map((item) => (
33
- <a
34
- key={item.label}
35
- href={item.href}
36
- className="text-foreground hover:text-primary transition-colors font-medium"
37
- >
33
+ {navItems.map(item => <a key={item.label} href={item.href} className="text-foreground hover:text-primary transition-colors font-medium">
34
{item.label}
39
- </a>
40
- ))}
35
+ </a>)}
36
</div>
37
38
{/* Mobile Menu Button */}
44
- <Button
45
- variant="ghost"
46
- size="icon"
47
- className="md:hidden"
48
- onClick={() => setIsOpen(!isOpen)}
49
- >
39
+ <Button variant="ghost" size="icon" className="md:hidden" onClick={() => setIsOpen(!isOpen)}>
40
{isOpen ? <X /> : <Menu />}
41
</Button>
42
</div>
43
44
{/* Mobile Navigation */}
55
- {isOpen && (
56
- <div className="md:hidden py-4 space-y-3 border-t border-border">
57
- {navItems.map((item) => (
58
- <a
59
- key={item.label}
60
- href={item.href}
61
- className="block py-2 text-foreground hover:text-primary transition-colors font-medium"
62
- onClick={() => setIsOpen(false)}
63
- >
45
+ {isOpen && <div className="md:hidden py-4 space-y-3 border-t border-border">
46
+ {navItems.map(item => <a key={item.label} href={item.href} className="block py-2 text-foreground hover:text-primary transition-colors font-medium" onClick={() => setIsOpen(false)}>
47
{item.label}
65
- </a>
66
- ))}
67
- </div>
68
- )}
48
+ </a>)}
49
+ </div>}
50
</div>
70
- </nav>
71
- );
72
-};
51
+ </nav>;
52
+};
\ No newline at end of file