2026-11-04 17:55:18 +05:30
|
|
|
'use client';
|
|
|
|
|
|
2026-11-04 18:05:26 +05:30
|
|
|
import React, { useState, useEffect } from 'react';
|
|
|
|
|
import {
|
|
|
|
|
UploadCloud,
|
|
|
|
|
Cpu,
|
|
|
|
|
Download,
|
|
|
|
|
Sparkles,
|
|
|
|
|
CheckCircle2,
|
|
|
|
|
ShieldCheck,
|
|
|
|
|
Zap,
|
|
|
|
|
Layers,
|
|
|
|
|
Scan,
|
|
|
|
|
FileCheck2,
|
|
|
|
|
ArrowRight,
|
|
|
|
|
Sliders,
|
|
|
|
|
Smartphone
|
|
|
|
|
} from 'lucide-react';
|
2026-11-04 17:55:18 +05:30
|
|
|
import { TextAnimate } from '@/components/magicui/text-animate';
|
|
|
|
|
|
|
|
|
|
interface HowItWorks3DSectionProps {
|
|
|
|
|
title?: string;
|
|
|
|
|
badge?: string;
|
|
|
|
|
subtitle?: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function HowItWorks3DSection({
|
2026-11-04 18:05:26 +05:30
|
|
|
title = 'How CRE Innovations Processes Images',
|
|
|
|
|
badge = 'THREE-STAGE NEURAL PIPELINE',
|
|
|
|
|
subtitle = 'From raw browser ingestion to lossless 4K neural reconstruction in under 800 milliseconds.',
|
2026-11-04 17:55:18 +05:30
|
|
|
}: HowItWorks3DSectionProps) {
|
|
|
|
|
return (
|
2026-11-04 18:05:26 +05:30
|
|
|
<section id="how-it-works" className="py-20 sm:py-28 px-4 sm:px-6 md:px-8 lg:px-10 bg-[#FAF8F5] relative overflow-hidden border-t border-slate-900/[0.06]">
|
|
|
|
|
{/* Background Ambience */}
|
|
|
|
|
<div
|
|
|
|
|
className="absolute inset-0 pointer-events-none -z-10"
|
|
|
|
|
style={{
|
|
|
|
|
background: 'radial-gradient(circle at 50% 20%, rgba(37,99,235,0.04) 0%, transparent 60%)',
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<div className="max-w-[1640px] mx-auto space-y-14">
|
2026-11-04 17:55:18 +05:30
|
|
|
{/* Section Header */}
|
|
|
|
|
<div className="text-center max-w-3xl mx-auto space-y-4">
|
|
|
|
|
<div className="inline-flex items-center gap-2 px-3.5 py-1 rounded-full text-xs font-mono font-semibold tracking-wider uppercase text-blue-700 bg-blue-50 border border-blue-200">
|
|
|
|
|
<Sparkles className="w-3.5 h-3.5 text-blue-600" />
|
|
|
|
|
<span>{badge}</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-11-04 18:05:26 +05:30
|
|
|
<h2 className="text-3xl sm:text-5xl font-display font-extrabold text-slate-900 tracking-tight text-balance">
|
2026-11-04 17:55:18 +05:30
|
|
|
<TextAnimate animation="slideLeft" by="character">
|
|
|
|
|
{title}
|
|
|
|
|
</TextAnimate>
|
|
|
|
|
</h2>
|
|
|
|
|
|
2026-11-04 18:05:26 +05:30
|
|
|
<p className="text-sm sm:text-base text-slate-600 font-sans text-pretty">
|
2026-11-04 17:55:18 +05:30
|
|
|
<TextAnimate animation="fadeIn" by="word" delay={0.2}>
|
|
|
|
|
{subtitle}
|
|
|
|
|
</TextAnimate>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-11-04 18:05:26 +05:30
|
|
|
{/* 3 Horizontal Processing Cards */}
|
|
|
|
|
<div className="grid grid-cols-1 lg:grid-cols-3 gap-6 sm:gap-8 items-stretch">
|
|
|
|
|
{/* Card 1: Ingestion & Privacy Lock */}
|
|
|
|
|
<IngestionCard />
|
2026-11-04 17:55:18 +05:30
|
|
|
|
2026-11-04 18:05:26 +05:30
|
|
|
{/* Card 2: Neural Processing Core */}
|
|
|
|
|
<NeuralCoreCard />
|
2026-11-04 17:55:18 +05:30
|
|
|
|
2026-11-04 18:05:26 +05:30
|
|
|
{/* Card 3: 4K Reconstruction & Delivery */}
|
|
|
|
|
<ReconstructionCard />
|
|
|
|
|
</div>
|
2026-11-04 17:55:18 +05:30
|
|
|
|
2026-11-04 18:05:26 +05:30
|
|
|
{/* Global Pipeline Telemetry Bar */}
|
|
|
|
|
<div className="rounded-2xl bg-white border border-slate-200/80 p-5 sm:p-6 shadow-sm flex flex-col md:flex-row items-center justify-between gap-4 text-xs font-mono">
|
|
|
|
|
<div className="flex flex-wrap items-center gap-3 sm:gap-6 text-slate-700">
|
|
|
|
|
<span className="flex items-center gap-2">
|
|
|
|
|
<span className="w-2 h-2 rounded-full bg-emerald-500 animate-pulse" />
|
|
|
|
|
<strong className="text-slate-900 font-semibold">End-to-End Pipeline:</strong> Fully Synchronous In-Memory
|
|
|
|
|
</span>
|
|
|
|
|
<span className="hidden sm:inline text-slate-300">|</span>
|
|
|
|
|
<span className="flex items-center gap-1.5 text-slate-600">
|
|
|
|
|
<Zap className="w-3.5 h-3.5 text-amber-500" /> Average Latency: < 780ms
|
|
|
|
|
</span>
|
|
|
|
|
<span className="hidden sm:inline text-slate-300">|</span>
|
|
|
|
|
<span className="flex items-center gap-1.5 text-slate-600">
|
|
|
|
|
<ShieldCheck className="w-3.5 h-3.5 text-emerald-600" /> Retention: 0 Seconds (Volatile Cache Only)
|
|
|
|
|
</span>
|
2026-11-04 17:55:18 +05:30
|
|
|
</div>
|
|
|
|
|
|
2026-11-04 18:05:26 +05:30
|
|
|
<div className="flex items-center gap-2">
|
|
|
|
|
<span className="px-3 py-1 rounded-full bg-blue-50 text-blue-700 font-bold border border-blue-200">
|
|
|
|
|
TensorRT 10.2 Accel
|
|
|
|
|
</span>
|
|
|
|
|
<span className="px-3 py-1 rounded-full bg-slate-100 text-slate-700 font-bold border border-slate-200">
|
|
|
|
|
WebGPU Ready
|
|
|
|
|
</span>
|
2026-11-04 17:55:18 +05:30
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
);
|
|
|
|
|
}
|
2026-11-04 18:05:26 +05:30
|
|
|
|
|
|
|
|
// -------------------------------------------------------------
|
|
|
|
|
// Card 1: Intelligent Browser Ingestion & Privacy Lock
|
|
|
|
|
// -------------------------------------------------------------
|
|
|
|
|
function IngestionCard() {
|
|
|
|
|
const [scanY, setScanY] = useState(20);
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
const interval = setInterval(() => {
|
|
|
|
|
setScanY((prev) => (prev > 80 ? 15 : prev + 3));
|
|
|
|
|
}, 60);
|
|
|
|
|
return () => clearInterval(interval);
|
|
|
|
|
}, []);
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className="group relative flex flex-col justify-between rounded-3xl bg-white border border-slate-200/90 p-6 sm:p-7 shadow-cream-sm hover:shadow-cream-lg transition-all duration-300 hover:-translate-y-1 hover:border-blue-400/60">
|
|
|
|
|
<div>
|
|
|
|
|
{/* Top Badges */}
|
|
|
|
|
<div className="flex items-center justify-between mb-4">
|
|
|
|
|
<span className="px-3 py-1 rounded-full bg-blue-50 border border-blue-200 text-blue-700 text-xs font-mono font-bold tracking-wider uppercase">
|
|
|
|
|
STAGE 01
|
|
|
|
|
</span>
|
|
|
|
|
<span className="text-[11px] font-mono text-emerald-600 bg-emerald-50 px-2.5 py-0.5 rounded-full border border-emerald-200 flex items-center gap-1 font-semibold">
|
|
|
|
|
<ShieldCheck className="w-3 h-3" /> Zero Storage
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Animated Visual Viewport */}
|
|
|
|
|
<div className="relative w-full h-[220px] rounded-2xl bg-slate-950 border border-slate-800 overflow-hidden flex items-center justify-center p-4 select-none">
|
|
|
|
|
{/* Subtle Cyber Grid */}
|
|
|
|
|
<div
|
|
|
|
|
className="absolute inset-0 opacity-20 pointer-events-none"
|
|
|
|
|
style={{
|
|
|
|
|
backgroundImage: 'radial-gradient(circle, rgba(59,130,246,0.3) 1px, transparent 1px)',
|
|
|
|
|
backgroundSize: '16px 16px',
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
{/* Holographic Ingestion Frame */}
|
|
|
|
|
<div className="relative w-36 h-44 rounded-xl border border-blue-500/40 bg-slate-900/80 shadow-2xl overflow-hidden flex flex-col items-center justify-center p-3">
|
|
|
|
|
{/* Sample Photo Silhouette */}
|
|
|
|
|
<div className="w-16 h-16 rounded-full bg-gradient-to-tr from-blue-600/30 to-indigo-500/30 border border-blue-400/30 flex items-center justify-center mb-2">
|
|
|
|
|
<UploadCloud className="w-7 h-7 text-blue-400 animate-pulse" />
|
|
|
|
|
</div>
|
|
|
|
|
<div className="w-20 h-2 rounded bg-slate-800" />
|
|
|
|
|
<div className="w-14 h-1.5 rounded bg-slate-800/60 mt-1.5" />
|
|
|
|
|
|
|
|
|
|
{/* Traveling Laser Scanline */}
|
|
|
|
|
<div
|
|
|
|
|
className="absolute inset-x-0 h-0.5 bg-gradient-to-r from-transparent via-cyan-400 to-transparent shadow-[0_0_12px_rgba(6,182,212,0.9)] pointer-events-none transition-all duration-75"
|
|
|
|
|
style={{ top: `${scanY}%` }}
|
|
|
|
|
>
|
|
|
|
|
<div className="absolute right-2 -top-2 px-1.5 py-0.5 rounded text-[8px] font-mono font-bold bg-cyan-500/80 text-black">
|
|
|
|
|
SCAN
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Floating Telemetry Tags */}
|
|
|
|
|
<div className="absolute top-3 left-3 px-2 py-0.5 rounded bg-slate-900/90 border border-slate-800 text-[10px] font-mono text-cyan-400 flex items-center gap-1.5">
|
|
|
|
|
<span className="w-1.5 h-1.5 rounded-full bg-cyan-400 animate-ping" />
|
|
|
|
|
Direct RAM Lock
|
|
|
|
|
</div>
|
|
|
|
|
<div className="absolute bottom-3 right-3 px-2 py-0.5 rounded bg-slate-900/90 border border-slate-800 text-[10px] font-mono text-emerald-400">
|
|
|
|
|
Disk Write: 0 KB
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Content */}
|
|
|
|
|
<h3 className="mt-5 text-xl font-display font-bold text-slate-900 group-hover:text-blue-600 transition-colors">
|
|
|
|
|
1. Direct Ingestion & Memory Lock
|
|
|
|
|
</h3>
|
|
|
|
|
<p className="mt-2 text-xs text-slate-600 leading-relaxed font-sans">
|
|
|
|
|
Your image streams directly into temporary volatile GPU cache memory. Zero files are ever committed to persistent disk or cloud databases, guaranteeing total privacy.
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
{/* Features Checklist */}
|
|
|
|
|
<ul className="mt-4 space-y-2 text-xs text-slate-600 border-t border-slate-100 pt-4">
|
|
|
|
|
<li className="flex items-center gap-2">
|
|
|
|
|
<CheckCircle2 className="w-3.5 h-3.5 text-blue-600 flex-shrink-0" />
|
|
|
|
|
<span>Lossless Drag & Drop intake up to 12MB</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li className="flex items-center gap-2">
|
|
|
|
|
<CheckCircle2 className="w-3.5 h-3.5 text-blue-600 flex-shrink-0" />
|
|
|
|
|
<span>Encrypted ephemeral memory session</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li className="flex items-center gap-2">
|
|
|
|
|
<CheckCircle2 className="w-3.5 h-3.5 text-blue-600 flex-shrink-0" />
|
|
|
|
|
<span>No account, credit card, or registration</span>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="mt-6 pt-4 border-t border-slate-100 text-[11px] font-mono text-slate-500 flex items-center justify-between">
|
|
|
|
|
<span>Format: RAW, PNG, JPG, WebP</span>
|
|
|
|
|
<span className="font-bold text-blue-600">< 50ms</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// -------------------------------------------------------------
|
|
|
|
|
// Card 2: Neural AI Vision Engine & Feature Matting
|
|
|
|
|
// -------------------------------------------------------------
|
|
|
|
|
function NeuralCoreCard() {
|
|
|
|
|
const [pulseIdx, setPulseIdx] = useState(0);
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
const timer = setInterval(() => {
|
|
|
|
|
setPulseIdx((prev) => (prev + 1) % 6);
|
|
|
|
|
}, 450);
|
|
|
|
|
return () => clearInterval(timer);
|
|
|
|
|
}, []);
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className="group relative flex flex-col justify-between rounded-3xl bg-white border border-slate-200/90 p-6 sm:p-7 shadow-cream-sm hover:shadow-cream-lg transition-all duration-300 hover:-translate-y-1 hover:border-blue-400/60">
|
|
|
|
|
<div>
|
|
|
|
|
{/* Top Badges */}
|
|
|
|
|
<div className="flex items-center justify-between mb-4">
|
|
|
|
|
<span className="px-3 py-1 rounded-full bg-indigo-50 border border-indigo-200 text-indigo-700 text-xs font-mono font-bold tracking-wider uppercase">
|
|
|
|
|
STAGE 02
|
|
|
|
|
</span>
|
|
|
|
|
<span className="text-[11px] font-mono text-indigo-600 bg-indigo-50 px-2.5 py-0.5 rounded-full border border-indigo-200 flex items-center gap-1 font-semibold">
|
|
|
|
|
<Cpu className="w-3 h-3" /> Neural Vision
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Animated Visual Viewport (Interactive Neural Matrix) */}
|
|
|
|
|
<div className="relative w-full h-[220px] rounded-2xl bg-slate-950 border border-slate-800 overflow-hidden flex items-center justify-center p-4 select-none">
|
|
|
|
|
{/* Neural Synapse Nodes Diagram */}
|
|
|
|
|
<div className="relative w-full h-full flex items-center justify-around px-2">
|
|
|
|
|
{/* Layer 1: Input Features */}
|
|
|
|
|
<div className="flex flex-col gap-3">
|
|
|
|
|
{[0, 1, 2].map((node) => (
|
|
|
|
|
<div
|
|
|
|
|
key={node}
|
|
|
|
|
className={`w-6 h-6 rounded-full border flex items-center justify-center transition-all duration-300 ${
|
|
|
|
|
pulseIdx % 3 === node
|
|
|
|
|
? 'border-cyan-400 bg-cyan-500/30 shadow-[0_0_10px_rgba(6,182,212,0.8)] scale-110'
|
|
|
|
|
: 'border-slate-700 bg-slate-900 text-slate-500'
|
|
|
|
|
}`}
|
|
|
|
|
>
|
|
|
|
|
<span className="w-1.5 h-1.5 rounded-full bg-cyan-400" />
|
|
|
|
|
</div>
|
|
|
|
|
))}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Connecting Synaptic Pulse Lines */}
|
|
|
|
|
<div className="flex-1 flex flex-col justify-around h-3/4 mx-2">
|
|
|
|
|
<div className="w-full h-px bg-gradient-to-r from-cyan-500/40 via-blue-500 to-indigo-500/40 relative">
|
|
|
|
|
<div
|
|
|
|
|
className="absolute top-1/2 -translate-y-1/2 w-2 h-2 rounded-full bg-white shadow-[0_0_8px_#fff] transition-all duration-500"
|
|
|
|
|
style={{ left: `${(pulseIdx * 20) % 100}%` }}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="w-full h-px bg-gradient-to-r from-cyan-500/40 via-indigo-500 to-purple-500/40 relative">
|
|
|
|
|
<div
|
|
|
|
|
className="absolute top-1/2 -translate-y-1/2 w-2 h-2 rounded-full bg-cyan-300 shadow-[0_0_8px_#06b6d4] transition-all duration-500"
|
|
|
|
|
style={{ left: `${((pulseIdx + 2) * 20) % 100}%` }}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Layer 2: Deep Convolutional Core */}
|
|
|
|
|
<div className="relative w-24 h-24 rounded-2xl border border-indigo-500/40 bg-indigo-950/40 backdrop-blur flex flex-col items-center justify-center p-2 shadow-2xl">
|
|
|
|
|
<Scan className="w-8 h-8 text-indigo-400 animate-spin" style={{ animationDuration: '8s' }} />
|
|
|
|
|
<span className="mt-1 text-[8px] font-mono font-bold text-indigo-300">P3M MATTING</span>
|
|
|
|
|
<span className="text-[7px] font-mono text-cyan-400">SUB-PORE</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Connecting Synaptic Pulse Lines */}
|
|
|
|
|
<div className="flex-1 flex flex-col justify-around h-3/4 mx-2">
|
|
|
|
|
<div className="w-full h-px bg-gradient-to-r from-indigo-500/40 via-purple-500 to-pink-500/40 relative">
|
|
|
|
|
<div
|
|
|
|
|
className="absolute top-1/2 -translate-y-1/2 w-2 h-2 rounded-full bg-indigo-300 shadow-[0_0_8px_#818cf8] transition-all duration-500"
|
|
|
|
|
style={{ left: `${((pulseIdx + 1) * 20) % 100}%` }}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Layer 3: Output Latents */}
|
|
|
|
|
<div className="flex flex-col gap-3">
|
|
|
|
|
{[0, 1, 2].map((node) => (
|
|
|
|
|
<div
|
|
|
|
|
key={node}
|
|
|
|
|
className={`w-6 h-6 rounded-full border flex items-center justify-center transition-all duration-300 ${
|
|
|
|
|
(pulseIdx + 1) % 3 === node
|
|
|
|
|
? 'border-purple-400 bg-purple-500/30 shadow-[0_0_10px_rgba(168,85,247,0.8)] scale-110'
|
|
|
|
|
: 'border-slate-700 bg-slate-900 text-slate-500'
|
|
|
|
|
}`}
|
|
|
|
|
>
|
|
|
|
|
<span className="w-1.5 h-1.5 rounded-full bg-purple-400" />
|
|
|
|
|
</div>
|
|
|
|
|
))}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Floating Metric Badges */}
|
|
|
|
|
<div className="absolute top-3 left-3 px-2 py-0.5 rounded bg-slate-900/90 border border-slate-800 text-[10px] font-mono text-indigo-400">
|
|
|
|
|
50+ Neural Layers
|
|
|
|
|
</div>
|
|
|
|
|
<div className="absolute bottom-3 right-3 px-2 py-0.5 rounded bg-slate-900/90 border border-slate-800 text-[10px] font-mono text-cyan-400">
|
|
|
|
|
FP16 Precision
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Content */}
|
|
|
|
|
<h3 className="mt-5 text-xl font-display font-bold text-slate-900 group-hover:text-blue-600 transition-colors">
|
|
|
|
|
2. Multi-Stage Neural Processing
|
|
|
|
|
</h3>
|
|
|
|
|
<p className="mt-2 text-xs text-slate-600 leading-relaxed font-sans">
|
|
|
|
|
Deep convolutional architectures isolate flyaway hair boundaries, smooth dermal imperfections without plastic blur, and restore authentic facial micro-textures.
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
{/* Features Checklist */}
|
|
|
|
|
<ul className="mt-4 space-y-2 text-xs text-slate-600 border-t border-slate-100 pt-4">
|
|
|
|
|
<li className="flex items-center gap-2">
|
|
|
|
|
<CheckCircle2 className="w-3.5 h-3.5 text-blue-600 flex-shrink-0" />
|
|
|
|
|
<span>Sub-pixel hair-strand P3M alpha matting</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li className="flex items-center gap-2">
|
|
|
|
|
<CheckCircle2 className="w-3.5 h-3.5 text-blue-600 flex-shrink-0" />
|
|
|
|
|
<span>Pore-preserving epidermal blemish removal</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li className="flex items-center gap-2">
|
|
|
|
|
<CheckCircle2 className="w-3.5 h-3.5 text-blue-600 flex-shrink-0" />
|
|
|
|
|
<span>Generative facial prior reconstruction</span>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="mt-6 pt-4 border-t border-slate-100 text-[11px] font-mono text-slate-500 flex items-center justify-between">
|
|
|
|
|
<span>Inference Engine: PyTorch / ONNX</span>
|
|
|
|
|
<span className="font-bold text-indigo-600">< 640ms</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// -------------------------------------------------------------
|
|
|
|
|
// Card 3: 4K Reconstruction, Instant Download & Mobile Handoff
|
|
|
|
|
// -------------------------------------------------------------
|
|
|
|
|
function ReconstructionCard() {
|
|
|
|
|
const [sliderX, setSliderX] = useState(50);
|
|
|
|
|
|
|
|
|
|
// Gentle automatic sweep of before/after
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
let forward = true;
|
|
|
|
|
const interval = setInterval(() => {
|
|
|
|
|
setSliderX((prev) => {
|
|
|
|
|
if (prev >= 75) forward = false;
|
|
|
|
|
if (prev <= 25) forward = true;
|
|
|
|
|
return forward ? prev + 1 : prev - 1;
|
|
|
|
|
});
|
|
|
|
|
}, 45);
|
|
|
|
|
return () => clearInterval(interval);
|
|
|
|
|
}, []);
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className="group relative flex flex-col justify-between rounded-3xl bg-white border border-slate-200/90 p-6 sm:p-7 shadow-cream-sm hover:shadow-cream-lg transition-all duration-300 hover:-translate-y-1 hover:border-blue-400/60">
|
|
|
|
|
<div>
|
|
|
|
|
{/* Top Badges */}
|
|
|
|
|
<div className="flex items-center justify-between mb-4">
|
|
|
|
|
<span className="px-3 py-1 rounded-full bg-emerald-50 border border-emerald-200 text-emerald-700 text-xs font-mono font-bold tracking-wider uppercase">
|
|
|
|
|
STAGE 03
|
|
|
|
|
</span>
|
|
|
|
|
<span className="text-[11px] font-mono text-blue-600 bg-blue-50 px-2.5 py-0.5 rounded-full border border-blue-200 flex items-center gap-1 font-semibold">
|
|
|
|
|
<Sparkles className="w-3 h-3" /> Studio 4K
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Animated Visual Viewport (Interactive Before/After Sweeper) */}
|
|
|
|
|
<div className="relative w-full h-[220px] rounded-2xl bg-slate-950 border border-slate-800 overflow-hidden select-none">
|
|
|
|
|
{/* Base Image (Underneath) */}
|
|
|
|
|
<img
|
|
|
|
|
src="/management/pages/home/media/reel_restore_before.jpg"
|
|
|
|
|
alt="Before"
|
|
|
|
|
className="absolute inset-0 w-full h-full object-cover filter blur-[1px] brightness-90"
|
|
|
|
|
loading="lazy"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
{/* Enhanced Top Image (Clipped) */}
|
|
|
|
|
<div
|
|
|
|
|
className="absolute inset-0 overflow-hidden"
|
|
|
|
|
style={{ width: `${sliderX}%` }}
|
|
|
|
|
>
|
|
|
|
|
<img
|
|
|
|
|
src="/management/pages/home/media/reel_restore_after.jpg"
|
|
|
|
|
alt="After 4K"
|
|
|
|
|
className="absolute inset-0 w-full h-full object-cover max-w-none filter contrast-105"
|
|
|
|
|
style={{ width: '100%', height: '100%' }}
|
|
|
|
|
loading="lazy"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Sweeping Laser Divider Line */}
|
|
|
|
|
<div
|
|
|
|
|
className="absolute top-0 bottom-0 w-0.5 bg-white shadow-[0_0_12px_rgba(255,255,255,1)] pointer-events-none"
|
|
|
|
|
style={{ left: `${sliderX}%` }}
|
|
|
|
|
>
|
|
|
|
|
<div className="absolute top-1/2 -translate-y-1/2 -translate-x-1/2 w-6 h-6 rounded-full bg-white shadow-lg flex items-center justify-center text-[10px] font-bold text-slate-900 border border-slate-300">
|
|
|
|
|
↔
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Overlay Badges */}
|
|
|
|
|
<div className="absolute top-3 left-3 px-2 py-0.5 rounded bg-black/70 backdrop-blur text-[10px] font-mono font-bold text-emerald-400 border border-emerald-500/30 flex items-center gap-1">
|
|
|
|
|
<Sparkles className="w-3 h-3 text-emerald-400" /> Lossless 4K
|
|
|
|
|
</div>
|
|
|
|
|
<div className="absolute bottom-3 right-3 px-2 py-0.5 rounded bg-black/70 backdrop-blur text-[10px] font-mono font-bold text-white/90">
|
|
|
|
|
AFTER | BEFORE
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* Content */}
|
|
|
|
|
<h3 className="mt-5 text-xl font-display font-bold text-slate-900 group-hover:text-blue-600 transition-colors">
|
|
|
|
|
3. Lossless 4K Export & Mobile Handoff
|
|
|
|
|
</h3>
|
|
|
|
|
<p className="mt-2 text-xs text-slate-600 leading-relaxed font-sans">
|
|
|
|
|
The finished image is rendered instantly at maximum native fidelity. Save directly to your camera roll or scan the QR code to open inside the native mobile apps.
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
{/* Features Checklist */}
|
|
|
|
|
<ul className="mt-4 space-y-2 text-xs text-slate-600 border-t border-slate-100 pt-4">
|
|
|
|
|
<li className="flex items-center gap-2">
|
|
|
|
|
<CheckCircle2 className="w-3.5 h-3.5 text-blue-600 flex-shrink-0" />
|
|
|
|
|
<span>Full 4K resolution with zero compression loss</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li className="flex items-center gap-2">
|
|
|
|
|
<CheckCircle2 className="w-3.5 h-3.5 text-blue-600 flex-shrink-0" />
|
|
|
|
|
<span>No watermarks, no trial paywalls</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li className="flex items-center gap-2">
|
|
|
|
|
<CheckCircle2 className="w-3.5 h-3.5 text-blue-600 flex-shrink-0" />
|
|
|
|
|
<span>Instant QR code handoff to iOS & Android</span>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="mt-6 pt-4 border-t border-slate-100 text-[11px] font-mono text-slate-500 flex items-center justify-between">
|
|
|
|
|
<span>Delivery: Instant Download & Mobile Sync</span>
|
|
|
|
|
<span className="font-bold text-emerald-600">< 80ms</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|