From cd98c1a483e66353f278bb2a082096a893aea1c2 Mon Sep 17 00:00:00 2001 From: vshnosngh Date: Wed, 4 Nov 2026 18:05:26 +0530 Subject: [PATCH] feat(ui): expand layout width to 1640px, fix word breaking, polish buttons and colors, implement 3 horizontal animated processing cards in how section --- src/app/globals.css | 8 +- src/components/magicui/text-animate.tsx | 72 +- src/components/sections/FaqSection.tsx | 6 +- src/components/sections/HeroSection.tsx | 32 +- .../sections/HowItWorks3DSection.tsx | 647 +++++++++++------- .../sections/RecommendedAppsSection.tsx | 30 +- .../sections/ReviewsMarqueeSection.tsx | 6 +- .../sections/ShiftableToolsGridSection.tsx | 14 +- .../sections/TrendyBentoSection.tsx | 6 +- src/components/ui/Footer.tsx | 2 +- src/components/ui/Navbar.tsx | 2 +- 11 files changed, 493 insertions(+), 332 deletions(-) diff --git a/src/app/globals.css b/src/app/globals.css index 36daea7..4b60c43 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -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; } diff --git a/src/components/magicui/text-animate.tsx b/src/components/magicui/text-animate.tsx index 15797d2..41b8a5a 100644 --- a/src/components/magicui/text-animate.tsx +++ b/src/components/magicui/text-animate.tsx @@ -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 ( - - {words.map((word, wIdx) => ( - - {Array.from(word).map((char, cIdx) => ( - - {char} - - ))} - {wIdx < words.length - 1 &&  } - - ))} - - ); - } - - // 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 ( - {segments.map((segment, index) => ( - - {segment} - {by === 'word' && index < segments.length - 1 && '\u00A0'} - + {words.map((word, wIdx) => ( + + + {by === 'character' ? ( + Array.from(word).map((char, cIdx) => ( + + {char} + + )) + ) : ( + + {word} + + )} + + {wIdx < words.length - 1 && ' '} + ))} ); diff --git a/src/components/sections/FaqSection.tsx b/src/components/sections/FaqSection.tsx index 4dbcd14..b0d3452 100644 --- a/src/components/sections/FaqSection.tsx +++ b/src/components/sections/FaqSection.tsx @@ -45,20 +45,20 @@ export function FaqSection({ return (
-
+
TRANSPARENCY & ASSURANCE
-

+

{resolvedTitle}

-

+

