feat(ui): expand layout width to 1640px, fix word breaking, polish buttons and colors, implement 3 horizontal animated processing cards in how section

This commit is contained in:
2026-11-04 18:05:26 +05:30
parent 70e13c86b6
commit cd98c1a483
11 changed files with 493 additions and 332 deletions
+16 -16
View File
@@ -140,10 +140,10 @@ export function HeroSection({
// Pure Front Page View (PRD & User Requirements):
// Clean, beautifully formatted typography + interactive 3D visuals strictly behind the text
return (
<section className="relative isolate min-h-[92vh] sm:min-h-[95vh] flex flex-col justify-center items-center text-center overflow-hidden bg-[#FAF8F5] pt-24 pb-16 px-4 sm:px-6 lg:px-8">
<section className="relative isolate min-h-[92vh] sm:min-h-[95vh] flex flex-col justify-center items-center text-center overflow-hidden bg-[#FAF8F5] pt-24 pb-16 px-4 sm:px-6 md:px-8 lg:px-10">
{/* 1. Interactive 3D WebGL Canvas & Particle Constellation Mounted Behind Text */}
<div className="absolute inset-0 -z-10 flex items-center justify-center pointer-events-none select-none overflow-hidden">
<div className="w-[520px] h-[520px] sm:w-[780px] sm:h-[780px] lg:w-[980px] lg:h-[980px] opacity-70 transform-gpu transition-opacity duration-1000">
<div className="w-[580px] h-[580px] sm:w-[860px] sm:h-[860px] lg:w-[1100px] lg:h-[1100px] opacity-75 transform-gpu transition-opacity duration-1000">
<Hero3DCanvas className="w-full h-full" />
</div>
</div>
@@ -152,7 +152,7 @@ export function HeroSection({
<div
className="absolute inset-0 -z-20 pointer-events-none"
style={{
background: 'radial-gradient(circle at 50% 45%, rgba(37,99,235,0.13) 0%, rgba(14,165,233,0.07) 35%, transparent 70%)',
background: 'radial-gradient(circle at 50% 45%, rgba(37,99,235,0.14) 0%, rgba(14,165,233,0.08) 35%, transparent 70%)',
}}
/>
<div
@@ -160,7 +160,7 @@ export function HeroSection({
/>
{/* 3. Front Page Content: Flawlessly Formatted, Luxurious Typography */}
<div className="relative z-10 max-w-5xl mx-auto flex flex-col items-center justify-center">
<div className="relative z-10 max-w-6xl mx-auto flex flex-col items-center justify-center w-full">
{/* Subtle Elegant Pill Badge */}
<div className="inline-flex items-center gap-2 rounded-full border border-blue-500/20 bg-white/90 backdrop-blur-md px-4 py-1.5 text-xs font-mono font-medium tracking-wider uppercase text-blue-800 shadow-sm mb-6">
<span className="flex h-2 w-2 relative">
@@ -171,38 +171,38 @@ export function HeroSection({
</div>
{/* Editorial High-Impact Headline (SF Pro & Poppins) */}
<h1 className="text-4xl sm:text-6xl lg:text-[4.5rem] font-display font-extrabold tracking-[-0.035em] text-slate-900 leading-[1.08] max-w-4xl mx-auto text-balance">
<h1 className="text-4xl sm:text-6xl md:text-7xl lg:text-[5.25rem] font-display font-black tracking-[-0.04em] text-slate-900 leading-[1.05] max-w-5xl mx-auto text-balance">
<span className="block text-slate-900">
<TextAnimate animation="slideLeft" by="character">
Transform Photos with
</TextAnimate>
</span>
<span className="block mt-2 text-blue-600">
<TextAnimate animation="slideLeft" by="character" delay={0.25}>
<span className="block mt-2 text-blue-600 font-extrabold">
<TextAnimate animation="slideLeft" by="character" delay={0.2}>
Next-Gen Neural AI
</TextAnimate>
</span>
</h1>
{/* Balanced, Readable Subtitle (Inter / SF Pro) */}
<p className="mt-6 text-base sm:text-lg lg:text-xl text-slate-600 max-w-2xl mx-auto font-sans leading-relaxed text-balance">
<p className="mt-6 text-base sm:text-lg lg:text-xl text-slate-600 max-w-3xl mx-auto font-sans leading-relaxed text-pretty">
<TextAnimate animation="fadeIn" by="word" delay={0.25}>
{resolvedSubtitle}
</TextAnimate>
</p>
{/* Primary and Secondary Action Buttons */}
<div className="mt-9 flex flex-wrap items-center justify-center gap-3.5">
<div className="mt-10 flex flex-wrap items-center justify-center gap-4">
<a
href={primaryCtaHref}
className="group inline-flex items-center gap-2.5 rounded-full bg-slate-950 px-8 py-3.5 text-xs sm:text-sm font-bold text-white shadow-lg shadow-slate-900/15 transition-all duration-300 hover:scale-105 hover:bg-blue-600 active:scale-95"
className="group inline-flex items-center gap-3 rounded-full bg-gradient-to-r from-slate-950 via-slate-900 to-indigo-950 px-8 py-4 text-xs sm:text-sm font-bold text-white border border-white/15 shadow-xl shadow-slate-900/20 transition-all duration-300 hover:scale-[1.03] hover:from-blue-600 hover:to-indigo-600 active:scale-95"
>
<span>{primaryCtaLabel}</span>
<ArrowDown className="w-4 h-4 transition-transform group-hover:translate-y-0.5" />
</a>
<a
href={secondaryCtaHref}
className="inline-flex items-center gap-2 rounded-full border border-slate-300/90 bg-white/80 backdrop-blur-md px-7 py-3.5 text-xs sm:text-sm font-semibold text-slate-800 shadow-sm transition-all duration-300 hover:scale-105 hover:bg-white active:scale-95"
className="inline-flex items-center gap-2.5 rounded-full border border-slate-300/80 bg-white/90 backdrop-blur-md px-7 py-4 text-xs sm:text-sm font-semibold text-slate-800 shadow-sm transition-all duration-300 hover:scale-[1.03] hover:border-blue-400 hover:text-blue-600 hover:bg-white active:scale-95"
>
<Smartphone className="w-4 h-4 text-blue-600" />
<span>{secondaryCtaLabel}</span>
@@ -210,16 +210,16 @@ export function HeroSection({
</div>
{/* Trust Badges Strip */}
<div className="mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2 text-xs font-medium text-slate-500 font-sans">
<span className="inline-flex items-center gap-1.5">
<div className="mt-9 flex flex-wrap items-center justify-center gap-3 sm:gap-4 text-xs font-medium text-slate-600 font-sans">
<span className="inline-flex items-center gap-1.5 px-3.5 py-1.5 rounded-full bg-white/80 border border-slate-200/70 shadow-sm">
<ShieldCheck className="h-4 w-4 text-emerald-600" />
<span>Zero-Storage Guarantee</span>
</span>
<span className="inline-flex items-center gap-1.5">
<span className="inline-flex items-center gap-1.5 px-3.5 py-1.5 rounded-full bg-white/80 border border-slate-200/70 shadow-sm">
<Check className="h-4 w-4 text-blue-600" />
<span>Lossless 4K Export</span>
</span>
<span className="inline-flex items-center gap-1.5">
<span className="inline-flex items-center gap-1.5 px-3.5 py-1.5 rounded-full bg-white/80 border border-slate-200/70 shadow-sm">
<Zap className="h-4 w-4 text-amber-500" />
<span>&lt; 0.8s Inference</span>
</span>
@@ -229,7 +229,7 @@ export function HeroSection({
<a
href="#our-tools"
aria-label="Scroll to our tools"
className="mt-12 inline-flex flex-col items-center gap-1.5 text-[11px] font-mono uppercase tracking-widest text-slate-600 hover:text-blue-600 transition-colors"
className="mt-14 inline-flex flex-col items-center gap-1.5 text-[11px] font-mono uppercase tracking-widest text-slate-500 hover:text-blue-600 transition-colors"
>
<span>Scroll to Explore</span>
<span className="w-4 h-7 rounded-full border border-slate-300 flex justify-center p-1">