feat(ui): complete vertical layout overhaul, dynamic JSON banners, and animate-ui text motion graphics

This commit is contained in:
2026-11-03 18:06:20 +05:30
parent 8cec9692dc
commit b47b033ab7
24 changed files with 1419 additions and 608 deletions
@@ -17,7 +17,10 @@ import {
} from 'lucide-react';
import { resolveLocalised, ToolItem, CategoryItem } from '@/types';
import { BeforeAfterSlider } from '@/components/ui/BeforeAfterSlider';
import { TiltCard } from '@/components/ui/TiltCard';
import { SpotlightCard } from '@/components/animate-ui/SpotlightCard';
import { ShimmerBadge } from '@/components/animate-ui/ShimmerBadge';
import { MotionTextReveal } from '@/components/animate-ui/MotionTextReveal';
import { AnimatedGradientText } from '@/components/animate-ui/AnimatedGradientText';
export interface VerticalToolStackProps {
context: {
@@ -58,23 +61,27 @@ export function VerticalToolStackSection({ context }: VerticalToolStackProps) {
return (
<section
id="studio-suite"
className="py-24 sm:py-32 lg:py-36 relative bg-[#FAF8F5] border-t border-b border-slate-900/[0.07] overflow-hidden scroll-mt-20"
className="py-20 sm:py-28 lg:py-32 relative bg-[#FAF8F5] border-t border-b border-slate-900/[0.07] overflow-hidden scroll-mt-20"
>
{/* Anchor alias for backwards compatibility */}
<div id="tools-stack" className="absolute -top-20" />
{/* Subtle ambient light gradient */}
<div className="absolute top-1/4 left-1/2 -translate-x-1/2 w-[800px] h-96 bg-blue-500/[0.025] rounded-full blur-3xl pointer-events-none" />
<div className="absolute top-1/4 left-1/2 -translate-x-1/2 w-[900px] h-96 bg-blue-500/[0.025] rounded-full blur-3xl pointer-events-none" />
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
{/* Section Header: Centered & Balanced */}
{/* Full-width expansive container spanning the entire page */}
<div className="w-full max-w-[1640px] 2xl:max-w-[1720px] mx-auto px-4 sm:px-6 lg:px-8 xl:px-10 relative z-10">
{/* Section Header: Centered & Balanced with Animate UI Text Motion */}
<div className="text-center max-w-3xl mx-auto mb-12 sm:mb-16">
<div className="badge-3d inline-flex items-center gap-2 px-3.5 py-1.5 rounded-full bg-blue-50 border border-blue-200 text-xs font-mono font-semibold text-blue-700 mb-4 shadow-sm">
<Zap className="w-3.5 h-3.5 text-blue-600" />
<span>THE CREATIVE STUDIO SUITE</span>
<div className="mb-4">
<ShimmerBadge>
<Zap className="w-3.5 h-3.5 text-blue-600" />
<span>THE CREATIVE STUDIO SUITE</span>
</ShimmerBadge>
</div>
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-display font-black text-slate-900 tracking-tight mb-5 text-3d-chiseled">
Advanced <span className="text-transparent bg-clip-text bg-gradient-to-r from-blue-700 via-indigo-600 to-purple-600 text-3d-gradient">Vision Tools</span>
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-display font-black text-slate-900 tracking-tight mb-5">
<MotionTextReveal text="Advanced" className="text-slate-900 inline" />{' '}
<AnimatedGradientText className="font-black">Vision Tools</AnimatedGradientText>
</h2>
<p className="text-base sm:text-lg text-slate-600 leading-relaxed font-normal">
Precision deep learning models organized by creative discipline. Test sub-millimeter skin pore retouching, fine hair alpha matting, and 4K super-resolution directly in your browser.
@@ -82,7 +89,7 @@ export function VerticalToolStackSection({ context }: VerticalToolStackProps) {
</div>
{/* Centered Symmetrical Category Filter Rail */}
<div className="flex flex-wrap items-center justify-center gap-2 sm:gap-3 max-w-4xl mx-auto mb-16 sm:mb-20">
<div className="flex flex-wrap items-center justify-center gap-2 sm:gap-3 max-w-5xl mx-auto mb-14 sm:mb-16">
<button
onClick={() => setSelectedCategory('all')}
className={`flex items-center gap-2 px-5 py-2.5 rounded-full text-xs font-bold transition-all duration-200 shadow-sm ${
@@ -127,8 +134,8 @@ export function VerticalToolStackSection({ context }: VerticalToolStackProps) {
})}
</div>
{/* Centered Symmetrical Vertical Stack Container (No Lopsided Gutter) */}
<div className="max-w-5xl mx-auto space-y-16">
{/* Expansive Full-Width Vertical Tool Stack */}
<div className="w-full space-y-16 sm:space-y-20">
{filteredCategories.map((category) => {
const catTools = tools.filter((t) => t.category === category.slug);
if (catTools.length === 0) return null;
@@ -151,12 +158,12 @@ export function VerticalToolStackSection({ context }: VerticalToolStackProps) {
</p>
</div>
</div>
<span className="self-start sm:self-auto text-xs font-mono font-semibold text-blue-700 bg-blue-50 border border-blue-200 px-3 py-1 rounded-full">
<span className="self-start sm:self-auto text-xs font-mono font-semibold text-blue-700 bg-blue-50 border border-blue-200 px-3.5 py-1 rounded-full">
{catTools.length} {catTools.length === 1 ? 'Production Tool' : 'Production Tools'}
</span>
</div>
{/* Symmetrical Tool Cards */}
{/* Symmetrical Full-Width Tool Cards */}
<div className="space-y-8">
{catTools.map((tool) => {
const badgeInfo = MODEL_BADGES[tool.id] || {
@@ -170,96 +177,111 @@ export function VerticalToolStackSection({ context }: VerticalToolStackProps) {
caption: 'Interactive Before/After Preview',
};
const isBanner = (tool as any).variant === 'banner' || (tool as any).previewType === 'banner' || !example.after;
return (
<TiltCard
<SpotlightCard
key={tool.id}
maxTilt={2.5}
scale={1.008}
showGlare={true}
className="rounded-3xl"
className="bg-white rounded-3xl p-6 sm:p-8 lg:p-10 border border-slate-900/[0.08] hover:border-blue-400/80 shadow-sm hover:shadow-xl hover:-translate-y-1 transition-all duration-300 relative group"
>
<div className="bg-white rounded-3xl p-7 sm:p-9 border border-slate-900/[0.08] hover:border-blue-400 shadow-cream-sm hover:shadow-cream-md transition-all duration-300 relative group">
{/* Top Metadata Row */}
<div className="flex flex-wrap items-center justify-between gap-3 mb-6 pb-4 border-b border-slate-100">
<div className="flex flex-wrap items-center gap-2">
{/* Neural Model Tag */}
<span className="inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-blue-50 border border-blue-200 text-blue-700 font-mono text-[11px] font-semibold">
<Cpu className="w-3 h-3 text-blue-600" />
<span>{badgeInfo.model}</span>
</span>
{/* Specific Capability Chip */}
<span className="px-2.5 py-1 rounded-full bg-slate-100 border border-slate-200 text-slate-700 text-[11px] font-mono font-medium">
{badgeInfo.chip}
</span>
{/* Top Metadata Row */}
<div className="flex flex-wrap items-center justify-between gap-3 mb-6 pb-4 border-b border-slate-100">
<div className="flex flex-wrap items-center gap-2">
{/* Neural Model Tag */}
<span className="inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-blue-50 border border-blue-200 text-blue-700 font-mono text-[11px] font-semibold">
<Cpu className="w-3 h-3 text-blue-600" />
<span>{badgeInfo.model}</span>
</span>
{/* Specific Capability Chip */}
<span className="px-2.5 py-1 rounded-full bg-slate-100 border border-slate-200 text-slate-700 text-[11px] font-mono font-medium">
{badgeInfo.chip}
</span>
</div>
{/* Latency Metric */}
<div className="flex items-center gap-1.5 text-[11px] font-mono text-emerald-700 bg-emerald-50 border border-emerald-200 px-3 py-1 rounded-full font-semibold">
<span className="w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse" />
<span>{badgeInfo.latency} Stream</span>
</div>
</div>
{/* Card Content Grid: 2 Balanced Columns with Wide Preview */}
<div className="grid grid-cols-1 lg:grid-cols-12 gap-8 lg:gap-12 items-center">
{/* Left Details Column */}
<div className="lg:col-span-5 space-y-5">
<h4 className="text-2xl sm:text-3xl font-display font-bold text-slate-900 group-hover:text-blue-600 transition-colors text-3d-chiseled">
{resolveLocalised(tool.name, locale)}
</h4>
<p className="text-xs sm:text-sm text-slate-600 leading-relaxed font-normal">
{resolveLocalised(tool.summary, locale)}
</p>
{/* Features Checklist */}
<div className="space-y-2.5 pt-2">
<div className="flex items-center gap-2.5 text-xs text-slate-700 font-medium">
<CheckCircle2 className="w-4 h-4 text-blue-600 shrink-0" />
<span>Sub-pixel edge and realistic texture preservation</span>
</div>
<div className="flex items-center gap-2.5 text-xs text-slate-700 font-medium">
<CheckCircle2 className="w-4 h-4 text-blue-600 shrink-0" />
<span>Studio-grade 4K lossless enhancement</span>
</div>
<div className="flex items-center gap-2.5 text-xs text-slate-700 font-medium">
<CheckCircle2 className="w-4 h-4 text-blue-600 shrink-0" />
<span>Full creative control in native iOS & Android apps</span>
</div>
</div>
{/* Latency Metric */}
<div className="flex items-center gap-1.5 text-[11px] font-mono text-emerald-700 bg-emerald-50 border border-emerald-200 px-3 py-1 rounded-full font-semibold">
<span className="w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse" />
<span>{badgeInfo.latency} Stream</span>
{/* Action Buttons */}
<div className="pt-4 flex flex-wrap items-center gap-3">
<Link
href={`/tools/${tool.slug}`}
className="inline-flex items-center gap-2 px-6 py-3 rounded-full text-xs font-bold text-white bg-blue-600 hover:bg-blue-700 shadow-sm shadow-blue-500/20 transition-all duration-200 hover:-translate-y-0.5 active:translate-y-0"
>
<span>Launch Tool Online</span>
<ArrowRight className="w-3.5 h-3.5" />
</Link>
<Link
href={`/apps/${tool.homeApp}`}
className="inline-flex items-center gap-1.5 px-5 py-3 rounded-full text-xs font-bold text-slate-700 bg-slate-100 border border-slate-200 hover:bg-slate-200 transition-colors"
>
<Smartphone className="w-3.5 h-3.5 text-blue-600" />
<span>Native App</span>
</Link>
</div>
</div>
{/* Card Content Grid: 2 Symmetric Columns */}
<div className="grid grid-cols-1 md:grid-cols-12 gap-8 lg:gap-10 items-center">
{/* Left Details Column */}
<div className="md:col-span-6 space-y-4">
<h4 className="text-2xl sm:text-3xl font-display font-bold text-slate-900 group-hover:text-blue-600 transition-colors text-3d-chiseled">
{resolveLocalised(tool.name, locale)}
</h4>
<p className="text-xs sm:text-sm text-slate-600 leading-relaxed font-normal">
{resolveLocalised(tool.summary, locale)}
</p>
{/* Features Checklist */}
<div className="space-y-2.5 pt-2">
<div className="flex items-center gap-2.5 text-xs text-slate-700 font-medium">
<CheckCircle2 className="w-4 h-4 text-blue-600 shrink-0" />
<span>Sub-pixel edge and realistic texture preservation</span>
</div>
<div className="flex items-center gap-2.5 text-xs text-slate-700 font-medium">
<CheckCircle2 className="w-4 h-4 text-blue-600 shrink-0" />
<span>Studio-grade 4K lossless enhancement</span>
</div>
<div className="flex items-center gap-2.5 text-xs text-slate-700 font-medium">
<CheckCircle2 className="w-4 h-4 text-blue-600 shrink-0" />
<span>Full creative control in native iOS & Android apps</span>
{/* Right Interactive Viewport: Simple Banner vs Comparison Slider */}
<div className="lg:col-span-7">
{isBanner ? (
<div className="relative aspect-[16/10] rounded-2xl overflow-hidden border border-slate-200 bg-slate-950 shadow-md group/vbanner">
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
src={example.before || 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80'}
alt={resolveLocalised(tool.name, locale)}
className="w-full h-full object-cover group-hover/vbanner:scale-105 transition-transform duration-700"
/>
<div className="absolute inset-0 bg-gradient-to-t from-slate-950/80 via-transparent to-transparent pointer-events-none" />
<div className="absolute top-4 left-4">
<span className="px-3 py-1 rounded-full bg-white/90 backdrop-blur-md text-slate-900 text-xs font-mono font-bold shadow-md">
STUDIO BANNER • {badgeInfo.model}
</span>
</div>
</div>
{/* Action Buttons */}
<div className="pt-4 flex flex-wrap items-center gap-3">
<Link
href={`/tools/${tool.slug}`}
className="inline-flex items-center gap-2 px-6 py-3 rounded-full text-xs font-bold text-white bg-blue-600 hover:bg-blue-700 shadow-sm shadow-blue-500/20 transition-all duration-200 hover:-translate-y-0.5 active:translate-y-0"
>
<span>Launch Tool Online</span>
<ArrowRight className="w-3.5 h-3.5" />
</Link>
<Link
href={`/apps/${tool.homeApp}`}
className="inline-flex items-center gap-1.5 px-5 py-3 rounded-full text-xs font-bold text-slate-700 bg-slate-100 border border-slate-200 hover:bg-slate-200 transition-colors"
>
<Smartphone className="w-3.5 h-3.5 text-blue-600" />
<span>Native App</span>
</Link>
</div>
</div>
{/* Right Interactive Before/After Comparison Slider */}
<div className="md:col-span-6">
) : (
<BeforeAfterSlider
beforeUrl={example.before}
afterUrl={example.after}
beforeLabel="Raw Input"
afterLabel="CRE Result"
aspectRatio="aspect-[4/3]"
aspectRatio="aspect-[16/10]"
autoSlide={false}
/>
</div>
)}
</div>
</div>
</TiltCard>
</SpotlightCard>
);
})}
</div>
@@ -268,8 +290,8 @@ export function VerticalToolStackSection({ context }: VerticalToolStackProps) {
})}
</div>
{/* Centered Symmetrical Bottom Banner */}
<div className="mt-16 max-w-5xl mx-auto rounded-3xl bg-white p-6 sm:p-8 border border-slate-900/[0.08] shadow-cream-sm flex flex-col sm:flex-row items-center justify-between gap-5 text-center sm:text-left">
{/* Centered Symmetrical Bottom Banner (Expansive Width) */}
<div className="mt-16 w-full rounded-3xl bg-white p-6 sm:p-8 border border-slate-900/[0.08] shadow-sm flex flex-col sm:flex-row items-center justify-between gap-5 text-center sm:text-left">
<div className="flex items-center gap-3.5">
<div className="w-10 h-10 rounded-2xl bg-blue-50 border border-blue-200 flex items-center justify-center text-blue-600 shrink-0">
<Smartphone className="w-5 h-5" />