diff --git a/src/components/ui/Navbar.tsx b/src/components/ui/Navbar.tsx index 622532b..44cb420 100644 --- a/src/components/ui/Navbar.tsx +++ b/src/components/ui/Navbar.tsx @@ -3,7 +3,18 @@ import React, { useState, useEffect } from 'react'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; -import { Menu, X, Smartphone, Layers, ArrowUpRight, Home } from 'lucide-react'; +import { + Menu, + X, + Smartphone, + Layers, + ArrowUpRight, + Home, + ChevronRight, + Wrench, + Sparkles, + ShieldCheck +} from 'lucide-react'; import { SiteConfig, resolveLocalised } from '@/types'; import { BrandLogo } from './BrandLogo'; @@ -25,6 +36,7 @@ export function Navbar({ config, currentLocale }: NavbarProps) { return () => window.removeEventListener('scroll', handleScroll); }, []); + // Close mobile menu on Escape key useEffect(() => { if (!mobileMenuOpen) return; const closeOnEscape = (event: KeyboardEvent) => { @@ -34,27 +46,49 @@ export function Navbar({ config, currentLocale }: NavbarProps) { return () => document.removeEventListener('keydown', closeOnEscape); }, [mobileMenuOpen]); - return ( -
- {/* 1. Ultra-Smooth High-Performance Gradient Blur Canopy (Zero lag, locks at 60/120fps) */} -
- {/* Single hardware-accelerated progressive blur */} -
+ // Lock body scroll on iOS/Mobile when mobile menu is open to prevent background bleed/scroll + useEffect(() => { + if (mobileMenuOpen) { + document.body.style.overflow = 'hidden'; + document.body.style.touchAction = 'none'; + } else { + document.body.style.overflow = ''; + document.body.style.touchAction = ''; + } + return () => { + document.body.style.overflow = ''; + document.body.style.touchAction = ''; + }; + }, [mobileMenuOpen]); - {/* Seamless Color Melt into warm canvas background (#FAF8F5) */} -
-
+ return ( +
+ {/* 1. Ultra-Smooth High-Performance Gradient Blur Canopy (Active only when menu is closed) */} + {!mobileMenuOpen && ( +
+
+
+
+ )} {/* 2. Top Prismatic Micro-Highlight */} -
+ {!mobileMenuOpen && ( +
+ )} {/* 3. Main Aligned Edge-to-Edge Navigation Bar */}
@@ -64,7 +98,7 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
- {/* Center Navigation Links - Protected Optical Floating Pill */} + {/* Center Navigation Links - Protected Optical Floating Pill (Desktop only) */} - {/* Right CTA Button */} + {/* Right CTA Button (Desktop only) */}
- {/* Mobile Drawer (Full width dropdown) */} + {/* Mobile Solid Opaque Drawer (100% Solid Warm Canvas - Zero Transparency Bleed or Text Collision) */} {mobileMenuOpen && ( )}