139 lines
6.4 KiB
TypeScript
139 lines
6.4 KiB
TypeScript
'use client';
|
|
|
|
import React from 'react';
|
|
import Link from 'next/link';
|
|
import { ArrowRight, Sparkles } from 'lucide-react';
|
|
|
|
interface TransformationItem {
|
|
toolSlug: string;
|
|
toolName: string;
|
|
category: string;
|
|
before: string;
|
|
after: string;
|
|
tag: string;
|
|
}
|
|
|
|
const transformations: TransformationItem[] = [
|
|
{
|
|
toolSlug: 'blemish-remover',
|
|
toolName: 'AI Blemish Remover',
|
|
category: 'Portrait Retouch',
|
|
before: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=400&auto=format&fit=crop&q=80',
|
|
after: 'https://images.unsplash.com/photo-1517841905240-472988babdf9?w=400&auto=format&fit=crop&q=80',
|
|
tag: 'Skin Pore Texture Preserved',
|
|
},
|
|
{
|
|
toolSlug: 'background-remover',
|
|
toolName: 'P3M Background Cutout',
|
|
category: 'Matting',
|
|
before: 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=400&auto=format&fit=crop&q=80',
|
|
after: 'https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=400&auto=format&fit=crop&q=80',
|
|
tag: 'Sub-Pixel Hair Strands',
|
|
},
|
|
{
|
|
toolSlug: 'photo-enhancer',
|
|
toolName: 'Ultra HD 4K Enhancer',
|
|
category: 'Restoration',
|
|
before: 'https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=400&auto=format&fit=crop&q=80',
|
|
after: 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=400&auto=format&fit=crop&q=80',
|
|
tag: 'Deblur & Iris Sharpness',
|
|
},
|
|
{
|
|
toolSlug: 'old-photo-restorer',
|
|
toolName: 'Vintage Restorer',
|
|
category: 'Archives',
|
|
before: 'https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=400&auto=format&fit=crop&q=80',
|
|
after: 'https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=400&auto=format&fit=crop&q=80',
|
|
tag: 'Scratch & Tear Removal',
|
|
},
|
|
{
|
|
toolSlug: 'cartoon-avatar',
|
|
toolName: 'CartoonGAN Anime',
|
|
category: 'Creative Art',
|
|
before: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=400&auto=format&fit=crop&q=80',
|
|
after: 'https://images.unsplash.com/photo-1578632767115-351597cf2477?w=400&auto=format&fit=crop&q=80',
|
|
tag: 'Manga Cel Animation',
|
|
},
|
|
{
|
|
toolSlug: 'colorization',
|
|
toolName: 'B&W Colorizer',
|
|
category: 'Historical Color',
|
|
before: 'https://images.unsplash.com/photo-1544717305-2782549b5136?w=400&auto=format&fit=crop&q=80',
|
|
after: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=400&auto=format&fit=crop&q=80',
|
|
tag: 'Deep Neural Palette',
|
|
},
|
|
];
|
|
|
|
export function TransformationReelSection() {
|
|
return (
|
|
<section className="py-14 bg-[#F5F2EB] border-y border-slate-900/[0.08] overflow-hidden relative">
|
|
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 mb-6 flex items-center justify-between">
|
|
<div className="flex items-center gap-2.5">
|
|
<span className="flex h-2 w-2 relative">
|
|
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-blue-500 opacity-75"></span>
|
|
<span className="relative inline-flex rounded-full h-2 w-2 bg-blue-600"></span>
|
|
</span>
|
|
<h3 className="text-xs sm:text-sm font-mono font-bold uppercase tracking-widest text-slate-800 text-3d-chiseled preserve-3d">
|
|
Live Transformations by CRE Neural Engine
|
|
</h3>
|
|
</div>
|
|
<Link
|
|
href="/#studio-suite"
|
|
className="text-xs font-mono font-bold text-blue-600 hover:text-blue-700 hover:underline flex items-center gap-1.5 transition-colors"
|
|
>
|
|
<span>Explore The Suite</span>
|
|
<ArrowRight className="w-3.5 h-3.5" />
|
|
</Link>
|
|
</div>
|
|
|
|
{/* Horizontal scrolling showcase */}
|
|
<div className="flex gap-5 sm:gap-6 overflow-x-auto pb-4 px-4 sm:px-8 no-scrollbar scroll-smooth preserve-3d">
|
|
{transformations.map((item, idx) => (
|
|
<Link
|
|
key={idx}
|
|
href={`/tools/${item.toolSlug}`}
|
|
className="group shrink-0 w-64 sm:w-72 bg-white/95 backdrop-blur-sm rounded-2xl p-3.5 border border-slate-900/[0.08] shadow-sm hover:shadow-cinematic-hover hover:border-blue-400 hover:-translate-y-1.5 transition-all duration-300 preserve-3d"
|
|
>
|
|
{/* Visual side-by-side thumbnail */}
|
|
<div className="relative aspect-[16/10] rounded-xl overflow-hidden mb-3 bg-slate-950 border border-slate-200">
|
|
<div className="grid grid-cols-2 h-full w-full">
|
|
<div className="relative h-full overflow-hidden border-r border-white/20">
|
|
{/* eslint-disable-next-line @next/next/no-img-element */}
|
|
<img src={item.before} alt="Before" className="h-full w-full object-cover" />
|
|
<span className="absolute bottom-1.5 left-1.5 bg-black/80 backdrop-blur-md px-1.5 py-0.5 rounded text-[8.5px] font-mono font-bold text-white">
|
|
Before
|
|
</span>
|
|
</div>
|
|
<div className="relative h-full overflow-hidden">
|
|
{/* eslint-disable-next-line @next/next/no-img-element */}
|
|
<img src={item.after} alt="After" className="h-full w-full object-cover group-hover:scale-105 transition-transform duration-500" />
|
|
<span className="absolute bottom-1.5 right-1.5 bg-blue-600/90 backdrop-blur-md px-1.5 py-0.5 rounded text-[8.5px] font-mono font-bold text-white shadow-sm">
|
|
CRE AI
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div className="space-y-1 preserve-3d">
|
|
<div className="flex items-center justify-between">
|
|
<span className="badge-3d text-[10px] font-mono uppercase tracking-wider text-blue-600 font-bold px-2 py-0.5 rounded-full bg-blue-50/80 border border-blue-200/60">
|
|
{item.category}
|
|
</span>
|
|
<span className="text-[10px] font-mono text-slate-400 group-hover:text-blue-600 transition-colors font-medium">
|
|
Try Free →
|
|
</span>
|
|
</div>
|
|
<h4 className="font-display font-bold text-sm text-slate-900 group-hover:text-blue-600 transition-colors truncate preserve-3d text-3d-chiseled" style={{ transform: 'translateZ(14px)' }}>
|
|
{item.toolName}
|
|
</h4>
|
|
<p className="text-[11px] font-mono text-slate-500 truncate" style={{ transform: 'translateZ(8px)' }}>
|
|
{item.tag}
|
|
</p>
|
|
</div>
|
|
</Link>
|
|
))}
|
|
</div>
|
|
</section>
|
|
);
|
|
}
|