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
+19 -19
View File
@@ -263,11 +263,11 @@ export function HeroSection({
// -------------------------------------------------------------
// 3. Pure Front Page Hero View (for homepage /):
// Matching User Reference Image: Image_homepage.jpg background,
// Left-aligned typography, pill buttons, and glass telemetry capsule
// Matching User Reference Image: Image_homepage.jpg background with
// White/Cream Gradient Overlay, Editorial Typography, and Telemetry Capsule
// -------------------------------------------------------------
return (
<section className="relative min-h-[92vh] sm:min-h-screen flex items-center overflow-hidden bg-black pt-20 sm:pt-24 pb-14 sm:pb-20">
<section className="relative min-h-[92vh] sm:min-h-screen flex items-center overflow-hidden bg-[#FAF8F5] pt-20 sm:pt-24 pb-14 sm:pb-20">
{/* 1. Background Image with Responsive Ultra-Fast Loading */}
<div className="absolute inset-0 z-0 overflow-hidden">
<picture>
@@ -283,8 +283,8 @@ export function HeroSection({
decoding="async"
/>
</picture>
{/* Dark Gradient Overlay for Maximum Text Readability */}
<div className="absolute inset-0 bg-gradient-to-r from-black/95 via-black/75 to-black/30 sm:via-black/55 sm:to-transparent pointer-events-none" />
{/* White / Cream Gradient Overlay for Radiant Light Aesthetic */}
<div className="absolute inset-0 bg-gradient-to-r from-[#FAF8F5] via-[#FAF8F5]/90 to-transparent sm:from-[#FAF8F5] sm:via-[#FAF8F5]/80 sm:to-transparent pointer-events-none" />
</div>
{/* Zero-Overhead Scroll Sentinel for Navbar Transformation */}
@@ -295,16 +295,16 @@ export function HeroSection({
<div className="max-w-2xl sm:max-w-3xl">
{/* Masterpiece Headline */}
<h1 className="text-4xl sm:text-6xl md:text-7xl lg:text-[5.2rem] font-display font-extrabold tracking-[-0.03em] leading-[1.06] text-left">
<span className="block text-white">
<span className="block text-slate-950 font-black">
Imagine. Transform.
</span>
<span className="block mt-1 sm:mt-2 bg-gradient-to-r from-blue-400 via-indigo-300 to-pink-400 bg-clip-text text-transparent">
<span className="block mt-1 sm:mt-2 bg-gradient-to-r from-blue-600 via-indigo-600 to-pink-500 bg-clip-text text-transparent font-black">
Create the Impossible.
</span>
</h1>
{/* Subtitle */}
<p className="mt-5 sm:mt-7 text-sm sm:text-base md:text-lg text-slate-200/90 max-w-xl text-left font-sans leading-relaxed">
<p className="mt-5 sm:mt-7 text-sm sm:text-base md:text-lg text-slate-600 max-w-xl text-left font-sans leading-relaxed">
Turn ordinary moments into extraordinary visual art, Instant, effortless, and private photo magic right in your browser.
</p>
@@ -312,57 +312,57 @@ export function HeroSection({
<div className="mt-8 sm:mt-10 flex flex-wrap items-center gap-3 sm:gap-4">
<a
href={primaryCtaHref}
className="px-7 sm:px-8 py-3.5 sm:py-4 rounded-full text-xs sm:text-sm font-bold text-white bg-blue-600 hover:bg-blue-500 shadow-lg shadow-blue-600/35 transition-all duration-200 hover:scale-105 active:scale-95 cursor-pointer"
className="px-7 sm:px-8 py-3.5 sm:py-4 rounded-full text-xs sm:text-sm font-bold text-white bg-blue-600 hover:bg-blue-500 shadow-lg shadow-blue-500/25 transition-all duration-200 hover:scale-105 active:scale-95 cursor-pointer"
>
Explore Our Tools
</a>
<a
href={secondaryCtaHref}
className="px-7 sm:px-8 py-3.5 sm:py-4 rounded-full text-xs sm:text-sm font-bold text-slate-950 bg-white hover:bg-slate-100 shadow-md transition-all duration-200 hover:scale-105 active:scale-95 cursor-pointer"
className="px-7 sm:px-8 py-3.5 sm:py-4 rounded-full text-xs sm:text-sm font-bold text-slate-900 bg-white hover:bg-slate-50 border border-slate-200/90 shadow-sm transition-all duration-200 hover:scale-105 active:scale-95 cursor-pointer"
>
Recommended Apps
</a>
</div>
{/* Glass Metrics Pill Capsule (0% CPU, Hardware-Accelerated) */}
<div className="mt-12 sm:mt-16 w-full max-w-2xl sm:max-w-3xl rounded-3xl sm:rounded-full bg-slate-950/75 border border-white/15 p-4 sm:py-4 sm:px-8 grid grid-cols-2 sm:grid-cols-4 gap-4 sm:gap-6 shadow-2xl">
<div className="mt-12 sm:mt-16 w-full max-w-2xl sm:max-w-3xl rounded-3xl sm:rounded-full bg-white/85 border border-slate-200/90 p-4 sm:py-4 sm:px-8 grid grid-cols-2 sm:grid-cols-4 gap-4 sm:gap-6 shadow-cream-sm">
{/* Metric 1 */}
<div className="flex flex-col text-left">
<span className="text-xl sm:text-2xl font-display font-black tracking-tight text-blue-400">
<span className="text-xl sm:text-2xl font-display font-black tracking-tight text-blue-600">
1.4M+
</span>
<span className="text-[11px] sm:text-xs text-slate-300 font-sans mt-0.5">
<span className="text-[11px] sm:text-xs text-slate-500 font-sans mt-0.5">
Photo Tranformed
</span>
</div>
{/* Metric 2 */}
<div className="flex flex-col text-left">
<span className="text-xl sm:text-2xl font-display font-black tracking-tight text-indigo-300">
<span className="text-xl sm:text-2xl font-display font-black tracking-tight text-indigo-600">
&lt;0.8s
</span>
<span className="text-[11px] sm:text-xs text-slate-300 font-sans mt-0.5">
<span className="text-[11px] sm:text-xs text-slate-500 font-sans mt-0.5">
Instant Interene
</span>
</div>
{/* Metric 3 */}
<div className="flex flex-col text-left">
<span className="text-xl sm:text-2xl font-display font-black tracking-tight text-indigo-400">
<span className="text-xl sm:text-2xl font-display font-black tracking-tight text-purple-600">
100%
</span>
<span className="text-[11px] sm:text-xs text-slate-300 font-sans mt-0.5">
<span className="text-[11px] sm:text-xs text-slate-500 font-sans mt-0.5">
Client side privacy
</span>
</div>
{/* Metric 4 */}
<div className="flex flex-col text-left">
<span className="text-xl sm:text-2xl font-display font-black tracking-tight bg-gradient-to-r from-blue-300 via-indigo-300 to-pink-400 bg-clip-text text-transparent">
<span className="text-xl sm:text-2xl font-display font-black tracking-tight bg-gradient-to-r from-blue-600 via-indigo-600 to-pink-500 bg-clip-text text-transparent">
4K UHD
</span>
<span className="text-[11px] sm:text-xs text-slate-300 font-sans mt-0.5">
<span className="text-[11px] sm:text-xs text-slate-500 font-sans mt-0.5">
Studio Resolution
</span>
</div>
+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}
>