From 72445f4bf866abd75000bd9d9ec9e068873f46a1 Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Sat, 27 Jun 2026 09:51:13 +0000 Subject: [PATCH] Deploy --- src/components/layout/Navigation.tsx | 65 ++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 src/components/layout/Navigation.tsx diff --git a/src/components/layout/Navigation.tsx b/src/components/layout/Navigation.tsx new file mode 100644 index 0000000..4267496 --- /dev/null +++ b/src/components/layout/Navigation.tsx @@ -0,0 +1,65 @@ +'use client'; + +import { useState, useEffect } from 'react'; +import { Leaf, Menu, X } from 'lucide-react'; +import Link from 'next/link'; +import { cn } from '@/lib/utils'; + +export default function Navigation() { + const [isOpen, setIsOpen] = useState(false); + const [scrolled, setScrolled] = useState(false); + + useEffect(() => { + const onScroll = () => setScrolled(window.scrollY > 40); + window.addEventListener('scroll', onScroll, { passive: true }); + return () => window.removeEventListener('scroll', onScroll); + }, []); + + return ( +
+ +
+
+ {/* Logo */} + +
+ +
+ Bona Vista + + + {/* Desktop nav */} + + + {/* Mobile toggle */} + +
+ + {/* Mobile nav */} + {isOpen && ( +
+ setIsOpen(false)}>Home + setIsOpen(false)}>Menu + setIsOpen(false)}>About + setIsOpen(false)}>Gallery + setIsOpen(false)}>Team Profiles + setIsOpen(false)}>Contact Form +
+ )} +
+
+ ); +}