'use client'; import React, { useState } from 'react'; import Link from 'next/link'; import { Smile, Sparkles, Scissors, Palette, Layers, ArrowRight, CheckCircle2, Zap, ShieldCheck, Cpu, Smartphone, } from 'lucide-react'; import { resolveLocalised, ToolItem, CategoryItem } from '@/types'; import { BeforeAfterSlider } from '@/components/ui/BeforeAfterSlider'; import { TiltCard } from '@/components/ui/TiltCard'; export interface VerticalToolStackProps { context: { tools: ToolItem[]; categories: CategoryItem[]; locale: string; }; } const ICON_MAP: Record = { Smile, Sparkles, Scissors, Palette, Layers, }; // Architecture badges mapped by tool id const MODEL_BADGES: Record = { 'face.blemish.remove': { model: 'RetouchGAN v2.1', latency: '< 380ms', chip: 'Sub-Pore Texture' }, 'face.teeth.whiten': { model: 'DentiClear AI', latency: '< 290ms', chip: 'Enamel Lustre Preservation' }, 'bg.p3m.matting': { model: 'P3M-Net Alpha', latency: '< 520ms', chip: 'Hair-Strand Precision' }, 'restore.photo.enhance': { model: 'GFPGAN + RealESRGAN', latency: '< 460ms', chip: '4K Super-Resolution' }, 'restore.photo.old': { model: 'ScratchDeNet Pro', latency: '< 490ms', chip: 'Crack & Tear Inpainting' }, 'restore.photo.colorize': { model: 'DeOldify Chroma', latency: '< 420ms', chip: 'Historical Palette AI' }, 'art.cartoon.caricature': { model: 'AnimeGAN v3 Core', latency: '< 350ms', chip: 'Vector Line Art' }, 'art.polaroid.fx': { model: 'AnalogFilm Studio', latency: '< 240ms', chip: 'Halide Grain Synthesis' }, }; export function VerticalToolStackSection({ context }: VerticalToolStackProps) { const { tools, categories, locale } = context; const [selectedCategory, setSelectedCategory] = useState('all'); const filteredCategories = selectedCategory === 'all' ? categories : categories.filter((c) => c.slug === selectedCategory); return (
{/* Anchor alias for backwards compatibility */}
{/* Subtle ambient light gradient */}
{/* Section Header: Centered & Balanced */}
THE CREATIVE STUDIO SUITE

Advanced Vision Tools

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.

{/* Centered Symmetrical Category Filter Rail */}
{categories.map((cat) => { const catTools = tools.filter((t) => t.category === cat.slug); const active = selectedCategory === cat.slug; const Icon = ICON_MAP[cat.icon || 'Sparkles'] || Sparkles; return ( ); })}
{/* Centered Symmetrical Vertical Stack Container (No Lopsided Gutter) */}
{filteredCategories.map((category) => { const catTools = tools.filter((t) => t.category === category.slug); if (catTools.length === 0) return null; const Icon = ICON_MAP[category.icon || 'Sparkles'] || Sparkles; return (
{/* Category Section Header */}

{resolveLocalised(category.name, locale)}

{resolveLocalised(category.description, locale)}

{catTools.length} {catTools.length === 1 ? 'Production Tool' : 'Production Tools'}
{/* Symmetrical Tool Cards */}
{catTools.map((tool) => { const badgeInfo = MODEL_BADGES[tool.id] || { model: 'Neural Vision v2.0', latency: '< 450ms', chip: 'Neural Precision', }; const example = tool.content?.examples?.[0] || { before: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80', after: 'https://images.unsplash.com/photo-1517841905240-472988babdf9?w=800&auto=format&fit=crop&q=80', caption: 'Interactive Before/After Preview', }; return (
{/* Top Metadata Row */}
{/* Neural Model Tag */} {badgeInfo.model} {/* Specific Capability Chip */} {badgeInfo.chip}
{/* Latency Metric */}
{badgeInfo.latency} Stream
{/* Card Content Grid: 2 Symmetric Columns */}
{/* Left Details Column */}

{resolveLocalised(tool.name, locale)}

{resolveLocalised(tool.summary, locale)}

{/* Features Checklist */}
Sub-pixel edge and realistic texture preservation
Studio-grade 4K lossless enhancement
Full creative control in native iOS & Android apps
{/* Action Buttons */}
Launch Tool Online Native App
{/* Right Interactive Before/After Comparison Slider */}
); })}
); })}
{/* Centered Symmetrical Bottom Banner */}

Dedicated Mobile Creative Suites for iOS & Android

Batch enhancement, RAW camera file support, and instant offline exports across our native mobile app lineup.

Explore Mobile Apps
); }