Restore mobile glass effects
This commit is contained in:
@@ -17,6 +17,7 @@ All notable changes to the New Optic website will be documented in this file.
|
||||
- Balanced mobile navbar controls so the language switcher, WhatsApp CTA, and menu do not bunch up on the right.
|
||||
- Reduced the mobile gap between the reputation section and contact panel.
|
||||
- Let the mobile WhatsApp nav CTA stretch into available navbar space.
|
||||
- Restored mobile glass blur and premium highlight layers instead of flattening glass surfaces.
|
||||
|
||||
## [1.0.0] - 2026-05-16
|
||||
|
||||
|
||||
@@ -86,7 +86,8 @@ a {
|
||||
background: rgba(255, 255, 255, 0.68);
|
||||
border: 1px solid rgba(255, 255, 255, 0.72);
|
||||
box-shadow: 0 18px 60px rgba(17, 19, 23, 0.08);
|
||||
backdrop-filter: blur(24px);
|
||||
backdrop-filter: blur(24px) saturate(1.22);
|
||||
-webkit-backdrop-filter: blur(24px) saturate(1.22);
|
||||
}
|
||||
|
||||
.premium-glass::before {
|
||||
@@ -172,25 +173,11 @@ a {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.floating-sheen {
|
||||
animation: none;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.glass,
|
||||
[class*="backdrop-blur"] {
|
||||
backdrop-filter: none !important;
|
||||
-webkit-backdrop-filter: none !important;
|
||||
}
|
||||
|
||||
.glass {
|
||||
background: rgba(255, 255, 255, 0.86);
|
||||
box-shadow: 0 10px 30px rgba(17, 19, 23, 0.07);
|
||||
}
|
||||
|
||||
.premium-glass::before,
|
||||
.premium-glass::after {
|
||||
display: none;
|
||||
background: rgba(255, 255, 255, 0.72);
|
||||
box-shadow: 0 14px 34px rgba(17, 19, 23, 0.08);
|
||||
backdrop-filter: blur(18px) saturate(1.24);
|
||||
-webkit-backdrop-filter: blur(18px) saturate(1.24);
|
||||
}
|
||||
|
||||
main > section {
|
||||
|
||||
@@ -49,7 +49,7 @@ export default function Navbar({ locale, onLocaleChange, t, whatsappUrl }: { loc
|
||||
</div>
|
||||
|
||||
<div className="relative z-[3] flex min-w-0 flex-1 items-center gap-1.5 max-[374px]:gap-0.5 sm:gap-2 md:hidden">
|
||||
<LanguageSwitcher locale={locale} onLocaleChange={onLocaleChange} className="w-[132px] shrink-0 bg-white/80 backdrop-blur-none max-[374px]:w-[106px] max-[374px]:p-0.5" buttonClassName="flex-1 px-0.5 max-[374px]:px-0 max-[374px]:py-1.5 sm:px-3" />
|
||||
<LanguageSwitcher locale={locale} onLocaleChange={onLocaleChange} className="w-[132px] shrink-0 bg-white/72 backdrop-blur-xl max-[374px]:w-[106px] max-[374px]:p-0.5" buttonClassName="flex-1 px-0.5 max-[374px]:px-0 max-[374px]:py-1.5 sm:px-3" />
|
||||
<PhysicsButton href={whatsappUrl} external className={`${navCtaClassName} min-w-0 flex-1 px-2.5 py-2 text-[11px] max-[374px]:px-1.5 max-[374px]:py-1.5 max-[374px]:text-[9px] sm:px-5 sm:py-2.5 sm:text-sm`}>
|
||||
{t.nav.cta}
|
||||
</PhysicsButton>
|
||||
|
||||
Reference in New Issue
Block a user