From 24fdaec22cb6af97e111109d530039fcbc151cd4 Mon Sep 17 00:00:00 2001 From: Vula Builder Date: Sat, 25 Jul 2026 11:17:57 +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..baba8e4 --- /dev/null +++ b/src/components/layout/Navigation.tsx @@ -0,0 +1,65 @@ +'use client'; + +import { useState, useEffect } from 'react'; +import { Hotel, 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 */} + +
+ +
+ Masai Suites + + + {/* Desktop nav */} + + + {/* Mobile toggle */} + +
+ + {/* Mobile nav */} + {isOpen && ( +
+ setIsOpen(false)}>Home + setIsOpen(false)}>Serene Suites + setIsOpen(false)}>Roots Of Masai + setIsOpen(false)}>Earthy Moments Gallery + setIsOpen(false)}>Find Us And Connect + setIsOpen(false)}>Book a Room +
+ )} +
+
+ ); +}