fix(ui): eliminate top and bottom edge fog and smog from liquid glass navbar
This commit is contained in:
@@ -106,7 +106,7 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
|
||||
onMouseMove={handleMouseMove}
|
||||
onMouseLeave={handleMouseLeave}
|
||||
className={`relative max-w-6xl mx-auto liquid-glass-nav rounded-2xl sm:rounded-[22px] px-3.5 sm:px-6 py-2.5 sm:py-3 flex items-center justify-between transition-all duration-300 pointer-events-auto ${
|
||||
isScrolled ? 'shadow-cream-lg' : 'shadow-cream-md'
|
||||
isScrolled ? 'nav-scrolled' : ''
|
||||
}`}
|
||||
>
|
||||
{/* Optical Inverted Liquid Glass Refraction Chamber */}
|
||||
@@ -114,12 +114,12 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
|
||||
<div ref={mirrorRef} className="liquid-fluid-wave" />
|
||||
</div>
|
||||
|
||||
{/* Dynamic Specular Caustic Glint */}
|
||||
{/* Dynamic Specular Caustic Glint - Crystal clear at rest, subtle gloss on cursor interaction */}
|
||||
<div
|
||||
className="absolute inset-0 pointer-events-none transition-opacity duration-300 z-[2]"
|
||||
style={{
|
||||
opacity: mousePos.active ? 1 : 0.5,
|
||||
background: `radial-gradient(ellipse 320px 110px at ${mousePos.x}% ${mousePos.y}%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.2) 40%, transparent 75%)`,
|
||||
opacity: mousePos.active ? 0.7 : 0,
|
||||
background: `radial-gradient(ellipse 260px 80px at ${mousePos.x}% ${mousePos.y}%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.1) 40%, transparent 70%)`,
|
||||
}}
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user