feat(ui): expand layout width to 1640px, fix word breaking, polish buttons and colors, implement 3 horizontal animated processing cards in how section

This commit is contained in:
2026-11-04 18:05:26 +05:30
parent 70e13c86b6
commit cd98c1a483
11 changed files with 493 additions and 332 deletions
+7 -1
View File
@@ -12,10 +12,16 @@
--color-surface-subtle: #F5F2EB;
--color-surface-card: #FFFFFF;
--theme-radius: 20px;
--theme-max-width: 1400px;
--theme-max-width: 1680px;
--font-sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "SF Pro", "Helvetica Neue", sans-serif;
}
* {
word-break: normal;
overflow-wrap: normal;
hyphens: none;
}
html {
scroll-behavior: smooth;
}
+29 -43
View File
@@ -79,44 +79,15 @@ export function TextAnimate({
hidden: {},
show: {
transition: {
staggerChildren: by === 'character' ? 0.02 : 0.06,
staggerChildren: by === 'character' ? 0.015 : 0.05,
delayChildren: delay,
},
},
};
// If animating by character, group by words to prevent broken line wrapping!
if (by === 'character') {
const words = children.split(' ');
return (
<motion.span
variants={containerVariants}
initial="hidden"
whileInView={startOnView ? 'show' : undefined}
animate={!startOnView ? 'show' : undefined}
viewport={{ once, margin: '-20px' }}
className={`inline-block ${className}`}
>
{words.map((word, wIdx) => (
<span key={wIdx} className="inline-block whitespace-nowrap">
{Array.from(word).map((char, cIdx) => (
<motion.span
key={`${char}-${cIdx}`}
variants={itemVariant}
className="inline-block"
>
{char}
</motion.span>
))}
{wIdx < words.length - 1 && <span>&nbsp;</span>}
</span>
))}
</motion.span>
);
}
// Word or line animation
const segments = by === 'word' ? children.split(' ') : children.split('\n');
// Split text into words. Every word is guaranteed to be in an inline-block whitespace-nowrap
// wrapper so that NO WORD EVER BREAKS MID-WORD onto two lines.
const words = children.split(/\s+/).filter(Boolean);
return (
<motion.span
@@ -125,17 +96,32 @@ export function TextAnimate({
whileInView={startOnView ? 'show' : undefined}
animate={!startOnView ? 'show' : undefined}
viewport={{ once, margin: '-20px' }}
className={`inline-block ${className}`}
className={`inline ${className}`}
>
{segments.map((segment, index) => (
<motion.span
key={`${segment}-${index}`}
variants={itemVariant}
className="inline-block"
>
{segment}
{by === 'word' && index < segments.length - 1 && '\u00A0'}
</motion.span>
{words.map((word, wIdx) => (
<React.Fragment key={wIdx}>
<span className="inline-block whitespace-nowrap">
{by === 'character' ? (
Array.from(word).map((char, cIdx) => (
<motion.span
key={`${char}-${cIdx}`}
variants={itemVariant}
className="inline-block"
>
{char}
</motion.span>
))
) : (
<motion.span
variants={itemVariant}
className="inline-block"
>
{word}
</motion.span>
)}
</span>
{wIdx < words.length - 1 && ' '}
</React.Fragment>
))}
</motion.span>
);
+3 -3
View File
@@ -45,20 +45,20 @@ export function FaqSection({
return (
<section id="faq" className="py-20 sm:py-28 bg-[#FAF8F5] border-t border-slate-900/[0.06]">
<div className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="max-w-5xl mx-auto px-4 sm:px-6 md:px-8 lg:px-10">
<div className="text-center max-w-3xl mx-auto mb-14 space-y-3">
<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">
<HelpCircle className="w-3.5 h-3.5 text-blue-600" />
<span>TRANSPARENCY & ASSURANCE</span>
</div>
<h2 className="text-3xl sm:text-5xl font-display font-extrabold text-slate-900 tracking-tight">
<h2 className="text-3xl sm:text-5xl font-display font-extrabold text-slate-900 tracking-tight text-balance">
<TextAnimate animation="slideLeft" by="character">
{resolvedTitle}
</TextAnimate>
</h2>
<p className="text-sm sm:text-base text-slate-600 font-sans">
<p className="text-sm sm:text-base text-slate-600 font-sans text-pretty">
<TextAnimate animation="fadeIn" by="word" delay={0.15}>
Everything you need to know about our browser trial and privacy guarantees.
</TextAnimate>
+16 -16
View File
@@ -140,10 +140,10 @@ export function HeroSection({
// Pure Front Page View (PRD & User Requirements):
// Clean, beautifully formatted typography + interactive 3D visuals strictly behind the text
return (
<section className="relative isolate min-h-[92vh] sm:min-h-[95vh] flex flex-col justify-center items-center text-center overflow-hidden bg-[#FAF8F5] pt-24 pb-16 px-4 sm:px-6 lg:px-8">
<section className="relative isolate min-h-[92vh] sm:min-h-[95vh] flex flex-col justify-center items-center text-center overflow-hidden bg-[#FAF8F5] pt-24 pb-16 px-4 sm:px-6 md:px-8 lg:px-10">
{/* 1. Interactive 3D WebGL Canvas & Particle Constellation Mounted Behind Text */}
<div className="absolute inset-0 -z-10 flex items-center justify-center pointer-events-none select-none overflow-hidden">
<div className="w-[520px] h-[520px] sm:w-[780px] sm:h-[780px] lg:w-[980px] lg:h-[980px] opacity-70 transform-gpu transition-opacity duration-1000">
<div className="w-[580px] h-[580px] sm:w-[860px] sm:h-[860px] lg:w-[1100px] lg:h-[1100px] opacity-75 transform-gpu transition-opacity duration-1000">
<Hero3DCanvas className="w-full h-full" />
</div>
</div>
@@ -152,7 +152,7 @@ export function HeroSection({
<div
className="absolute inset-0 -z-20 pointer-events-none"
style={{
background: 'radial-gradient(circle at 50% 45%, rgba(37,99,235,0.13) 0%, rgba(14,165,233,0.07) 35%, transparent 70%)',
background: 'radial-gradient(circle at 50% 45%, rgba(37,99,235,0.14) 0%, rgba(14,165,233,0.08) 35%, transparent 70%)',
}}
/>
<div
@@ -160,7 +160,7 @@ export function HeroSection({
/>
{/* 3. Front Page Content: Flawlessly Formatted, Luxurious Typography */}
<div className="relative z-10 max-w-5xl mx-auto flex flex-col items-center justify-center">
<div className="relative z-10 max-w-6xl mx-auto flex flex-col items-center justify-center w-full">
{/* Subtle Elegant Pill Badge */}
<div className="inline-flex items-center gap-2 rounded-full border border-blue-500/20 bg-white/90 backdrop-blur-md px-4 py-1.5 text-xs font-mono font-medium tracking-wider uppercase text-blue-800 shadow-sm mb-6">
<span className="flex h-2 w-2 relative">
@@ -171,38 +171,38 @@ export function HeroSection({
</div>
{/* Editorial High-Impact Headline (SF Pro & Poppins) */}
<h1 className="text-4xl sm:text-6xl lg:text-[4.5rem] font-display font-extrabold tracking-[-0.035em] text-slate-900 leading-[1.08] max-w-4xl mx-auto text-balance">
<h1 className="text-4xl sm:text-6xl md:text-7xl lg:text-[5.25rem] font-display font-black tracking-[-0.04em] text-slate-900 leading-[1.05] max-w-5xl mx-auto text-balance">
<span className="block text-slate-900">
<TextAnimate animation="slideLeft" by="character">
Transform Photos with
</TextAnimate>
</span>
<span className="block mt-2 text-blue-600">
<TextAnimate animation="slideLeft" by="character" delay={0.25}>
<span className="block mt-2 text-blue-600 font-extrabold">
<TextAnimate animation="slideLeft" by="character" delay={0.2}>
Next-Gen Neural AI
</TextAnimate>
</span>
</h1>
{/* Balanced, Readable Subtitle (Inter / SF Pro) */}
<p className="mt-6 text-base sm:text-lg lg:text-xl text-slate-600 max-w-2xl mx-auto font-sans leading-relaxed text-balance">
<p className="mt-6 text-base sm:text-lg lg:text-xl text-slate-600 max-w-3xl mx-auto font-sans leading-relaxed text-pretty">
<TextAnimate animation="fadeIn" by="word" delay={0.25}>
{resolvedSubtitle}
</TextAnimate>
</p>
{/* Primary and Secondary Action Buttons */}
<div className="mt-9 flex flex-wrap items-center justify-center gap-3.5">
<div className="mt-10 flex flex-wrap items-center justify-center gap-4">
<a
href={primaryCtaHref}
className="group inline-flex items-center gap-2.5 rounded-full bg-slate-950 px-8 py-3.5 text-xs sm:text-sm font-bold text-white shadow-lg shadow-slate-900/15 transition-all duration-300 hover:scale-105 hover:bg-blue-600 active:scale-95"
className="group inline-flex items-center gap-3 rounded-full bg-gradient-to-r from-slate-950 via-slate-900 to-indigo-950 px-8 py-4 text-xs sm:text-sm font-bold text-white border border-white/15 shadow-xl shadow-slate-900/20 transition-all duration-300 hover:scale-[1.03] hover:from-blue-600 hover:to-indigo-600 active:scale-95"
>
<span>{primaryCtaLabel}</span>
<ArrowDown className="w-4 h-4 transition-transform group-hover:translate-y-0.5" />
</a>
<a
href={secondaryCtaHref}
className="inline-flex items-center gap-2 rounded-full border border-slate-300/90 bg-white/80 backdrop-blur-md px-7 py-3.5 text-xs sm:text-sm font-semibold text-slate-800 shadow-sm transition-all duration-300 hover:scale-105 hover:bg-white active:scale-95"
className="inline-flex items-center gap-2.5 rounded-full border border-slate-300/80 bg-white/90 backdrop-blur-md px-7 py-4 text-xs sm:text-sm font-semibold text-slate-800 shadow-sm transition-all duration-300 hover:scale-[1.03] hover:border-blue-400 hover:text-blue-600 hover:bg-white active:scale-95"
>
<Smartphone className="w-4 h-4 text-blue-600" />
<span>{secondaryCtaLabel}</span>
@@ -210,16 +210,16 @@ export function HeroSection({
</div>
{/* Trust Badges Strip */}
<div className="mt-8 flex flex-wrap items-center justify-center gap-x-6 gap-y-2 text-xs font-medium text-slate-500 font-sans">
<span className="inline-flex items-center gap-1.5">
<div className="mt-9 flex flex-wrap items-center justify-center gap-3 sm:gap-4 text-xs font-medium text-slate-600 font-sans">
<span className="inline-flex items-center gap-1.5 px-3.5 py-1.5 rounded-full bg-white/80 border border-slate-200/70 shadow-sm">
<ShieldCheck className="h-4 w-4 text-emerald-600" />
<span>Zero-Storage Guarantee</span>
</span>
<span className="inline-flex items-center gap-1.5">
<span className="inline-flex items-center gap-1.5 px-3.5 py-1.5 rounded-full bg-white/80 border border-slate-200/70 shadow-sm">
<Check className="h-4 w-4 text-blue-600" />
<span>Lossless 4K Export</span>
</span>
<span className="inline-flex items-center gap-1.5">
<span className="inline-flex items-center gap-1.5 px-3.5 py-1.5 rounded-full bg-white/80 border border-slate-200/70 shadow-sm">
<Zap className="h-4 w-4 text-amber-500" />
<span>&lt; 0.8s Inference</span>
</span>
@@ -229,7 +229,7 @@ export function HeroSection({
<a
href="#our-tools"
aria-label="Scroll to our tools"
className="mt-12 inline-flex flex-col items-center gap-1.5 text-[11px] font-mono uppercase tracking-widest text-slate-600 hover:text-blue-600 transition-colors"
className="mt-14 inline-flex flex-col items-center gap-1.5 text-[11px] font-mono uppercase tracking-widest text-slate-500 hover:text-blue-600 transition-colors"
>
<span>Scroll to Explore</span>
<span className="w-4 h-7 rounded-full border border-slate-300 flex justify-center p-1">
+408 -239
View File
@@ -1,8 +1,21 @@
'use client';
import React, { useState, useEffect, useRef } from 'react';
import * as THREE from 'three';
import { UploadCloud, Cpu, Download, Sparkles, CheckCircle2, ArrowRight } from 'lucide-react';
import React, { useState, useEffect } from 'react';
import {
UploadCloud,
Cpu,
Download,
Sparkles,
CheckCircle2,
ShieldCheck,
Zap,
Layers,
Scan,
FileCheck2,
ArrowRight,
Sliders,
Smartphone
} from 'lucide-react';
import { TextAnimate } from '@/components/magicui/text-animate';
interface HowItWorks3DSectionProps {
@@ -12,162 +25,21 @@ interface HowItWorks3DSectionProps {
}
export function HowItWorks3DSection({
title = 'How It Works',
badge = '3-STEP NEURAL PROCESS',
subtitle = 'From your browser to studio-grade 4K output in less than a second.',
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.',
}: HowItWorks3DSectionProps) {
const [activeStep, setActiveStep] = useState<number>(0);
const canvasContainerRef = useRef<HTMLDivElement>(null);
const steps = [
{
num: '01',
icon: UploadCloud,
title: 'Upload Your Photo',
desc: 'Select or drag any JPG, PNG, or WebP photo up to 12MB. No sign-up or credit card required.',
highlight: 'Lossless Drag & Drop',
},
{
num: '02',
icon: Cpu,
title: 'Neural AI Processing',
desc: 'Our high-performance vision models run sub-pore inference in under 800ms directly in session memory.',
highlight: 'Zero Data Retention',
},
{
num: '03',
icon: Download,
title: 'Download 4K Result',
desc: 'Get your full-resolution enhanced image instantly or scan the QR code to open in the native mobile app.',
highlight: 'Instant HD Download',
},
];
// Auto-advance steps every 4 seconds unless user clicked
useEffect(() => {
const timer = setInterval(() => {
setActiveStep((prev) => (prev + 1) % steps.length);
}, 4500);
return () => clearInterval(timer);
}, [steps.length]);
// 3D Canvas Visualizer
useEffect(() => {
const container = canvasContainerRef.current;
if (!container) return;
let width = container.clientWidth || 400;
let height = container.clientHeight || 340;
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(40, width / height, 0.1, 100);
camera.position.z = 4.8;
let renderer: THREE.WebGLRenderer | null = null;
try {
renderer = new THREE.WebGLRenderer({ alpha: true, antialias: true });
renderer.setSize(width, height);
renderer.setPixelRatio(Math.min(window.devicePixelRatio || 1, 2));
container.appendChild(renderer.domElement);
} catch {
return;
}
// Floating Holographic Photo Card
const cardGeo = new THREE.PlaneGeometry(2.4, 1.8, 16, 16);
const cardMat = new THREE.MeshStandardMaterial({
color: 0x2563eb,
metalness: 0.2,
roughness: 0.3,
transparent: true,
opacity: 0.9,
side: THREE.DoubleSide,
});
const cardMesh = new THREE.Mesh(cardGeo, cardMat);
scene.add(cardMesh);
// Glowing Scanning Laser Bar
const scanBarGeo = new THREE.BoxGeometry(0.04, 2.0, 0.08);
const scanBarMat = new THREE.MeshBasicMaterial({ color: 0x38bdf8 });
const scanBar = new THREE.Mesh(scanBarGeo, scanBarMat);
scene.add(scanBar);
// Surrounding Neural Data Particles
const particleCount = 45;
const particleGeo = new THREE.BufferGeometry();
const particlePositions = new Float32Array(particleCount * 3);
for (let i = 0; i < particleCount * 3; i += 3) {
particlePositions[i] = (Math.random() - 0.5) * 5;
particlePositions[i + 1] = (Math.random() - 0.5) * 4;
particlePositions[i + 2] = (Math.random() - 0.5) * 2;
}
particleGeo.setAttribute('position', new THREE.BufferAttribute(particlePositions, 3));
const particleMat = new THREE.PointsMaterial({
color: 0x93c5fd,
size: 0.05,
transparent: true,
opacity: 0.8,
});
const particlePoints = new THREE.Points(particleGeo, particleMat);
scene.add(particlePoints);
// Lighting
const ambLight = new THREE.AmbientLight(0xffffff, 1.2);
scene.add(ambLight);
const dirLight = new THREE.DirectionalLight(0x60a5fa, 2.0);
dirLight.position.set(3, 4, 3);
scene.add(dirLight);
let animId = 0;
let clock = new THREE.Clock();
const animate = () => {
animId = requestAnimationFrame(animate);
const elapsed = clock.getElapsedTime();
// Card gentle floating tilt
cardMesh.rotation.y = Math.sin(elapsed * 0.8) * 0.18;
cardMesh.rotation.x = Math.cos(elapsed * 0.6) * 0.08;
cardMesh.position.y = Math.sin(elapsed * 1.2) * 0.08;
// Scanning bar sweeps back and forth
scanBar.position.x = Math.sin(elapsed * 1.8) * 1.25;
scanBar.position.y = cardMesh.position.y;
scanBar.rotation.y = cardMesh.rotation.y;
// Particles orbit
particlePoints.rotation.y = elapsed * 0.1;
if (renderer) renderer.render(scene, camera);
};
animate();
const handleResize = () => {
if (!container || !renderer) return;
const w = container.clientWidth;
const h = container.clientHeight;
camera.aspect = w / h;
camera.updateProjectionMatrix();
renderer.setSize(w, h);
};
window.addEventListener('resize', handleResize);
return () => {
cancelAnimationFrame(animId);
window.removeEventListener('resize', handleResize);
if (renderer && renderer.domElement && container.contains(renderer.domElement)) {
container.removeChild(renderer.domElement);
}
renderer?.dispose();
};
}, []);
return (
<section id="how-it-works" className="py-20 sm:py-28 px-4 sm:px-6 lg:px-8 bg-[#FAF8F5] relative overflow-hidden border-t border-slate-900/[0.06]">
<div className="max-w-7xl mx-auto space-y-14">
<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">
{/* 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">
@@ -175,107 +47,404 @@ export function HowItWorks3DSection({
<span>{badge}</span>
</div>
<h2 className="text-3xl sm:text-5xl font-display font-extrabold text-slate-900 tracking-tight">
<h2 className="text-3xl sm:text-5xl font-display font-extrabold text-slate-900 tracking-tight text-balance">
<TextAnimate animation="slideLeft" by="character">
{title}
</TextAnimate>
</h2>
<p className="text-sm sm:text-base text-slate-600 font-sans">
<p className="text-sm sm:text-base text-slate-600 font-sans text-pretty">
<TextAnimate animation="fadeIn" by="word" delay={0.2}>
{subtitle}
</TextAnimate>
</p>
</div>
{/* 3D Visualizer & Steps Grid */}
<div className="grid grid-cols-1 lg:grid-cols-12 gap-10 items-center">
{/* Column 1: Interactive 3D Scanning Canvas */}
<div className="lg:col-span-6 relative flex flex-col items-center">
<div className="relative w-full h-[360px] sm:h-[420px] rounded-3xl bg-slate-950 border border-slate-800 shadow-2xl overflow-hidden flex items-center justify-center p-4">
{/* Background Glow */}
<div className="absolute inset-0 bg-[radial-gradient(circle_at_50%_50%,rgba(37,99,235,0.25),transparent_70%)] pointer-events-none" />
{/* 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 />
{/* Three.js Canvas Container */}
<div ref={canvasContainerRef} className="w-full h-full relative z-10" />
{/* Card 2: Neural Processing Core */}
<NeuralCoreCard />
{/* Status Pill on 3D Container */}
<div className="absolute top-4 left-4 z-20 flex items-center gap-2 px-3 py-1.5 rounded-full bg-slate-900/90 border border-slate-700/80 backdrop-blur-md text-[11px] font-mono text-cyan-400">
<span className="w-2 h-2 rounded-full bg-cyan-400 animate-ping" />
<span>ACTIVE STAGE: {steps[activeStep].title.toUpperCase()}</span>
</div>
{/* Card 3: 4K Reconstruction & Delivery */}
<ReconstructionCard />
</div>
{/* Bottom Quick Controls */}
<div className="absolute bottom-4 inset-x-4 z-20 flex justify-center gap-2">
{steps.map((st, sIdx) => (
<button
key={sIdx}
onClick={() => setActiveStep(sIdx)}
className={`px-3 py-1 rounded-full text-xs font-mono transition-all ${
activeStep === sIdx
? 'bg-blue-600 text-white font-bold shadow-md'
: 'bg-slate-900/80 text-slate-400 hover:text-white border border-slate-800'
}`}
>
Step {st.num}
</button>
))}
</div>
</div>
{/* 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: &lt; 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>
</div>
{/* Column 2: User-Friendly Step Cards */}
<div className="lg:col-span-6 space-y-4">
{steps.map((step, idx) => {
const Icon = step.icon;
const isActive = activeStep === idx;
return (
<div
key={idx}
onClick={() => setActiveStep(idx)}
className={`cursor-pointer rounded-2xl p-6 transition-all duration-300 border ${
isActive
? 'bg-white border-blue-500 shadow-cream-md scale-[1.02]'
: 'bg-white/60 border-slate-200/80 hover:bg-white hover:border-slate-300'
}`}
>
<div className="flex items-start gap-4">
<div
className={`w-12 h-12 rounded-xl flex items-center justify-center flex-shrink-0 transition-colors ${
isActive
? 'bg-blue-600 text-white shadow-md shadow-blue-500/25'
: 'bg-slate-100 text-slate-600'
}`}
>
<Icon className="w-5 h-5" />
</div>
<div className="flex-1">
<div className="flex items-center justify-between">
<span className="text-xs font-mono font-bold text-blue-600">
PHASE {step.num}
</span>
<span className="text-[10px] font-mono font-semibold px-2 py-0.5 rounded bg-blue-50 text-blue-700 border border-blue-200">
{step.highlight}
</span>
</div>
<h3 className="text-base sm:text-lg font-display font-bold text-slate-900 mt-1">
{step.title}
</h3>
<p className="text-xs sm:text-sm text-slate-600 mt-1.5 leading-relaxed font-sans">
{step.desc}
</p>
</div>
</div>
</div>
);
})}
<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>
</div>
</div>
</div>
</section>
);
}
// -------------------------------------------------------------
// 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">&lt; 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">&lt; 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">&lt; 80ms</span>
</div>
</div>
);
}
@@ -79,8 +79,8 @@ export function RecommendedAppsSection({
const displayApps = apps && apps.length > 0 ? apps : DEFAULT_RECOMMENDED_APPS;
return (
<section id="recommended-apps" className="py-20 sm:py-28 px-4 sm:px-6 lg:px-8 bg-[#FAF8F5] relative overflow-hidden border-t border-slate-900/[0.06]">
<div className="max-w-7xl mx-auto space-y-12">
<section id="recommended-apps" 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]">
<div className="max-w-[1640px] mx-auto space-y-12">
{/* Section Header with MagicUI TextAnimate */}
<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">
@@ -94,7 +94,7 @@ export function RecommendedAppsSection({
</TextAnimate>
</h2>
<p className="text-sm sm:text-base text-slate-600 font-sans">
<p className="text-sm sm:text-base text-slate-600 font-sans text-pretty">
<TextAnimate animation="fadeIn" by="word" delay={0.2}>
{subtitle}
</TextAnimate>
@@ -102,7 +102,7 @@ export function RecommendedAppsSection({
</div>
{/* 4 App Cards Grid */}
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 sm:gap-8">
{displayApps.map((app: any) => {
const name = typeof app.name === 'string' ? app.name : resolveLocalised(app.name, locale);
const tagline = typeof app.tagline === 'string' ? app.tagline : resolveLocalised(app.tagline, locale);
@@ -113,15 +113,15 @@ export function RecommendedAppsSection({
return (
<div
key={slug}
className="group relative flex flex-col justify-between rounded-3xl bg-white border border-slate-200/90 p-6 shadow-cream-sm hover:shadow-cream-lg transition-all duration-300 hover:-translate-y-1 hover:border-blue-400/60"
className="group relative flex flex-col justify-between rounded-3xl bg-white border border-slate-200/90 p-7 shadow-cream-sm hover:shadow-cream-lg transition-all duration-300 hover:-translate-y-1 hover:border-blue-400/60"
>
<div>
{/* Top App Icon & Rating */}
<div className="flex items-center justify-between mb-5">
<div className={`w-13 h-13 w-12 h-12 rounded-2xl bg-gradient-to-br ${gradient} flex items-center justify-center text-white shadow-md shadow-blue-500/20 group-hover:scale-110 transition-transform`}>
<div className={`w-12 h-12 rounded-2xl bg-gradient-to-br ${gradient} flex items-center justify-center text-white shadow-md shadow-blue-500/20 group-hover:scale-110 transition-transform`}>
<Smartphone className="w-6 h-6 text-white" />
</div>
<div className="flex items-center gap-1 px-2.5 py-1 rounded-full bg-amber-50 border border-amber-200/80 text-amber-800 text-xs font-bold">
<div className="flex items-center gap-1 px-3 py-1 rounded-full bg-amber-50 border border-amber-200/80 text-amber-800 text-xs font-bold">
<Star className="w-3.5 h-3.5 fill-amber-400 text-amber-400" />
<span>{ratingValue}</span>
</div>
@@ -131,22 +131,22 @@ export function RecommendedAppsSection({
<h3 className="text-lg font-display font-bold text-slate-900 group-hover:text-blue-600 transition-colors">
{name}
</h3>
<p className="mt-1 text-xs text-slate-500 leading-relaxed min-h-[32px]">
<p className="mt-1.5 text-xs text-slate-500 leading-relaxed min-h-[34px]">
{tagline}
</p>
{/* Platforms & Free bonus badge */}
<div className="mt-4 flex flex-wrap items-center gap-1.5 text-[11px] font-mono text-slate-600">
<span className="px-2 py-0.5 rounded bg-slate-100 font-semibold">iOS</span>
<span className="px-2 py-0.5 rounded bg-slate-100 font-semibold">Android</span>
<span className="px-2 py-0.5 rounded bg-emerald-50 text-emerald-700 font-semibold border border-emerald-200">
<div className="mt-4 flex flex-wrap items-center gap-2 text-[11px] font-mono text-slate-600">
<span className="px-2.5 py-0.5 rounded-md bg-slate-100 font-semibold text-slate-700">iOS</span>
<span className="px-2.5 py-0.5 rounded-md bg-slate-100 font-semibold text-slate-700">Android</span>
<span className="px-2.5 py-0.5 rounded-md bg-emerald-50 text-emerald-700 font-semibold border border-emerald-200">
50 Credits Bonus
</span>
</div>
{/* Bullet Highlights */}
{app.features && (
<ul className="mt-4 space-y-1.5 text-xs text-slate-600 border-t border-slate-100 pt-3">
<ul className="mt-5 space-y-2 text-xs text-slate-600 border-t border-slate-100 pt-4">
{app.features.map((feat: string, fIdx: number) => (
<li key={fIdx} className="flex items-center gap-2">
<CheckCircle2 className="w-3.5 h-3.5 text-blue-600 flex-shrink-0" />
@@ -158,10 +158,10 @@ export function RecommendedAppsSection({
</div>
{/* Bottom Action Button */}
<div className="pt-6 mt-4 border-t border-slate-100">
<div className="pt-6 mt-5 border-t border-slate-100">
<Link
href={`/apps/${slug}`}
className="w-full flex items-center justify-center gap-2 py-3 rounded-xl text-xs font-bold text-slate-800 bg-slate-100 hover:bg-blue-600 hover:text-white transition-all group-hover:bg-blue-600 group-hover:text-white"
className="w-full flex items-center justify-center gap-2 py-3.5 rounded-xl text-xs font-bold text-white bg-slate-950 group-hover:bg-blue-600 transition-all duration-300 shadow-sm group-hover:shadow-md"
>
<span>Get App & QR Code</span>
<ArrowRight className="w-3.5 h-3.5 transition-transform group-hover:translate-x-1" />
@@ -96,7 +96,7 @@ export function ReviewsMarqueeSection({
}: ReviewsMarqueeSectionProps) {
return (
<section id="user-reviews" className="py-20 sm:py-28 bg-[#FAF8F5] relative overflow-hidden border-t border-slate-900/[0.06]">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 space-y-12">
<div className="max-w-[1640px] mx-auto px-4 sm:px-6 md:px-8 lg:px-10 space-y-12">
{/* 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">
@@ -104,13 +104,13 @@ export function ReviewsMarqueeSection({
<span>{badge}</span>
</div>
<h2 className="text-3xl sm:text-5xl font-display font-extrabold text-slate-900 tracking-tight">
<h2 className="text-3xl sm:text-5xl font-display font-extrabold text-slate-900 tracking-tight text-balance">
<TextAnimate animation="slideLeft" by="character">
{title}
</TextAnimate>
</h2>
<p className="text-sm sm:text-base text-slate-600 font-sans">
<p className="text-sm sm:text-base text-slate-600 font-sans text-pretty">
<TextAnimate animation="fadeIn" by="word" delay={0.2}>
{subtitle}
</TextAnimate>
@@ -103,8 +103,8 @@ export function ShiftableToolsGridSection({
const row2 = displayItems.slice(4, 8);
return (
<section id="our-tools" className="py-20 sm:py-28 px-4 sm:px-6 lg:px-8 bg-[#FAF8F5] relative overflow-hidden">
<div className="max-w-7xl mx-auto space-y-12">
<section id="our-tools" className="py-20 sm:py-28 px-4 sm:px-6 md:px-8 lg:px-10 bg-[#FAF8F5] relative overflow-hidden">
<div className="max-w-[1640px] mx-auto space-y-12">
{/* 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">
@@ -113,12 +113,12 @@ export function ShiftableToolsGridSection({
</div>
<h2 className="text-3xl sm:text-5xl font-display font-extrabold text-slate-900 tracking-tight">
<TextAnimate animation="slideLeft" by="word">
<TextAnimate animation="slideLeft" by="character">
{title}
</TextAnimate>
</h2>
<p className="text-sm sm:text-base text-slate-600 font-sans">
<p className="text-sm sm:text-base text-slate-600 font-sans text-pretty">
<TextAnimate animation="fadeIn" by="word" delay={0.2}>
{subtitle}
</TextAnimate>
@@ -135,7 +135,7 @@ export function ShiftableToolsGridSection({
<div className="pt-6 text-center">
<Link
href="/tools"
className="group inline-flex items-center gap-2.5 px-8 py-4 rounded-full font-bold text-xs sm:text-sm text-white bg-slate-950 hover:bg-blue-600 shadow-md shadow-slate-900/10 transition-all duration-300 hover:scale-105 active:scale-95"
className="group inline-flex items-center gap-2.5 px-8 py-4 rounded-full font-bold text-xs sm:text-sm text-white bg-gradient-to-r from-slate-950 via-slate-900 to-indigo-950 hover:from-blue-600 hover:to-indigo-600 border border-white/10 shadow-lg shadow-slate-900/15 transition-all duration-300 hover:scale-105 active:scale-95"
>
<span>See More Tools</span>
<ArrowRight className="w-4 h-4 transition-transform group-hover:translate-x-1" />
@@ -150,7 +150,7 @@ function ShiftableRow({ items }: { items: ToolMediaItem[] }) {
const [hoveredId, setHoveredId] = useState<string | null>(null);
return (
<div className="flex flex-col md:flex-row gap-4 sm:gap-5 w-full items-start">
<div className="flex flex-col md:flex-row gap-4 sm:gap-6 w-full items-start">
{items.map((item) => {
const isHovered = hoveredId === item.id;
const hasOtherHovered = hoveredId !== null && !isHovered;
@@ -173,7 +173,7 @@ function ShiftableRow({ items }: { items: ToolMediaItem[] }) {
{/* Window Container with strictly locked pixel height to eliminate any vertical resizing */}
<Link
href={`/tools/${item.slug}`}
className="group block relative w-full h-[260px] sm:h-[300px] rounded-2xl sm:rounded-3xl overflow-hidden bg-slate-950 border border-slate-900/[0.08] shadow-cream-sm hover:shadow-cream-lg transition-shadow duration-500"
className="group block relative w-full h-[280px] sm:h-[320px] lg:h-[340px] rounded-2xl sm:rounded-3xl overflow-hidden bg-slate-950 border border-slate-900/[0.08] shadow-cream-sm hover:shadow-cream-lg transition-shadow duration-500"
>
{/* Media Renderer */}
<ToolWindowMedia item={item} isHovered={isHovered} />
@@ -124,8 +124,8 @@ export function TrendyBentoSection({
];
return (
<section id="trendy-effects" className="py-20 sm:py-28 px-4 sm:px-6 lg:px-8 bg-[#FAF8F5] relative overflow-hidden border-t border-slate-900/[0.06]">
<div className="max-w-7xl mx-auto space-y-12">
<section id="trendy-effects" 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]">
<div className="max-w-[1640px] mx-auto space-y-12">
{/* 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">
@@ -139,7 +139,7 @@ export function TrendyBentoSection({
</TextAnimate>
</h2>
<p className="text-sm sm:text-base text-slate-600 font-sans">
<p className="text-sm sm:text-base text-slate-600 font-sans text-pretty">
<TextAnimate animation="fadeIn" by="word" delay={0.2}>
{subtitle}
</TextAnimate>
+1 -1
View File
@@ -15,7 +15,7 @@ export function Footer({ config, currentLocale }: FooterProps) {
{/* Subtle ambient light */}
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-3/4 h-24 bg-gradient-to-b from-blue-500/5 to-transparent blur-2xl pointer-events-none" />
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16 lg:py-24 relative z-10">
<div className="max-w-[1640px] mx-auto px-4 sm:px-6 md:px-8 lg:px-10 py-16 lg:py-24 relative z-10">
<div className="grid grid-cols-1 md:grid-cols-4 gap-12">
{/* Brand & Mission */}
<div className="md:col-span-2 space-y-5">
+1 -1
View File
@@ -58,7 +58,7 @@ export function Navbar({ config, currentLocale }: NavbarProps) {
{/* 3. Main Aligned Edge-to-Edge Navigation Bar */}
<div className={`relative z-30 pointer-events-auto transition-all duration-300 ${isScrolled ? 'py-3' : 'py-3.5 sm:py-4'}`}>
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex items-center justify-between">
<div className="max-w-[1640px] mx-auto px-4 sm:px-6 lg:px-10 flex items-center justify-between">
{/* Brand Logo */}
<div className="relative z-20 flex-shrink-0">
<BrandLogo size="md" />