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

217 lines
9.7 KiB
TypeScript

'use client';
import React from 'react';
import Link from 'next/link';
import { Sparkles, ArrowRight, Smartphone, CheckCircle2, Zap, Cpu, ShieldCheck } from 'lucide-react';
import { BeforeAfterSlider } from '@/components/ui/BeforeAfterSlider';
import { TiltCard } from '@/components/ui/TiltCard';
interface FlagshipBanner {
id: string;
badge: string;
model: string;
latency: string;
title: string;
tagline: string;
description: string;
toolSlug: string;
appSlug: string;
appName: string;
beforeUrl: string;
afterUrl: string;
benefits: string[];
align: 'left' | 'right';
}
const flagshipBanners: FlagshipBanner[] = [
{
id: 'matting',
badge: 'HAIR & ALPHA MATTING',
model: 'P3M-Net Dual-Stream Alpha',
latency: '< 520ms Stream',
title: 'Hair-Strand Matting & Instant Cutout',
tagline: 'Sub-pixel edge alpha isolation with zero halo artifacts.',
description: 'Trained on high-resolution studio portraits, P3M-Net isolates individual flyaway hair strands, fur, and translucent fabrics without halo artifacts or jagged edges. Streams transparent alpha PNGs in real-time.',
toolSlug: 'background-remover',
appSlug: 'bg-cleaner-app',
appName: 'Magic Cutout Studio',
beforeUrl: '/management/pages/home/media/showcase_01_alpha_before.jpg',
afterUrl: '/management/pages/home/media/showcase_01_alpha_after.jpg',
benefits: [
'Sub-pixel flyaway hair detection',
'Crisp alpha transparent background export',
'Zero edge bleeding or color fringes',
],
align: 'left',
},
{
id: 'retouch',
badge: 'DERMAL SKIN RETOUCHING',
model: 'RetouchGAN v2.1 Micro-Pore',
latency: '< 380ms Stream',
title: 'Sub-Pore Skin Retouching & Blemish Removal',
tagline: 'Natural texture preservation without artificial plastic smoothing.',
description: 'Unlike standard beauty filters that smear your face into plastic, RetouchGAN operates at the dermal level—erasing blemishes, redness, and discoloration while reconstructing microscopic skin pore geometry.',
toolSlug: 'blemish-remover',
appSlug: 'portrait-app',
appName: 'Portrait Studio AI',
beforeUrl: '/management/pages/home/media/showcase_02_portrait_before.jpg',
afterUrl: '/management/pages/home/media/showcase_02_portrait_after.jpg',
benefits: [
'Microscopic skin pore texture retained',
'Instant blemish, scar & discoloration repair',
'Authentic skin tone & micro-pore retention',
],
align: 'right',
},
{
id: 'enhancer',
badge: '4K RESOLUTION RESTORATION',
model: 'GFPGAN + RealESRGAN Ultra',
latency: '< 460ms Stream',
title: '4K Super-Resolution & Facial Deblurring',
tagline: 'Transform low-resolution snapshots into crystal-clear 4K portraits.',
description: 'Deep neural priors restore authentic iris sharpness, eyelash detail, and facial contours on blurry, out-of-focus, or highly compressed photos, yielding gallery-ready clarity with zero guesswork.',
toolSlug: 'photo-enhancer',
appSlug: 'photo-enhancer-pro',
appName: 'Enhance Ultra AI',
beforeUrl: '/management/pages/home/media/showcase_03_superres_before.jpg',
afterUrl: '/management/pages/home/media/showcase_03_superres_after.jpg',
benefits: [
'Iris clarity & sharp eyelash synthesis',
'400% lossless resolution upscaling',
'Studio-grade portrait iris & eyelash clarity',
],
align: 'left',
},
];
export function MajorToolBannersSection() {
return (
<section id="flagship-models" 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">
{/* Section Header */}
<div className="text-center max-w-3xl mx-auto mb-16 sm:mb-24 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 shadow-sm">
<Sparkles className="w-3.5 h-3.5 text-blue-600" />
<span>PRECISION AI SHOWCASE</span>
</div>
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-display font-black text-slate-900 tracking-tight">
Next-Generation <span className="text-transparent bg-clip-text bg-gradient-to-r from-blue-700 via-indigo-600 to-purple-600">Transformations in Action</span>
</h2>
<p className="text-base sm:text-lg text-slate-600 font-normal">
See how our neural models enhance portraits, isolate fine details, and restore clarity with interactive comparisons.
</p>
</div>
{/* Flagship Banners Stack */}
<div className="space-y-16 lg:space-y-24 max-w-6xl mx-auto">
{flagshipBanners.map((banner, idx) => {
const isSliderLeft = banner.align === 'right';
return (
<TiltCard
key={banner.id}
maxTilt={2.5}
scale={1.008}
showGlare={true}
className="rounded-3xl"
>
<div className="bg-white rounded-3xl p-8 sm:p-12 lg:p-14 border border-slate-900/[0.08] shadow-cream-md hover:shadow-cream-lg transition-all duration-300">
<div className="grid grid-cols-1 lg:grid-cols-12 gap-10 lg:gap-14 items-center">
{/* If slider is on left */}
{isSliderLeft && (
<div className="lg:col-span-6 order-2 lg:order-1">
<BeforeAfterSlider
beforeUrl={banner.beforeUrl}
afterUrl={banner.afterUrl}
beforeLabel="Raw Input"
afterLabel="CRE AI Output"
aspectRatio="aspect-[4/3] sm:aspect-[16/11]"
autoSlide={true}
/>
</div>
)}
{/* Text Details Column */}
<div className={`lg:col-span-6 space-y-6 ${isSliderLeft ? 'order-1 lg:order-2' : ''}`}>
<div className="flex flex-wrap items-center gap-2.5">
<span className="text-xs font-mono font-bold tracking-widest text-blue-700 bg-blue-50 border border-blue-200 px-3 py-1 rounded-full">
{banner.badge}
</span>
<span className="inline-flex items-center gap-1.5 text-xs font-mono font-semibold text-slate-700 bg-slate-100 border border-slate-200 px-3 py-1 rounded-full">
<Cpu className="w-3.5 h-3.5 text-blue-600" />
<span>{banner.model}</span>
</span>
<span className="text-xs font-mono font-semibold text-emerald-800 bg-emerald-50 border border-emerald-200 px-2.5 py-1 rounded-full">
{banner.latency}
</span>
</div>
<div className="space-y-2">
<h3 className="text-2xl sm:text-3xl lg:text-4xl font-display font-black text-slate-900 tracking-tight leading-tight">
{banner.title}
</h3>
<p className="text-sm sm:text-base font-semibold text-blue-700">
{banner.tagline}
</p>
</div>
<p className="text-sm text-slate-600 leading-relaxed font-normal">
{banner.description}
</p>
{/* Feature Points */}
<div className="space-y-2.5 pt-2">
{banner.benefits.map((benefit, bIdx) => (
<div key={bIdx} className="flex items-center gap-3 text-xs sm:text-sm text-slate-700 font-medium">
<CheckCircle2 className="w-4 h-4 text-blue-600 shrink-0" />
<span>{benefit}</span>
</div>
))}
</div>
{/* Action Buttons */}
<div className="pt-4 flex flex-wrap items-center gap-3.5">
<Link
href={`/tools/${banner.toolSlug}`}
className="inline-flex items-center gap-2 px-6 py-3.5 rounded-full text-xs sm:text-sm font-bold text-white bg-blue-600 hover:bg-blue-700 shadow-sm shadow-blue-500/25 transition-all duration-200 hover:-translate-y-0.5"
>
<span>Launch Tool Online</span>
<ArrowRight className="w-4 h-4" />
</Link>
<Link
href={`/apps/${banner.appSlug}`}
className="inline-flex items-center gap-2 px-5 py-3.5 rounded-full text-xs sm:text-sm font-bold text-slate-700 bg-slate-100 border border-slate-200 hover:bg-slate-200 transition-colors"
>
<Smartphone className="w-4 h-4 text-blue-600" />
<span>Get in {banner.appName}</span>
</Link>
</div>
</div>
{/* If slider is on right */}
{!isSliderLeft && (
<div className="lg:col-span-6">
<BeforeAfterSlider
beforeUrl={banner.beforeUrl}
afterUrl={banner.afterUrl}
beforeLabel="Raw Input"
afterLabel="CRE AI Output"
aspectRatio="aspect-[4/3] sm:aspect-[16/11]"
autoSlide={true}
/>
</div>
)}
</div>
</div>
</TiltCard>
);
})}
</div>
</div>
</section>
);
}