feat(showcase): replace live benchmarking with dynamic media showcase reel and add multi-layout variations across all tool cards

This commit is contained in:
2026-11-03 18:15:32 +05:30
parent b47b033ab7
commit e7aa732892
5 changed files with 685 additions and 142 deletions
@@ -178,105 +178,253 @@ export function CinematicHorizontalScrollSection({
</div>
</div>
{/* Symmetrical Two-Column Content Grid: Details on Left, Visual on Right */}
<div className="grid grid-cols-1 lg:grid-cols-12 gap-8 lg:gap-14 items-center">
{/* Left Column: Editorial Content, Specs & Actions */}
<div className="lg:col-span-5 space-y-5">
<div>
<span className="text-xs font-mono text-blue-600 font-bold uppercase tracking-wider block mb-1">
{card.tagline}
</span>
<h3 className="text-2xl sm:text-3xl lg:text-4xl font-display font-bold text-slate-900 tracking-tight group-hover:text-blue-600 transition-colors">
{card.title}
</h3>
{/* Dynamic Multi-Layout Variations Across Cards */}
{idx === 1 ? (
/* VARIATION 2: Inverted Zig-Zag Layout (Visual on Left, Editorial on Right) */
<div className="grid grid-cols-1 lg:grid-cols-12 gap-8 lg:gap-14 items-center">
{/* Left Column: Visual Media */}
<div className="lg:col-span-7 order-last lg:order-first">
{isBannerMode ? (
<div className="relative aspect-[16/10] w-full rounded-2xl sm:rounded-3xl overflow-hidden border border-slate-200 bg-slate-950 shadow-md group/banner">
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
src={card.bannerImage || card.beforeUrl || 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=1200&auto=format&fit=crop&q=80'}
alt={card.title}
className="w-full h-full object-cover group-hover/banner:scale-105 transition-transform duration-700"
/>
<div className="absolute inset-0 bg-gradient-to-t from-slate-950/85 via-slate-950/20 to-transparent pointer-events-none" />
<div className="absolute top-4 left-4 z-20">
<span className="px-3.5 py-1.5 rounded-full bg-white/95 backdrop-blur-md text-slate-900 text-xs font-mono font-bold border border-white/40 shadow-md">
{card.bannerBadge || 'DYNAMIC STUDIO BANNER'}
</span>
</div>
<div className="absolute bottom-5 left-5 right-5 z-20 flex items-end justify-between">
<div>
<span className="text-[10px] font-mono text-blue-300 font-bold uppercase tracking-wider block mb-1">
Neural Preset Matrix
</span>
<h4 className="text-xl sm:text-2xl font-display font-bold text-white drop-shadow">
{card.title}
</h4>
</div>
<span className="hidden sm:inline-flex items-center gap-1.5 px-3.5 py-1.5 rounded-full bg-blue-600/90 text-white text-xs font-mono font-bold backdrop-blur-md shadow-md">
<Zap className="w-3.5 h-3.5" />
<span>1-Click Deploy</span>
</span>
</div>
</div>
) : (
<div className="rounded-2xl sm:rounded-3xl overflow-hidden border border-slate-200 bg-slate-100 shadow-md">
<Cinematic3DComparison
beforeUrl={card.beforeUrl!}
afterUrl={card.afterUrl!}
beforeLabel="RAW SOURCE"
afterLabel={card.model}
aspectRatio="aspect-[16/10]"
autoSlide={false}
/>
</div>
)}
</div>
<p className="text-sm sm:text-base text-slate-600 leading-relaxed font-normal">
{/* Right Column: Editorial Text & CTAs */}
<div className="lg:col-span-5 space-y-5">
<div>
<span className="text-xs font-mono text-purple-600 font-bold uppercase tracking-wider block mb-1">
{card.tagline}
</span>
<h3 className="text-2xl sm:text-3xl lg:text-4xl font-display font-bold text-slate-900 tracking-tight group-hover:text-blue-600 transition-colors">
{card.title}
</h3>
</div>
<p className="text-sm sm:text-base text-slate-600 leading-relaxed font-normal">
{card.description}
</p>
<div className="space-y-2 pt-1">
{card.specs.map((spec, i) => (
<div key={i} className="flex items-center gap-2.5 text-xs sm:text-sm text-slate-700 font-medium">
<CheckCircle2 className="w-4 h-4 text-purple-600 shrink-0" />
<span>{spec}</span>
</div>
))}
</div>
<div className="pt-4 flex flex-wrap items-center gap-3">
<Link
href={`/tools/${card.toolSlug}`}
className="inline-flex items-center gap-2 px-6 py-3 rounded-full bg-purple-600 hover:bg-purple-700 text-white text-xs font-bold transition-all shadow-sm shadow-purple-500/20 active:scale-95 hover:-translate-y-0.5"
>
<span>Launch Online Studio</span>
<ArrowRight className="w-3.5 h-3.5" />
</Link>
<Link
href={`/apps/${card.appSlug}`}
className="inline-flex items-center gap-1.5 px-5 py-3 rounded-full bg-slate-100 hover:bg-slate-200 text-slate-800 text-xs font-bold transition-colors"
>
<Smartphone className="w-3.5 h-3.5 text-purple-600" />
<span>{card.appName}</span>
</Link>
</div>
</div>
</div>
) : idx === 2 ? (
/* VARIATION 3: Widescreen Bento Spotlight Layout (Header Top, Full-Width Visual Below) */
<div className="space-y-6">
<div className="flex flex-col md:flex-row md:items-end justify-between gap-4">
<div>
<span className="text-xs font-mono text-emerald-600 font-bold uppercase tracking-wider block mb-1">
{card.tagline}
</span>
<h3 className="text-2xl sm:text-3xl lg:text-4xl font-display font-bold text-slate-900 tracking-tight">
{card.title}
</h3>
</div>
<div className="flex flex-wrap items-center gap-3 shrink-0">
<Link
href={`/tools/${card.toolSlug}`}
className="inline-flex items-center gap-2 px-6 py-2.5 rounded-full bg-blue-600 hover:bg-blue-700 text-white text-xs font-bold transition-all shadow-sm shadow-blue-500/20 active:scale-95"
>
<span>Launch Online Studio</span>
<ArrowRight className="w-3.5 h-3.5" />
</Link>
<Link
href={`/apps/${card.appSlug}`}
className="inline-flex items-center gap-1.5 px-5 py-2.5 rounded-full bg-slate-100 hover:bg-slate-200 text-slate-800 text-xs font-bold transition-colors"
>
<Smartphone className="w-3.5 h-3.5 text-blue-600" />
<span>{card.appName}</span>
</Link>
</div>
</div>
<p className="text-sm sm:text-base text-slate-600 max-w-3xl font-normal">
{card.description}
</p>
{/* Specs Checklist Chips */}
<div className="space-y-2 pt-1">
{/* Wide 21:9 / 16:9 Widescreen Comparison Viewport */}
<div className="rounded-2xl sm:rounded-3xl overflow-hidden border border-slate-200 bg-slate-100 shadow-md">
<Cinematic3DComparison
beforeUrl={card.beforeUrl!}
afterUrl={card.afterUrl!}
beforeLabel="LOW-RES SOURCE"
afterLabel={card.model}
aspectRatio="aspect-[21/9] min-h-[360px]"
autoSlide={false}
/>
</div>
{/* Horizontal Specs Chips */}
<div className="flex flex-wrap items-center gap-3 pt-1">
{card.specs.map((spec, i) => (
<div key={i} className="flex items-center gap-2.5 text-xs sm:text-sm text-slate-700 font-medium">
<CheckCircle2 className="w-4 h-4 text-blue-600 shrink-0" />
<span
key={i}
className="px-3.5 py-1.5 rounded-xl bg-slate-50 text-slate-700 text-xs font-mono font-medium border border-slate-200 flex items-center gap-2"
>
<CheckCircle2 className="w-3.5 h-3.5 text-emerald-600" />
<span>{spec}</span>
</div>
</span>
))}
</div>
</div>
) : (
/* VARIATION 1: Standard Symmetrical Layout (Text Left, Visual Right) */
<div className="grid grid-cols-1 lg:grid-cols-12 gap-8 lg:gap-14 items-center">
{/* Left Column: Editorial Content, Specs & Actions */}
<div className="lg:col-span-5 space-y-5">
<div>
<span className="text-xs font-mono text-blue-600 font-bold uppercase tracking-wider block mb-1">
{card.tagline}
</span>
<h3 className="text-2xl sm:text-3xl lg:text-4xl font-display font-bold text-slate-900 tracking-tight group-hover:text-blue-600 transition-colors">
{card.title}
</h3>
</div>
{/* Action Links */}
<div className="pt-4 flex flex-wrap items-center gap-3">
<Link
href={`/tools/${card.toolSlug}`}
className="inline-flex items-center gap-2 px-6 py-3 rounded-full bg-blue-600 hover:bg-blue-700 text-white text-xs font-bold transition-all shadow-sm shadow-blue-500/20 active:scale-95 hover:-translate-y-0.5"
>
<span>Launch Online Studio</span>
<ArrowRight className="w-3.5 h-3.5" />
</Link>
<p className="text-sm sm:text-base text-slate-600 leading-relaxed font-normal">
{card.description}
</p>
<Link
href={`/apps/${card.appSlug}`}
className="inline-flex items-center gap-1.5 px-5 py-3 rounded-full bg-slate-100 hover:bg-slate-200 text-slate-800 text-xs font-bold transition-colors"
>
<Smartphone className="w-3.5 h-3.5 text-blue-600" />
<span>{card.appName}</span>
</Link>
{/* Specs Checklist Chips */}
<div className="space-y-2 pt-1">
{card.specs.map((spec, i) => (
<div key={i} className="flex items-center gap-2.5 text-xs sm:text-sm text-slate-700 font-medium">
<CheckCircle2 className="w-4 h-4 text-blue-600 shrink-0" />
<span>{spec}</span>
</div>
))}
</div>
{/* Action Links */}
<div className="pt-4 flex flex-wrap items-center gap-3">
<Link
href={`/tools/${card.toolSlug}`}
className="inline-flex items-center gap-2 px-6 py-3 rounded-full bg-blue-600 hover:bg-blue-700 text-white text-xs font-bold transition-all shadow-sm shadow-blue-500/20 active:scale-95 hover:-translate-y-0.5"
>
<span>Launch Online Studio</span>
<ArrowRight className="w-3.5 h-3.5" />
</Link>
<Link
href={`/apps/${card.appSlug}`}
className="inline-flex items-center gap-1.5 px-5 py-3 rounded-full bg-slate-100 hover:bg-slate-200 text-slate-800 text-xs font-bold transition-colors"
>
<Smartphone className="w-3.5 h-3.5 text-blue-600" />
<span>{card.appName}</span>
</Link>
</div>
</div>
{/* Right Column: Dynamic Simple Banner OR Interactive 3D Comparison Slider */}
<div className="lg:col-span-7">
{isBannerMode ? (
<div className="relative aspect-[16/10] w-full rounded-2xl sm:rounded-3xl overflow-hidden border border-slate-200 bg-slate-950 shadow-md group/banner">
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
src={card.bannerImage || card.beforeUrl || 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=1200&auto=format&fit=crop&q=80'}
alt={card.title}
className="w-full h-full object-cover group-hover/banner:scale-105 transition-transform duration-700"
/>
<div className="absolute inset-0 bg-gradient-to-t from-slate-950/85 via-slate-950/20 to-transparent pointer-events-none" />
<div className="absolute top-4 left-4 z-20">
<span className="px-3.5 py-1.5 rounded-full bg-white/95 backdrop-blur-md text-slate-900 text-xs font-mono font-bold border border-white/40 shadow-md">
{card.bannerBadge || 'DYNAMIC STUDIO BANNER'}
</span>
</div>
<div className="absolute bottom-5 left-5 right-5 z-20 flex items-end justify-between">
<div>
<span className="text-[10px] font-mono text-blue-300 font-bold uppercase tracking-wider block mb-1">
Neural Preset Matrix
</span>
<h4 className="text-xl sm:text-2xl font-display font-bold text-white drop-shadow">
{card.title}
</h4>
</div>
<span className="hidden sm:inline-flex items-center gap-1.5 px-3.5 py-1.5 rounded-full bg-blue-600/90 text-white text-xs font-mono font-bold backdrop-blur-md shadow-md">
<Zap className="w-3.5 h-3.5" />
<span>1-Click Deploy</span>
</span>
</div>
</div>
) : (
<div className="rounded-2xl sm:rounded-3xl overflow-hidden border border-slate-200 bg-slate-100 shadow-md">
<Cinematic3DComparison
beforeUrl={card.beforeUrl!}
afterUrl={card.afterUrl!}
beforeLabel="RAW SOURCE"
afterLabel={card.model}
aspectRatio="aspect-[16/10]"
autoSlide={false}
/>
</div>
)}
</div>
</div>
{/* Right Column: Dynamic Simple Banner OR Interactive 3D Comparison Slider */}
<div className="lg:col-span-7">
{isBannerMode ? (
/* DYNAMIC SIMPLE BANNER (100% Configurable from JSON, Zero Comparison) */
<div className="relative aspect-[16/10] w-full rounded-2xl sm:rounded-3xl overflow-hidden border border-slate-200 bg-slate-950 shadow-md group/banner">
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
src={card.bannerImage || card.beforeUrl || 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=1200&auto=format&fit=crop&q=80'}
alt={card.title}
className="w-full h-full object-cover group-hover/banner:scale-105 transition-transform duration-700"
/>
{/* Atmospheric Vignette Gradient */}
<div className="absolute inset-0 bg-gradient-to-t from-slate-950/85 via-slate-950/20 to-transparent pointer-events-none" />
{/* Top Dynamic Tag */}
<div className="absolute top-4 left-4 z-20">
<span className="px-3.5 py-1.5 rounded-full bg-white/95 backdrop-blur-md text-slate-900 text-xs font-mono font-bold border border-white/40 shadow-md">
{card.bannerBadge || 'DYNAMIC STUDIO BANNER'}
</span>
</div>
{/* Bottom Banner Content */}
<div className="absolute bottom-5 left-5 right-5 z-20 flex items-end justify-between">
<div>
<span className="text-[10px] font-mono text-blue-300 font-bold uppercase tracking-wider block mb-1">
Neural Preset Matrix
</span>
<h4 className="text-xl sm:text-2xl font-display font-bold text-white drop-shadow">
{card.title}
</h4>
</div>
<span className="hidden sm:inline-flex items-center gap-1.5 px-3.5 py-1.5 rounded-full bg-blue-600/90 text-white text-xs font-mono font-bold backdrop-blur-md shadow-md">
<Zap className="w-3.5 h-3.5" />
<span>1-Click Deploy</span>
</span>
</div>
</div>
) : (
/* INTERACTIVE 3D COMPARISON SLIDER */
<div className="rounded-2xl sm:rounded-3xl overflow-hidden border border-slate-200 bg-slate-100 shadow-md">
<Cinematic3DComparison
beforeUrl={card.beforeUrl!}
afterUrl={card.afterUrl!}
beforeLabel="RAW SOURCE"
afterLabel={card.model}
aspectRatio="aspect-[16/10]"
autoSlide={false}
/>
</div>
)}
</div>
</div>
)}
</SpotlightCard>
);
})}