Everything you need to know about our browser trial and privacy guarantees. diff --git a/src/components/sections/HeroSection.tsx b/src/components/sections/HeroSection.tsx index 672a087..ac91693 100644 --- a/src/components/sections/HeroSection.tsx +++ b/src/components/sections/HeroSection.tsx @@ -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 ( -

+
{/* 1. Interactive 3D WebGL Canvas & Particle Constellation Mounted Behind Text */}
-
+
@@ -152,7 +152,7 @@ export function HeroSection({
{/* 3. Front Page Content: Flawlessly Formatted, Luxurious Typography */} -
+
{/* Subtle Elegant Pill Badge */}
@@ -171,38 +171,38 @@ export function HeroSection({
{/* Editorial High-Impact Headline (SF Pro & Poppins) */} -

+

Transform Photos with - - + + Next-Gen Neural AI

{/* Balanced, Readable Subtitle (Inter / SF Pro) */} -

+

{resolvedSubtitle}

{/* Primary and Secondary Action Buttons */} -
+ {/* Trust Badges Strip */} -
- +
+ Zero-Storage Guarantee - + Lossless 4K Export - + < 0.8s Inference @@ -229,7 +229,7 @@ export function HeroSection({ Scroll to Explore diff --git a/src/components/sections/HowItWorks3DSection.tsx b/src/components/sections/HowItWorks3DSection.tsx index f73f797..aed1a39 100644 --- a/src/components/sections/HowItWorks3DSection.tsx +++ b/src/components/sections/HowItWorks3DSection.tsx @@ -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(0); - const canvasContainerRef = useRef(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 ( -
-
+
+ {/* Background Ambience */} +
+ +
{/* Section Header */}
@@ -175,107 +47,404 @@ export function HowItWorks3DSection({ {badge}
-

+

{title}

-

+

{subtitle}

- {/* 3D Visualizer & Steps Grid */} -
- {/* Column 1: Interactive 3D Scanning Canvas */} -
-
- {/* Background Glow */} -
+ {/* 3 Horizontal Processing Cards */} +
+ {/* Card 1: Ingestion & Privacy Lock */} + - {/* Three.js Canvas Container */} -
+ {/* Card 2: Neural Processing Core */} + - {/* Status Pill on 3D Container */} -
- - ACTIVE STAGE: {steps[activeStep].title.toUpperCase()} -
+ {/* Card 3: 4K Reconstruction & Delivery */} + +
- {/* Bottom Quick Controls */} -
- {steps.map((st, sIdx) => ( - - ))} -
-
+ {/* Global Pipeline Telemetry Bar */} +
+
+ + + End-to-End Pipeline: Fully Synchronous In-Memory + + | + + Average Latency: < 780ms + + | + + Retention: 0 Seconds (Volatile Cache Only) +
- {/* Column 2: User-Friendly Step Cards */} -
- {steps.map((step, idx) => { - const Icon = step.icon; - const isActive = activeStep === idx; - - return ( -
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' - }`} - > -
-
- -
- -
-
- - PHASE {step.num} - - - {step.highlight} - -
- -

- {step.title} -

- -

- {step.desc} -

-
-
-
- ); - })} +
+ + TensorRT 10.2 Accel + + + WebGPU Ready +
); } + +// ------------------------------------------------------------- +// 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 ( +
+
+ {/* Top Badges */} +
+ + STAGE 01 + + + Zero Storage + +
+ + {/* Animated Visual Viewport */} +
+ {/* Subtle Cyber Grid */} +
+ + {/* Holographic Ingestion Frame */} +
+ {/* Sample Photo Silhouette */} +
+ +
+
+
+ + {/* Traveling Laser Scanline */} +
+
+ SCAN +
+
+
+ + {/* Floating Telemetry Tags */} +
+ + Direct RAM Lock +
+
+ Disk Write: 0 KB +
+
+ + {/* Content */} +

+ 1. Direct Ingestion & Memory Lock +

+

+ Your image streams directly into temporary volatile GPU cache memory. Zero files are ever committed to persistent disk or cloud databases, guaranteeing total privacy. +

+ + {/* Features Checklist */} +
    +
  • + + Lossless Drag & Drop intake up to 12MB +
  • +
  • + + Encrypted ephemeral memory session +
  • +
  • + + No account, credit card, or registration +
  • +
+
+ +
+ Format: RAW, PNG, JPG, WebP + < 50ms +
+
+ ); +} + +// ------------------------------------------------------------- +// 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 ( +
+
+ {/* Top Badges */} +
+ + STAGE 02 + + + Neural Vision + +
+ + {/* Animated Visual Viewport (Interactive Neural Matrix) */} +
+ {/* Neural Synapse Nodes Diagram */} +
+ {/* Layer 1: Input Features */} +
+ {[0, 1, 2].map((node) => ( +
+ +
+ ))} +
+ + {/* Connecting Synaptic Pulse Lines */} +
+
+
+
+
+
+
+
+ + {/* Layer 2: Deep Convolutional Core */} +
+ + P3M MATTING + SUB-PORE +
+ + {/* Connecting Synaptic Pulse Lines */} +
+
+
+
+
+ + {/* Layer 3: Output Latents */} +
+ {[0, 1, 2].map((node) => ( +
+ +
+ ))} +
+
+ + {/* Floating Metric Badges */} +
+ 50+ Neural Layers +
+
+ FP16 Precision +
+
+ + {/* Content */} +

+ 2. Multi-Stage Neural Processing +

+

+ Deep convolutional architectures isolate flyaway hair boundaries, smooth dermal imperfections without plastic blur, and restore authentic facial micro-textures. +

+ + {/* Features Checklist */} +
    +
  • + + Sub-pixel hair-strand P3M alpha matting +
  • +
  • + + Pore-preserving epidermal blemish removal +
  • +
  • + + Generative facial prior reconstruction +
  • +
+
+ +
+ Inference Engine: PyTorch / ONNX + < 640ms +
+
+ ); +} + +// ------------------------------------------------------------- +// 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 ( +
+
+ {/* Top Badges */} +
+ + STAGE 03 + + + Studio 4K + +
+ + {/* Animated Visual Viewport (Interactive Before/After Sweeper) */} +
+ {/* Base Image (Underneath) */} + Before + + {/* Enhanced Top Image (Clipped) */} +
+ After 4K +
+ + {/* Sweeping Laser Divider Line */} +
+
+ ↔ +
+
+ + {/* Overlay Badges */} +
+ Lossless 4K +
+
+ AFTER | BEFORE +
+
+ + {/* Content */} +

+ 3. Lossless 4K Export & Mobile Handoff +

+

+ 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. +

+ + {/* Features Checklist */} +
    +
  • + + Full 4K resolution with zero compression loss +
  • +
  • + + No watermarks, no trial paywalls +
  • +
  • + + Instant QR code handoff to iOS & Android +
  • +
+
+ +
+ Delivery: Instant Download & Mobile Sync + < 80ms +
+
+ ); +} diff --git a/src/components/sections/RecommendedAppsSection.tsx b/src/components/sections/RecommendedAppsSection.tsx index a8e4e7c..6303685 100644 --- a/src/components/sections/RecommendedAppsSection.tsx +++ b/src/components/sections/RecommendedAppsSection.tsx @@ -79,8 +79,8 @@ export function RecommendedAppsSection({ const displayApps = apps && apps.length > 0 ? apps : DEFAULT_RECOMMENDED_APPS; return ( -