diff --git a/src/components/layout/Navigation.tsx b/src/components/layout/Navigation.tsx new file mode 100644 index 0000000..b98d950 --- /dev/null +++ b/src/components/layout/Navigation.tsx @@ -0,0 +1,67 @@ +'use client'; + +import { useState, useEffect } from 'react'; +import { Menu, Scissors, 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 > 80); + window.addEventListener('scroll', onScroll, { passive: true }); + return () => window.removeEventListener('scroll', onScroll); + }, []); + + return ( + <> +
+ +
+ {/* Logo */} + +
+ +
+ Zama Salon + + + {/* Desktop nav */} + + + {/* Mobile toggle */} + +
+
+ + {/* Mobile nav */} + {isOpen && ( +
+ setIsOpen(false)}>Home + setIsOpen(false)}>About + setIsOpen(false)}>Offers + setIsOpen(false)}>Gallery + setIsOpen(false)}>Blog + setIsOpen(false)}>Contact + setIsOpen(false)}>Services +
+ )} + + ); +}