feat(hero): switch from black gradient to radiant white/cream gradient on home screen with editorial typography and frosted telemetry capsule

This commit is contained in:
2026-11-05 17:41:18 +05:30
parent acba642b05
commit df3f1541b4
8 changed files with 28 additions and 48 deletions
+9 -29
View File
@@ -76,19 +76,15 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
<div className="max-w-[1640px] mx-auto px-4 sm:px-6 lg:px-10 flex items-center justify-between">
{/* Brand Logo */}
<div className="relative z-20 flex-shrink-0">
<BrandLogo size="md" isDark={isHeroTransparent} />
<BrandLogo size="md" />
</div>
{/* Center Navigation Links:
- On Hero: Clean white text buttons only (matching reference image)
- Scrolled: Subtle semi-solid pill links */}
{/* Center Navigation Links: Clean text buttons */}
<nav className="hidden md:flex items-center gap-6 lg:gap-8 relative z-20">
<Link
href="/"
className={`text-sm font-semibold transition-colors ${
isHeroTransparent
? 'text-white hover:text-blue-300'
: pathname === '/'
pathname === '/'
? 'text-blue-600 font-bold'
: 'text-slate-800 hover:text-blue-600'
}`}
@@ -98,11 +94,7 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
<Link
href="/#pricing"
className={`text-sm font-semibold transition-colors ${
isHeroTransparent
? 'text-white/90 hover:text-white'
: 'text-slate-800 hover:text-blue-600'
}`}
className="text-sm font-semibold text-slate-800 hover:text-blue-600 transition-colors"
>
Pricing
</Link>
@@ -110,9 +102,7 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
<Link
href="/tools"
className={`text-sm font-semibold transition-colors ${
isHeroTransparent
? 'text-white/90 hover:text-white'
: pathname.startsWith('/tools')
pathname.startsWith('/tools')
? 'text-blue-600 font-bold'
: 'text-slate-800 hover:text-blue-600'
}`}
@@ -123,9 +113,7 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
<Link
href="/apps"
className={`text-sm font-semibold transition-colors ${
isHeroTransparent
? 'text-white/90 hover:text-white'
: pathname.startsWith('/apps')
pathname.startsWith('/apps')
? 'text-blue-600 font-bold'
: 'text-slate-800 hover:text-blue-600'
}`}
@@ -135,11 +123,7 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
<Link
href="/#home-faqs"
className={`text-sm font-semibold transition-colors ${
isHeroTransparent
? 'text-white/90 hover:text-white'
: 'text-slate-800 hover:text-blue-600'
}`}
className="text-sm font-semibold text-slate-800 hover:text-blue-600 transition-colors"
>
Trust & Privacy
</Link>
@@ -149,7 +133,7 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
<div className="hidden md:flex items-center space-x-3 relative z-20 flex-shrink-0">
<Link
href="/apps"
className="px-5 py-2.5 rounded-full text-xs sm:text-sm font-bold text-white bg-blue-600 hover:bg-blue-500 shadow-md shadow-blue-500/30 transition-all duration-200 hover:scale-105 active:scale-95"
className="px-5 py-2.5 rounded-full text-xs sm:text-sm font-bold text-white bg-blue-600 hover:bg-blue-500 shadow-md shadow-blue-500/25 transition-all duration-200 hover:scale-105 active:scale-95"
>
Get the App
</Link>
@@ -159,11 +143,7 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
<div className="flex md:hidden items-center space-x-2 relative z-20">
<button
onClick={() => setMobileMenuOpen(!mobileMenuOpen)}
className={`p-2.5 rounded-xl border transition-colors active:scale-95 ${
isHeroTransparent && !mobileMenuOpen
? 'text-white bg-white/10 hover:bg-white/20 border-white/20'
: 'text-slate-800 bg-white hover:bg-slate-50 border-slate-200/90 shadow-sm'
}`}
className="p-2.5 rounded-xl border text-slate-800 bg-white hover:bg-slate-50 border-slate-200/90 shadow-2xs transition-colors active:scale-95"
aria-label={mobileMenuOpen ? 'Close navigation menu' : 'Open navigation menu'}
aria-expanded={mobileMenuOpen}
>