Files
webb/src/components/sections/VisualUseCasesSection.tsx
T

163 lines
8.0 KiB
TypeScript

import React from 'react';
import Link from 'next/link';
import { ArrowRight, CheckCircle2, ShoppingBag, Camera, Archive, Palette, Zap } from 'lucide-react';
interface UseCaseCard {
title: string;
category: string;
desc: string;
toolSlug: string;
toolName: string;
icon: any;
beforeImg: string;
afterImg: string;
badge: string;
benefits: string[];
}
const useCases: UseCaseCard[] = [
{
title: 'E-Commerce & Product Isolation',
category: 'Commercial Cutouts',
desc: 'Isolate products, apparel, and models with sub-pixel hair strand precision and transparent PNG export ready for Shopify, Amazon, and marketplaces.',
toolSlug: 'background-remover',
toolName: 'P3M Background Remover',
icon: ShoppingBag,
beforeImg: '/management/pages/tools/background-remover/media/before.jpg',
afterImg: '/management/pages/tools/background-remover/media/after.jpg',
badge: 'P3M Dual-Stream Matting',
benefits: ['Clean alpha transparent PNG', 'Flyaway hair strand detection', 'Batch cutout ready in app'],
},
{
title: 'Studio Portraits & Beauty Retouching',
category: 'Headshots & Beauty',
desc: 'Remove blemishes, acne, scars, and under-eye discoloration while safeguarding natural skin pore texture without the artificial plastic blur.',
toolSlug: 'blemish-remover',
toolName: 'AI Blemish Remover',
icon: Camera,
beforeImg: '/management/pages/tools/blemish-remover/media/before.jpg',
afterImg: '/management/pages/tools/blemish-remover/media/after.jpg',
badge: 'Micro-Pore Safeguard',
benefits: ['Zero artificial plastic look', 'Localised neural inpainting', 'Multi-mode eye & skin fixes'],
},
{
title: 'Vintage Archives & Photo Restoration',
category: 'Genealogy & Memories',
desc: 'Erase physical folding creases, tear marks, and sepia fade from antique family photos, then breathe life into monochrome prints with deep colorization.',
toolSlug: 'old-photo-restorer',
toolName: 'Vintage Photo Restorer',
icon: Archive,
beforeImg: '/management/pages/tools/old-photo-restorer/media/before.jpg',
afterImg: '/management/pages/tools/old-photo-restorer/media/after.jpg',
badge: 'Historical Inpainting',
benefits: ['Physical scratch & crease repair', 'Historical skin tone colorizer', 'Preserve family heritage'],
},
{
title: 'Creator Avatars & CartoonGAN Stylization',
category: 'Social Media & Creators',
desc: 'Convert any portrait selfie into striking anime cel illustrations, manga linework, or nostalgic vintage Polaroid instant camera prints.',
toolSlug: 'cartoon-avatar',
toolName: 'CartoonGAN Anime Avatar',
icon: Palette,
beforeImg: '/management/pages/tools/cartoon-avatar/media/before.jpg',
afterImg: '/management/pages/tools/cartoon-avatar/media/after.jpg',
badge: 'Generative Adversarial Nets',
benefits: ['Facial geometry preservation', 'Manga cel shading', 'Social media ready avatars'],
},
];
export function VisualUseCasesSection() {
return (
<section className="py-24 sm:py-32 bg-[#FAF8F5] border-t border-slate-900/[0.08] relative overflow-hidden">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
<div className="text-center max-w-3xl mx-auto mb-16 sm:mb-20 space-y-4">
<div className="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">
<Zap className="w-3.5 h-3.5 text-blue-600" />
<span>REAL-WORLD VISUAL CAPABILITIES</span>
</div>
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-display font-black text-slate-900 tracking-tight">
Engineered for <span className="text-transparent bg-clip-text bg-gradient-to-r from-blue-700 to-indigo-600">Creators & Studios</span>
</h2>
<p className="text-base sm:text-lg text-slate-600 max-w-2xl mx-auto">
From single-click browser trials to full 4K studio batch exports, CRE Innovations powers every stage of your creative production workflow.
</p>
</div>
{/* 2x2 Visual Cards Grid */}
<div className="grid grid-cols-1 lg:grid-cols-2 gap-8 sm:gap-10">
{useCases.map((uc, idx) => {
const Icon = uc.icon;
return (
<div
key={idx}
className="group relative bg-white rounded-3xl p-7 sm:p-9 border border-slate-900/[0.08] hover:border-blue-400 shadow-cream-md hover:shadow-cream-lg transition-all duration-300 flex flex-col justify-between"
>
<div>
{/* Visual Before / After Split Frame */}
<div className="relative aspect-[16/10] rounded-2xl overflow-hidden mb-6 bg-slate-950 border border-slate-200 shadow-inner">
<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={uc.beforeImg} alt={`${uc.title} before`} className="h-full w-full object-cover" />
<span className="absolute top-3 left-3 bg-black/80 backdrop-blur-md px-2.5 py-1 rounded-md text-[9px] font-mono font-bold text-white">
Original Input
</span>
</div>
<div className="relative h-full overflow-hidden">
{/* eslint-disable-next-line @next/next/no-img-element */}
<img src={uc.afterImg} alt={`${uc.title} after`} className="h-full w-full object-cover group-hover:scale-105 transition-transform duration-500" />
<span className="absolute top-3 right-3 bg-blue-600 backdrop-blur-md px-2.5 py-1 rounded-md text-[9px] font-mono font-bold text-white shadow-md">
CRE AI Result
</span>
</div>
</div>
</div>
{/* Header */}
<div className="flex items-center justify-between mb-3">
<div className="flex items-center gap-2 text-xs font-mono font-bold text-blue-600">
<Icon className="w-4 h-4" />
<span>{uc.category}</span>
</div>
<span className="text-[10.5px] font-mono text-slate-700 bg-slate-100 border border-slate-200 px-2.5 py-0.5 rounded-full font-medium">
{uc.badge}
</span>
</div>
<h3 className="text-xl sm:text-2xl font-display font-bold text-slate-900 group-hover:text-blue-600 transition-colors">
{uc.title}
</h3>
<p className="mt-2 text-xs sm:text-sm text-slate-600 leading-relaxed font-normal">
{uc.desc}
</p>
{/* Benefit points */}
<div className="mt-5 pt-4 border-t border-slate-100 space-y-2.5">
{uc.benefits.map((b, bIdx) => (
<div key={bIdx} className="flex items-center gap-2 text-xs text-slate-700 font-medium">
<CheckCircle2 className="w-3.5 h-3.5 text-blue-600 shrink-0" />
<span>{b}</span>
</div>
))}
</div>
</div>
<div className="mt-6 pt-4">
<Link
href={`/tools/${uc.toolSlug}`}
className="inline-flex items-center gap-2 text-xs font-mono font-bold text-blue-600 hover:text-blue-700 group-hover:translate-x-1 transition-all"
>
<span>Launch {uc.toolName} online</span>
<ArrowRight className="w-3.5 h-3.5" />
</Link>
</div>
</div>
);
})}
</div>
</div>
</section>
);
}