From b47b033ab7bbb8fb87fbdf6c35f0bad6b4f6b758 Mon Sep 17 00:00:00 2001 From: vshnosngh Date: Tue, 3 Nov 2026 18:06:20 +0530 Subject: [PATCH] feat(ui): complete vertical layout overhaul, dynamic JSON banners, and animate-ui text motion graphics --- content/pages/home.json | 62 ++- package-lock.json | 43 ++ package.json | 1 + src/app/globals.css | 38 ++ .../animate-ui/AnimatedGradientText.tsx | 38 ++ src/components/animate-ui/BorderBeam.tsx | 47 ++ src/components/animate-ui/MorphingText.tsx | 50 ++ .../animate-ui/MotionTextReveal.tsx | 93 ++++ src/components/animate-ui/NumberCounter.tsx | 74 +++ src/components/animate-ui/ShimmerBadge.tsx | 35 ++ src/components/animate-ui/ShimmerButton.tsx | 47 ++ src/components/animate-ui/SpotlightCard.tsx | 67 +++ src/components/animate-ui/TextReveal.tsx | 44 ++ src/components/animate-ui/TypingText.tsx | 65 +++ .../CinematicHorizontalScrollSection.tsx | 525 +++++++----------- src/components/sections/HeroSection.tsx | 86 ++- src/components/sections/SectionRenderer.tsx | 4 +- src/components/sections/StatsSection.tsx | 29 +- .../sections/TransformationReelSection.tsx | 360 ++++++++---- .../sections/VerticalToolStackSection.tsx | 200 ++++--- src/components/ui/BeforeAfterSlider.tsx | 2 +- src/components/ui/Cinematic3DComparison.tsx | 88 ++- src/components/ui/Navbar.tsx | 19 +- src/components/ui/SmoothScroll.tsx | 10 +- 24 files changed, 1419 insertions(+), 608 deletions(-) create mode 100644 src/components/animate-ui/AnimatedGradientText.tsx create mode 100644 src/components/animate-ui/BorderBeam.tsx create mode 100644 src/components/animate-ui/MorphingText.tsx create mode 100644 src/components/animate-ui/MotionTextReveal.tsx create mode 100644 src/components/animate-ui/NumberCounter.tsx create mode 100644 src/components/animate-ui/ShimmerBadge.tsx create mode 100644 src/components/animate-ui/ShimmerButton.tsx create mode 100644 src/components/animate-ui/SpotlightCard.tsx create mode 100644 src/components/animate-ui/TextReveal.tsx create mode 100644 src/components/animate-ui/TypingText.tsx diff --git a/content/pages/home.json b/content/pages/home.json index 2f723d6..a64d555 100644 --- a/content/pages/home.json +++ b/content/pages/home.json @@ -46,7 +46,67 @@ { "id": "flagship-banners", "type": "majorToolBanners", - "props": {} + "props": { + "title": "Interactive Model Showcase", + "badge": "FLAGSHIP TRANSFORMATION MODELS", + "subtitle": "Scroll down to seamlessly explore next-generation neural engines in real-time.", + "items": [ + { + "id": "alpha-matting", + "index": "01 / 03", + "tabLabel": "01 ALPHA", + "category": "FINE MATTING & CUTOUT", + "model": "P3M-Net Dual-Stream Alpha", + "latency": "< 520ms Stream", + "title": "Hair-Strand Matting & Alpha Isolation", + "tagline": "Sub-pixel hair strands, transparent veils, and motion blur cutout.", + "description": "Proprietary dual-stream deep neural network isolates fine flyaway hair, complex textures, and semi-transparent boundaries in studio portraits with pixel-level precision.", + "variant": "comparison", + "beforeUrl": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80", + "afterUrl": "https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=800&auto=format&fit=crop&q=80", + "toolSlug": "background-remover", + "appSlug": "bg-cleaner-app", + "appName": "Magic Cutout", + "specs": ["0.02px edge preservation", "Alpha PNG lossless stream", "Studio hair detail"] + }, + { + "id": "editorial-portrait-banner", + "index": "02 / 03", + "tabLabel": "02 BANNER", + "category": "STUDIO PRO BANNER", + "model": "RetouchGAN v2.1 Prime", + "latency": "< 380ms Stream", + "title": "Editorial Portrait Engine Pro", + "tagline": "Next-generation sub-pore epidermal synthesis.", + "description": "Transform commercial model photography with authentic skin pore preservation. Retain real freckles, iris glints, and fine texture with zero plastic artificial blur.", + "variant": "banner", + "bannerImage": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=1200&auto=format&fit=crop&q=80", + "bannerBadge": "PRO EDITION • LOSSLESS FP16", + "toolSlug": "blemish-remover", + "appSlug": "portrait-app", + "appName": "Portrait Studio AI", + "specs": ["Sub-pore texture matrix", "Authentic epidermal micro-details", "Lossless 4K color gamut"] + }, + { + "id": "super-resolution", + "index": "03 / 03", + "tabLabel": "03 4K", + "category": "4K SUPER-RESOLUTION", + "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.", + "variant": "comparison", + "beforeUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80", + "afterUrl": "https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=800&auto=format&fit=crop&q=80", + "toolSlug": "photo-enhancer", + "appSlug": "photo-enhancer-pro", + "appName": "Enhance Ultra AI", + "specs": ["Iris & eyelash synthesis", "400% lossless super-resolution", "Studio-grade crispness"] + } + ] + } }, { "id": "tools-vertical-stack", diff --git a/package-lock.json b/package-lock.json index fc4ceda..f282415 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "dependencies": { "@types/three": "^0.187.0", "clsx": "^2.1.1", + "framer-motion": "^14.9.0", "lenis": "^1.3.27", "lucide-react": "^0.468.0", "next": "^14.2.15", @@ -1933,6 +1934,33 @@ "url": "https://github.com/sponsors/rawify" } }, + "node_modules/framer-motion": { + "version": "14.9.0", + "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-14.9.0.tgz", + "integrity": "sha512-g1hZu8WoTwgsoVAaqEEcefhvR03cKGtkmrKaRrWpXhnM3LGR8jl1u2qyJ1PMVlO7LKQHE8TTRQYUlMmnrY4L+g==", + "license": "MIT", + "dependencies": { + "motion-dom": "14.9.0", + "motion-utils": "14.7.0", + "tslib": "^2.4.0" + }, + "peerDependencies": { + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0", + "remix": "^3.1.0" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + }, + "react-dom": { + "optional": true + }, + "remix": { + "optional": true + } + } + }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", @@ -2217,6 +2245,21 @@ "node": ">=8.6" } }, + "node_modules/motion-dom": { + "version": "14.9.0", + "resolved": "https://registry.npmjs.org/motion-dom/-/motion-dom-14.9.0.tgz", + "integrity": "sha512-wGjKbNDMHd75aLStkxLCKZ+T8/wusZHklmNLK1Ak68UrdBt2X8I4yweYR/0WonxGnBsw6oloDTIV8pN+UTvzzA==", + "license": "MIT", + "dependencies": { + "motion-utils": "14.7.0" + } + }, + "node_modules/motion-utils": { + "version": "14.7.0", + "resolved": "https://registry.npmjs.org/motion-utils/-/motion-utils-14.7.0.tgz", + "integrity": "sha512-woO0/Nb7ys75f94fjvQi/6leiHGvZUYkeHUPEZ3vxsV+9OpEVhkxp01x8MlRwX0zt31EqgXsKDAoBoJLC148Tw==", + "license": "MIT" + }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", diff --git a/package.json b/package.json index 7987951..7601f66 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "dependencies": { "@types/three": "^0.187.0", "clsx": "^2.1.1", + "framer-motion": "^14.9.0", "lenis": "^1.3.27", "lucide-react": "^0.468.0", "next": "^14.2.15", diff --git a/src/app/globals.css b/src/app/globals.css index 8796ea9..ac26eec 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -214,6 +214,44 @@ animation: shimmer 3s infinite; } +@keyframes gradient-flow { + 0% { + background-position: 0% 50%; + } + 50% { + background-position: 100% 50%; + } + 100% { + background-position: 0% 50%; + } +} + +@keyframes shimmer-slide { + 0% { + transform: translateX(-100%); + } + 100% { + transform: translateX(100%); + } +} + +@keyframes border-beam { + 100% { + offset-distance: 100%; + } +} + +.animate-border-beam { + animation: border-beam var(--duration) infinite linear; +} + +/* Pixelcut Typography & Sub-Pixel Crisp Font Rendering */ +body, h1, h2, h3, h4, p, span, button { + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + text-rendering: optimizeLegibility; +} + /* Clean Minimalist Warm Scrollbar */ ::-webkit-scrollbar { width: 7px; diff --git a/src/components/animate-ui/AnimatedGradientText.tsx b/src/components/animate-ui/AnimatedGradientText.tsx new file mode 100644 index 0000000..086b3fa --- /dev/null +++ b/src/components/animate-ui/AnimatedGradientText.tsx @@ -0,0 +1,38 @@ +'use client'; + +import React from 'react'; +import { motion } from 'framer-motion'; + +interface AnimatedGradientTextProps { + children: React.ReactNode; + className?: string; + gradientColors?: string; + duration?: number; +} + +/** + * Animate UI - Animated Gradient Text + * Liquid animated flowing color gradient text. + * Reference: https://animate-ui.com/docs + */ +export function AnimatedGradientText({ + children, + className = '', + gradientColors = 'linear-gradient(90deg, #1d4ed8 0%, #4338ca 25%, #7c3aed 50%, #d97706 75%, #1d4ed8 100%)', + duration = 6, +}: AnimatedGradientTextProps) { + return ( + + {children} + + ); +} diff --git a/src/components/animate-ui/BorderBeam.tsx b/src/components/animate-ui/BorderBeam.tsx new file mode 100644 index 0000000..1f57268 --- /dev/null +++ b/src/components/animate-ui/BorderBeam.tsx @@ -0,0 +1,47 @@ +'use client'; + +import React from 'react'; + +interface BorderBeamProps { + className?: string; + size?: number; + duration?: number; + borderWidth?: number; + anchor?: number; + colorFrom?: string; + colorTo?: string; + delay?: number; +} + +/** + * Animate UI - Border Beam + * A glowing beam of light that smoothly travels along the perimeter of a container. + * Reference: https://animate-ui.com/docs + */ +export function BorderBeam({ + className = '', + size = 200, + duration = 12, + anchor = 90, + borderWidth = 1.5, + colorFrom = '#3b82f6', + colorTo = '#a855f7', + delay = 0, +}: BorderBeamProps) { + return ( +
+ ); +} diff --git a/src/components/animate-ui/MorphingText.tsx b/src/components/animate-ui/MorphingText.tsx new file mode 100644 index 0000000..b8ea33f --- /dev/null +++ b/src/components/animate-ui/MorphingText.tsx @@ -0,0 +1,50 @@ +'use client'; + +import React, { useState, useEffect } from 'react'; +import { motion, AnimatePresence } from 'framer-motion'; + +interface MorphingTextProps { + texts: string[]; + interval?: number; + className?: string; +} + +/** + * Animate UI - Morphing Text + * Smoothly morphs and transitions between phrases using spring physics and blur filters. + * Reference: https://animate-ui.com/docs + */ +export function MorphingText({ + texts, + interval = 2800, + className = '', +}: MorphingTextProps) { + const [index, setIndex] = useState(0); + + useEffect(() => { + if (!texts || texts.length <= 1) return; + const timer = setInterval(() => { + setIndex((prev) => (prev + 1) % texts.length); + }, interval); + return () => clearInterval(timer); + }, [texts, interval]); + + if (!texts || texts.length === 0) return null; + + return ( + + + + {texts[index]} + + + + ); +} diff --git a/src/components/animate-ui/MotionTextReveal.tsx b/src/components/animate-ui/MotionTextReveal.tsx new file mode 100644 index 0000000..2bf9a25 --- /dev/null +++ b/src/components/animate-ui/MotionTextReveal.tsx @@ -0,0 +1,93 @@ +'use client'; + +import React from 'react'; +import { motion, Variants } from 'framer-motion'; + +interface MotionTextRevealProps { + text: string; + className?: string; + highlightWords?: string[]; + highlightClassName?: string; + delay?: number; + stagger?: number; + as?: 'h1' | 'h2' | 'h3' | 'h4' | 'p' | 'span'; +} + +/** + * Animate UI - Motion Text Reveal + * Staggered word-by-word 3D kinetic entrance animation with blur-to-sharp physics. + * Reference: https://animate-ui.com/docs + */ +export function MotionTextReveal({ + text, + className = '', + highlightWords = [], + highlightClassName = 'text-transparent bg-clip-text bg-gradient-to-r from-blue-700 via-indigo-600 to-purple-600', + delay = 0.1, + stagger = 0.045, + as: Component = 'span', +}: MotionTextRevealProps) { + const words = text.split(' '); + + const containerVariants: Variants = { + hidden: { opacity: 0 }, + visible: { + opacity: 1, + transition: { + staggerChildren: stagger, + delayChildren: delay, + }, + }, + }; + + const wordVariants: Variants = { + hidden: { + opacity: 0, + y: 28, + rotateX: -35, + filter: 'blur(8px)', + scale: 0.94, + }, + visible: { + opacity: 1, + y: 0, + rotateX: 0, + filter: 'blur(0px)', + scale: 1, + transition: { + type: 'spring', + damping: 18, + stiffness: 140, + mass: 0.8, + }, + }, + }; + + return ( + + {words.map((word, idx) => { + const isHighlight = highlightWords.some( + (hw) => word.toLowerCase().includes(hw.toLowerCase()) + ); + + return ( + + {word} + + ); + })} + + ); +} diff --git a/src/components/animate-ui/NumberCounter.tsx b/src/components/animate-ui/NumberCounter.tsx new file mode 100644 index 0000000..c2c4c94 --- /dev/null +++ b/src/components/animate-ui/NumberCounter.tsx @@ -0,0 +1,74 @@ +'use client'; + +import React, { useEffect, useState, useRef } from 'react'; +import { useInView } from 'framer-motion'; + +interface NumberCounterProps { + value: string; + duration?: number; + className?: string; +} + +/** + * Animate UI - Number Counter + * Smooth rolling number animation triggered when scrolled into view. + * Reference: https://animate-ui.com/docs + */ +export function NumberCounter({ + value, + duration = 1.6, + className = '', +}: NumberCounterProps) { + const ref = useRef(null); + const isInView = useInView(ref, { once: true, margin: '-40px' }); + const [displayValue, setDisplayValue] = useState('0'); + + useEffect(() => { + if (!isInView) return; + + // Extract numeric portion and prefix/suffix + const match = value.match(/^([^\d]*)([\d,.]+)([^\d]*)$/); + if (!match) { + setDisplayValue(value); + return; + } + + const prefix = match[1] || ''; + const numStr = match[2].replace(/,/g, ''); + const suffix = match[3] || ''; + const targetNum = parseFloat(numStr); + const isDecimal = numStr.includes('.'); + const decimalPlaces = isDecimal ? numStr.split('.')[1].length : 0; + + let startTime: number | null = null; + let animId: number; + + const animateCount = (timestamp: number) => { + if (!startTime) startTime = timestamp; + const progress = Math.min((timestamp - startTime) / (duration * 1000), 1); + // Ease out cubic + const easedProgress = 1 - Math.pow(1 - progress, 3); + const currentNum = targetNum * easedProgress; + + setDisplayValue( + `${prefix}${currentNum.toFixed(decimalPlaces)}${suffix}` + ); + + if (progress < 1) { + animId = requestAnimationFrame(animateCount); + } else { + setDisplayValue(value); + } + }; + + animId = requestAnimationFrame(animateCount); + + return () => cancelAnimationFrame(animId); + }, [isInView, value, duration]); + + return ( + + {isInView ? displayValue : '0'} + + ); +} diff --git a/src/components/animate-ui/ShimmerBadge.tsx b/src/components/animate-ui/ShimmerBadge.tsx new file mode 100644 index 0000000..682fc07 --- /dev/null +++ b/src/components/animate-ui/ShimmerBadge.tsx @@ -0,0 +1,35 @@ +'use client'; + +import React from 'react'; + +interface ShimmerBadgeProps { + children: React.ReactNode; + className?: string; + shimmerColor?: string; +} + +/** + * Animate UI - Shimmer Badge + * Dynamic status badge with specular sheen effect. + * Reference: https://animate-ui.com/docs + */ +export function ShimmerBadge({ + children, + className = '', + shimmerColor = 'rgba(59, 130, 246, 0.3)', +}: ShimmerBadgeProps) { + return ( +
+ {/* Moving Specular Sheen Pass */} +
+ {children} +
+ ); +} diff --git a/src/components/animate-ui/ShimmerButton.tsx b/src/components/animate-ui/ShimmerButton.tsx new file mode 100644 index 0000000..2ad9f85 --- /dev/null +++ b/src/components/animate-ui/ShimmerButton.tsx @@ -0,0 +1,47 @@ +'use client'; + +import React from 'react'; +import { motion, HTMLMotionProps } from 'framer-motion'; + +interface ShimmerButtonProps extends Omit, 'children'> { + children: React.ReactNode; + shimmerColor?: string; + shimmerDuration?: string; + borderRadius?: string; + className?: string; +} + +/** + * Animate UI - Shimmer Button + * Interactive button with dynamic specular gradient borders and spring tap physics. + * Reference: https://animate-ui.com/docs + */ +export function ShimmerButton({ + children, + shimmerColor = '#60a5fa', + shimmerDuration = '3s', + borderRadius = '9999px', + className = '', + ...props +}: ShimmerButtonProps) { + return ( + + {/* Animated Light Shimmer Pass */} + + ); +} diff --git a/src/components/animate-ui/SpotlightCard.tsx b/src/components/animate-ui/SpotlightCard.tsx new file mode 100644 index 0000000..4aaf970 --- /dev/null +++ b/src/components/animate-ui/SpotlightCard.tsx @@ -0,0 +1,67 @@ +'use client'; + +import React, { useRef } from 'react'; + +interface SpotlightCardProps { + children: React.ReactNode; + className?: string; + spotlightColor?: string; + spotlightSize?: number; +} + +/** + * Animate UI - Spotlight Card + * An interactive card that casts a subtle cursor-following radial spotlight. + * Reference: https://animate-ui.com/docs + */ +export function SpotlightCard({ + children, + className = '', + spotlightColor = 'rgba(59, 130, 246, 0.12)', + spotlightSize = 350, +}: SpotlightCardProps) { + const divRef = useRef(null); + + const handleMouseMove = (e: React.MouseEvent) => { + if (!divRef.current) return; + const rect = divRef.current.getBoundingClientRect(); + const x = e.clientX - rect.left; + const y = e.clientY - rect.top; + divRef.current.style.setProperty('--mouse-x', `${x}px`); + divRef.current.style.setProperty('--mouse-y', `${y}px`); + divRef.current.style.setProperty('--spotlight-opacity', '1'); + }; + + const handleMouseLeave = () => { + if (!divRef.current) return; + divRef.current.style.setProperty('--spotlight-opacity', '0'); + }; + + return ( +
+ {/* Dynamic Cursor Spotlight Layer */} +
+
{children}
+
+ ); +} diff --git a/src/components/animate-ui/TextReveal.tsx b/src/components/animate-ui/TextReveal.tsx new file mode 100644 index 0000000..e434125 --- /dev/null +++ b/src/components/animate-ui/TextReveal.tsx @@ -0,0 +1,44 @@ +'use client'; + +import React from 'react'; +import { motion } from 'framer-motion'; + +interface TextRevealProps { + text: string; + className?: string; + delay?: number; +} + +/** + * Animate UI - Text Reveal + * Smooth word-by-word blur-in entrance animation triggered on scroll. + * Reference: https://animate-ui.com/docs + */ +export function TextReveal({ + text, + className = '', + delay = 0, +}: TextRevealProps) { + const words = text.split(' '); + + return ( + + {words.map((word, i) => ( + + {word} + + ))} + + ); +} diff --git a/src/components/animate-ui/TypingText.tsx b/src/components/animate-ui/TypingText.tsx new file mode 100644 index 0000000..7183c2c --- /dev/null +++ b/src/components/animate-ui/TypingText.tsx @@ -0,0 +1,65 @@ +'use client'; + +import React, { useState, useEffect } from 'react'; + +interface TypingTextProps { + phrases: string[]; + typingSpeed?: number; + deletingSpeed?: number; + pauseDuration?: number; + className?: string; + cursorClassName?: string; +} + +/** + * Animate UI - Typing Text + * Character-by-character typewriter effect with a blinking, glowing cursor. + * Reference: https://animate-ui.com/docs + */ +export function TypingText({ + phrases, + typingSpeed = 70, + deletingSpeed = 40, + pauseDuration = 2000, + className = '', + cursorClassName = '', +}: TypingTextProps) { + const [phraseIndex, setPhraseIndex] = useState(0); + const [text, setText] = useState(''); + const [isDeleting, setIsDeleting] = useState(false); + + useEffect(() => { + if (!phrases || phrases.length === 0) return; + + const currentPhrase = phrases[phraseIndex]; + let timeout: NodeJS.Timeout; + + if (!isDeleting && text === currentPhrase) { + timeout = setTimeout(() => setIsDeleting(true), pauseDuration); + } else if (isDeleting && text === '') { + setIsDeleting(false); + setPhraseIndex((prev) => (prev + 1) % phrases.length); + } else { + const speed = isDeleting ? deletingSpeed : typingSpeed; + timeout = setTimeout(() => { + setText( + isDeleting + ? currentPhrase.substring(0, text.length - 1) + : currentPhrase.substring(0, text.length + 1) + ); + }, speed); + } + + return () => clearTimeout(timeout); + }, [text, isDeleting, phraseIndex, phrases, typingSpeed, deletingSpeed, pauseDuration]); + + return ( + + {text} + + ); +} diff --git a/src/components/sections/CinematicHorizontalScrollSection.tsx b/src/components/sections/CinematicHorizontalScrollSection.tsx index f38d045..c2f9fc4 100644 --- a/src/components/sections/CinematicHorizontalScrollSection.tsx +++ b/src/components/sections/CinematicHorizontalScrollSection.tsx @@ -1,378 +1,285 @@ 'use client'; -import React, { useRef, useState, useEffect, useCallback } from 'react'; +import React from 'react'; import Link from 'next/link'; -import { Sparkles, ArrowRight, Smartphone, ChevronLeft, ChevronRight, Layers } from 'lucide-react'; +import { + ArrowRight, + Smartphone, + Sparkles, + CheckCircle2, + Cpu, + Zap, + Eye +} from 'lucide-react'; import { Cinematic3DComparison } from '@/components/ui/Cinematic3DComparison'; +import { BorderBeam } from '@/components/animate-ui/BorderBeam'; +import { ShimmerBadge } from '@/components/animate-ui/ShimmerBadge'; +import { SpotlightCard } from '@/components/animate-ui/SpotlightCard'; +import { MotionTextReveal } from '@/components/animate-ui/MotionTextReveal'; +import { AnimatedGradientText } from '@/components/animate-ui/AnimatedGradientText'; -interface ShowcaseCard { +export interface ShowcaseItem { id: string; index: string; + tabLabel?: string; category: string; model: string; latency: string; title: string; tagline: string; description: string; + variant?: 'comparison' | 'banner'; + beforeUrl?: string; + afterUrl?: string; + bannerImage?: string; + bannerBadge?: string; toolSlug: string; appSlug: string; appName: string; - beforeUrl: string; - afterUrl: string; specs: string[]; } -const showcaseCards: ShowcaseCard[] = [ +interface CinematicHorizontalProps { + title?: string; + badge?: string; + subtitle?: string; + items?: ShowcaseItem[]; +} + +const DEFAULT_ITEMS: ShowcaseItem[] = [ { - id: 'matting', + id: 'alpha-matting', index: '01 / 03', - category: 'ALPHA MATTING ARCHIVE', + tabLabel: '01 ALPHA', + category: 'FINE MATTING & CUTOUT', model: 'P3M-Net Dual-Stream Alpha', latency: '< 520ms Stream', title: 'Hair-Strand Matting & Alpha Isolation', - tagline: 'Sub-pixel edge detection with microscopic flyaway hair preservation.', - 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', + tagline: 'Sub-pixel hair strands, transparent veils, and motion blur cutout.', + description: 'Proprietary dual-stream deep neural network isolates fine flyaway hair, complex textures, and semi-transparent boundaries in studio portraits with pixel-level precision.', + variant: 'comparison', beforeUrl: 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80', afterUrl: 'https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=800&auto=format&fit=crop&q=80', - specs: ['Sub-pixel flyaway detection', 'Lossless alpha PNG export', 'Zero edge halo bleeding'], + toolSlug: 'background-remover', + appSlug: 'bg-cleaner-app', + appName: 'Magic Cutout', + specs: ['0.02px edge preservation', 'Alpha PNG lossless stream', 'Studio hair detail'], }, { - id: 'retouch', + id: 'editorial-portrait-banner', index: '02 / 03', - category: 'DERMAL RESTORATION', - model: 'RetouchGAN v2.1 Micro-Pore', + tabLabel: '02 BANNER', + category: 'STUDIO PRO BANNER', + model: 'RetouchGAN v2.1 Prime', latency: '< 380ms Stream', - title: 'Sub-Pore Skin Retouching & Blemish Removal', - tagline: 'Authentic microscopic texture preservation without plastic smoothing.', - description: 'Unlike standard beauty filters that smear your face into plastic, RetouchGAN operates at the dermal level—erasing acne, blemishes, and under-eye redness while reconstructing microscopic skin pore geometry.', + title: 'Editorial Portrait Engine Pro', + tagline: 'Next-generation sub-pore epidermal synthesis.', + description: 'Transform commercial model photography with authentic skin pore preservation. Retain real freckles, iris glints, and fine texture with zero plastic artificial blur.', + variant: 'banner', + bannerImage: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=1200&auto=format&fit=crop&q=80', + bannerBadge: 'PRO EDITION • LOSSLESS FP16', toolSlug: 'blemish-remover', appSlug: 'portrait-app', appName: 'Portrait Studio AI', - beforeUrl: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80', - afterUrl: 'https://images.unsplash.com/photo-1517841905240-472988babdf9?w=800&auto=format&fit=crop&q=80', - specs: ['Microscopic pore geometry', 'Instant scar & redness repair', 'True-to-life dermal tones'], + specs: ['Sub-pore texture matrix', 'Authentic epidermal micro-details', 'Lossless 4K color gamut'], }, { - id: 'enhancer', + id: 'super-resolution', index: '03 / 03', + tabLabel: '03 4K', category: '4K SUPER-RESOLUTION', 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.', + variant: 'comparison', + beforeUrl: 'https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80', + afterUrl: 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=800&auto=format&fit=crop&q=80', toolSlug: 'photo-enhancer', appSlug: 'photo-enhancer-pro', appName: 'Enhance Ultra AI', - beforeUrl: 'https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80', - afterUrl: 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=800&auto=format&fit=crop&q=80', specs: ['Iris & eyelash synthesis', '400% lossless super-resolution', 'Studio-grade crispness'], }, ]; -export function CinematicHorizontalScrollSection() { - const scrollRef = useRef(null); - const [activeIndex, setActiveIndex] = useState(0); - const [isDragging, setIsDragging] = useState(false); - const [dragStartX, setDragStartX] = useState(0); - const [dragScrollLeft, setDragScrollLeft] = useState(0); - - // Smoothly scroll to a specific card index - const scrollToCard = useCallback((index: number) => { - if (!scrollRef.current) return; - const container = scrollRef.current; - const card = container.children[index] as HTMLElement | undefined; - if (card) { - const containerWidth = container.offsetWidth; - const cardWidth = card.offsetWidth; - const cardLeft = card.offsetLeft; - // Center the card in the viewport - const targetLeft = cardLeft - (containerWidth - cardWidth) / 2; - container.scrollTo({ - left: Math.max(0, targetLeft), - behavior: 'smooth', - }); - setActiveIndex(index); - } - }, []); - - const handlePrev = useCallback(() => { - scrollToCard(Math.max(0, activeIndex - 1)); - }, [activeIndex, scrollToCard]); - - const handleNext = useCallback(() => { - scrollToCard(Math.min(showcaseCards.length - 1, activeIndex + 1)); - }, [activeIndex, scrollToCard]); - - // Update active index based on scroll position via lightweight scroll listener - useEffect(() => { - const container = scrollRef.current; - if (!container) return; - - let timeoutId: NodeJS.Timeout; - const handleScroll = () => { - clearTimeout(timeoutId); - timeoutId = setTimeout(() => { - if (!container) return; - const scrollLeft = container.scrollLeft; - const containerCenter = scrollLeft + container.offsetWidth / 2; - - let closestIdx = 0; - let minDiff = Infinity; - - for (let i = 0; i < container.children.length; i++) { - const child = container.children[i] as HTMLElement; - const childCenter = child.offsetLeft + child.offsetWidth / 2; - const diff = Math.abs(containerCenter - childCenter); - if (diff < minDiff) { - minDiff = diff; - closestIdx = i; - } - } - - setActiveIndex(closestIdx); - }, 50); - }; - - container.addEventListener('scroll', handleScroll, { passive: true }); - return () => { - clearTimeout(timeoutId); - container.removeEventListener('scroll', handleScroll); - }; - }, []); - - // Mouse Drag to Scroll handlers - const onMouseDown = (e: React.MouseEvent) => { - // Only drag when clicking background/card frame, not when interacting with inputs/buttons - const target = e.target as HTMLElement; - if (target.closest('button') || target.closest('a') || target.closest('input')) return; - - if (!scrollRef.current) return; - setIsDragging(true); - setDragStartX(e.pageX - scrollRef.current.offsetLeft); - setDragScrollLeft(scrollRef.current.scrollLeft); - }; - - const onMouseMove = (e: React.MouseEvent) => { - if (!isDragging || !scrollRef.current) return; - e.preventDefault(); - const x = e.pageX - scrollRef.current.offsetLeft; - const walk = (x - dragStartX) * 1.5; // Drag speed multiplier - scrollRef.current.scrollLeft = dragScrollLeft - walk; - }; - - const onMouseUp = () => { - setIsDragging(false); - }; +export function CinematicHorizontalScrollSection({ + title = 'Interactive Model Showcase', + badge = 'FLAGSHIP TRANSFORMATION MODELS', + subtitle = 'Explore our next-generation neural engines with live benchmark telemetry.', + items = DEFAULT_ITEMS, +}: CinematicHorizontalProps) { + const showcaseCards = items && items.length > 0 ? items : DEFAULT_ITEMS; return ( -
- {/* Subtle Ambient Background Gradient */} -
-
+ {/* Subtle ambient light gradient */} +
- {/* Massive Typographic Watermark (Lightweight CSS) */} - - -
- {/* Header Row: Title & Editorial Badge */} -
-
-
+
+ {/* Section Header with Motion Graphics Text */} +
+
+ - FLAGSHIP TRANSFORMATION MODELS -
-

- Interactive Model Showcase -

+ {badge} +
- {/* Navigation Controls: Tabs & Arrow Buttons */} -
- {/* Quick Model Tabs */} -
- {showcaseCards.map((card, idx) => { - const isActive = activeIndex === idx; - return ( - - ); - })} -
+

+ {' '} + + Model Showcase + +

- {/* Prev / Next Arrows */} -
- - -
-
+

+ {subtitle} +

-
- {/* Panoramic Native Scroll Filmstrip (100% GPU-accelerated, Zero Lag, Native Touch & Drag) */} -
- {showcaseCards.map((card, idx) => { - const isActive = activeIndex === idx; - return ( -
- {/* Card Header Metadata Bar */} -
-
- - {card.index} - - - - {card.category} - -
+ {/* 100% Pure Vertical Stack (Zero Horizontal Scroll, Zero Lag, Ultra Smooth) */} +
+ {showcaseCards.map((card, idx) => { + const isBannerMode = card.variant === 'banner' || (!card.afterUrl && !!card.bannerImage); -
- - {card.model} - - - {card.latency} - -
-
+ return ( + + {/* Border Beam subtle light effect on hover */} + - {/* Interactive Comparison Viewport */} -
- -
- - {/* Card Editorial Content & Specifications */} -
-
-

- {card.title} -

- - {card.tagline} - -
- -

- {card.description} -

- - {/* Specs Chips */} -
- {card.specs.map((spec, i) => ( - - ✓ {spec} + {/* Card Header Metadata Bar */} +
+
+ + {card.index} - ))} + + + {card.category} + +
+ +
+ + + {card.model} + + + + {card.latency} + +
- {/* Direct Action Links */} -
- - Launch Online Studio - - + {/* Symmetrical Two-Column Content Grid: Details on Left, Visual on Right */} +
+ {/* Left Column: Editorial Content, Specs & Actions */} +
+
+ + {card.tagline} + +

+ {card.title} +

+
- - - {card.appName} - +

+ {card.description} +

+ + {/* Specs Checklist Chips */} +
+ {card.specs.map((spec, i) => ( +
+ + {spec} +
+ ))} +
+ + {/* Action Links */} +
+ + Launch Online Studio + + + + + + {card.appName} + +
+
+ + {/* Right Column: Dynamic Simple Banner OR Interactive 3D Comparison Slider */} +
+ {isBannerMode ? ( + /* DYNAMIC SIMPLE BANNER (100% Configurable from JSON, Zero Comparison) */ +
+ {/* eslint-disable-next-line @next/next/no-img-element */} + {card.title} + {/* Atmospheric Vignette Gradient */} +
+ + {/* Top Dynamic Tag */} +
+ + {card.bannerBadge || 'DYNAMIC STUDIO BANNER'} + +
+ + {/* Bottom Banner Content */} +
+
+ + Neural Preset Matrix + +

+ {card.title} +

+
+ + + 1-Click Deploy + +
+
+ ) : ( + /* INTERACTIVE 3D COMPARISON SLIDER */ +
+ +
+ )} +
-
-
- ); - })} -
- - {/* Bottom Progress Bar Indicator */} -
-
-
-
-
- -
- MODEL {activeIndex + 1} OF {showcaseCards.length} - • - SWIPE OR DRAG TO EXPLORE -
+ + ); + })}
diff --git a/src/components/sections/HeroSection.tsx b/src/components/sections/HeroSection.tsx index f9f4f37..06f5000 100644 --- a/src/components/sections/HeroSection.tsx +++ b/src/components/sections/HeroSection.tsx @@ -2,12 +2,14 @@ import React from 'react'; import Link from 'next/link'; -import { Sparkles, ArrowRight, Smartphone, Layers } from 'lucide-react'; +import { Sparkles, ArrowRight, Smartphone, Layers, Zap } from 'lucide-react'; import { resolveLocalised, ToolItem, AppItem, VariantSpec } from '@/types'; import { TryItWidget } from './TryItWidget'; -import { TiltCard } from '@/components/ui/TiltCard'; import { Hero3DCanvas } from '@/components/3d/Hero3DCanvas'; import { Kinetic3DText } from '@/components/ui/Kinetic3DText'; +import { ShimmerBadge } from '@/components/animate-ui/ShimmerBadge'; +import { BorderBeam } from '@/components/animate-ui/BorderBeam'; +import { MorphingText } from '@/components/animate-ui/MorphingText'; interface HeroSectionProps { title?: any; @@ -61,20 +63,19 @@ export function HeroSection({
{/* Main Hero Header */} -
- {/* Live Core Status & Enigma Editorial Metadata */} -
- {resolvedBadge && ( -
- - - - - {resolvedBadge} -
- )} -
- VOL. 26 // NEURAL STUDIO +
+ {/* Live Core Status & Animate UI Shimmer Badge */} +
+ + + + + + {resolvedBadge || 'NEXT-GEN NEURAL STUDIO v4.2'} + + +
+ FP16 LOSSLESS PIPELINE
@@ -84,18 +85,65 @@ export function HeroSection({ highlightText="Next-Gen Neural AI" subtitle={resolvedSubtitle} /> + + {/* Pixelcut-Style Dynamic Morphing Capability Bar */} +
+ Live Engine Focus: + + + +
+ + {/* Pixelcut-Style Interactive Tool Chips */} +
+ + ✨ Retouch Skin + + + ✂️ Cut Out Hair + + + 🔍 4K Upscale + + + 🎨 Colorize B&W + +
- {/* Embedded Interactive Free Try-It Widget wrapped with 3D Tilt Card */} + {/* Embedded Interactive Free Try-It Widget wrapped with Animate UI Border Beam */}
- +
+ - +
diff --git a/src/components/sections/SectionRenderer.tsx b/src/components/sections/SectionRenderer.tsx index af8ebf7..9a7dd5b 100644 --- a/src/components/sections/SectionRenderer.tsx +++ b/src/components/sections/SectionRenderer.tsx @@ -69,11 +69,11 @@ export function SectionRenderer({ section, context }: SectionRendererProps) { ); case 'transformationReel': - return ; + return ; case 'majorToolBanners': case 'cinematicHorizontal': - return ; + return ; case 'visualUseCases': return ; diff --git a/src/components/sections/StatsSection.tsx b/src/components/sections/StatsSection.tsx index cee47c3..fcc9604 100644 --- a/src/components/sections/StatsSection.tsx +++ b/src/components/sections/StatsSection.tsx @@ -1,4 +1,8 @@ +'use client'; + import React from 'react'; +import { NumberCounter } from '@/components/animate-ui/NumberCounter'; +import { AnimatedGradientText } from '@/components/animate-ui/AnimatedGradientText'; interface StatsSectionProps { items?: Array<{ @@ -11,21 +15,20 @@ export function StatsSection({ items = [] }: StatsSectionProps) { if (!items || items.length === 0) return null; return ( -
-
+
+
{items.map((stat, idx) => ( -
-

- {stat.value} -

-

+

+
+ + + +
+

{stat.label}

diff --git a/src/components/sections/TransformationReelSection.tsx b/src/components/sections/TransformationReelSection.tsx index 34a5c1d..b95b31d 100644 --- a/src/components/sections/TransformationReelSection.tsx +++ b/src/components/sections/TransformationReelSection.tsx @@ -2,137 +2,287 @@ import React from 'react'; import Link from 'next/link'; -import { ArrowRight, Sparkles } from 'lucide-react'; +import { + Cpu, + Activity, + Zap, + ShieldCheck, + ArrowRight, + Sparkles, + Layers, + Terminal, + Gauge, + CheckCircle2 +} from 'lucide-react'; -interface TransformationItem { - toolSlug: string; - toolName: string; +interface BenchmarkModel { + slug: string; + name: string; + architecture: string; category: string; - before: string; - after: string; - tag: string; + latencyMs: number; + latencyTag: string; + precision: string; + tensorSpec: string; + pipelineFocus: string; + hardwareShader: string; } -const transformations: TransformationItem[] = [ +const benchmarkModels: BenchmarkModel[] = [ { - toolSlug: 'blemish-remover', - toolName: 'AI Blemish Remover', + slug: 'blemish-remover', + name: 'RetouchGAN v2.1', + architecture: 'Dual-Discriminator CycleGAN', category: 'Portrait Retouch', - before: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=400&auto=format&fit=crop&q=80', - after: 'https://images.unsplash.com/photo-1517841905240-472988babdf9?w=400&auto=format&fit=crop&q=80', - tag: 'Skin Pore Texture Preserved', + latencyMs: 380, + latencyTag: '< 380ms', + precision: '99.98% SSIM', + tensorSpec: '4096 × 4096 FP16', + pipelineFocus: 'Sub-Pore Texture & Epidermal Realism', + hardwareShader: 'Metal 3 / WebGPU', }, { - toolSlug: 'background-remover', - toolName: 'P3M Background Cutout', - category: 'Matting', - before: 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=400&auto=format&fit=crop&q=80', - after: 'https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=400&auto=format&fit=crop&q=80', - tag: 'Sub-Pixel Hair Strands', + slug: 'background-remover', + name: 'P3M-Net Alpha', + architecture: 'Pluralistic Pixel Trim Matting', + category: 'Fine Matting', + latencyMs: 520, + latencyTag: '< 520ms', + precision: '0.02px Edge Trim', + tensorSpec: '3-Channel Alpha Matte', + pipelineFocus: 'Flyaway Hair Strand Isolation', + hardwareShader: 'CoreML / Vulkan', }, { - toolSlug: 'photo-enhancer', - toolName: 'Ultra HD 4K Enhancer', - category: 'Restoration', - before: 'https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=400&auto=format&fit=crop&q=80', - after: 'https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=400&auto=format&fit=crop&q=80', - tag: 'Deblur & Iris Sharpness', + slug: 'photo-enhancer', + name: 'GFPGAN + RealESRGAN', + architecture: 'Generative Facial Prior + RRDB', + category: '4K Super-Res', + latencyMs: 460, + latencyTag: '< 460ms', + precision: 'Lossless Prior Synthesis', + tensorSpec: '400% Non-Linear Upscale', + pipelineFocus: 'Iris & Eyelash Fine Reconstruction', + hardwareShader: 'Edge Tensor Core', }, { - toolSlug: 'old-photo-restorer', - toolName: 'Vintage Restorer', - category: 'Archives', - before: 'https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=400&auto=format&fit=crop&q=80', - after: 'https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=400&auto=format&fit=crop&q=80', - tag: 'Scratch & Tear Removal', + slug: 'old-photo-restorer', + name: 'ScratchDeNet Pro', + architecture: 'Deep Contextual Inpaint Field', + category: 'Archive Restoration', + latencyMs: 490, + latencyTag: '< 490ms', + precision: 'Archive Grade 16-bit', + tensorSpec: 'Partial Convolution Net', + pipelineFocus: 'Physical Emulsion Tear & Crease Healing', + hardwareShader: 'DirectML / WebGPU', }, { - toolSlug: 'cartoon-avatar', - toolName: 'CartoonGAN Anime', + slug: 'cartoon-avatar', + name: 'AnimeGAN v3 Core', + architecture: 'Perceptual Gram-Loss Vectorizer', category: 'Creative Art', - before: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=400&auto=format&fit=crop&q=80', - after: 'https://images.unsplash.com/photo-1578632767115-351597cf2477?w=400&auto=format&fit=crop&q=80', - tag: 'Manga Cel Animation', + latencyMs: 350, + latencyTag: '< 350ms', + precision: 'Zero Color Distortion', + tensorSpec: 'Vector Contour Mapping', + pipelineFocus: 'Manga Cel Shading & Ink Contours', + hardwareShader: 'WebGPU / CUDA Edge', }, { - toolSlug: 'colorization', - toolName: 'B&W Colorizer', - category: 'Historical Color', - before: 'https://images.unsplash.com/photo-1544717305-2782549b5136?w=400&auto=format&fit=crop&q=80', - after: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=400&auto=format&fit=crop&q=80', - tag: 'Deep Neural Palette', + slug: 'colorization', + name: 'DeOldify Chroma', + architecture: 'Self-Attention NoGAN Spectral Net', + category: 'Historical Palette', + latencyMs: 420, + latencyTag: '< 420ms', + precision: 'Delta-E < 1.1', + tensorSpec: '64-Channel Spectral Palette', + pipelineFocus: 'Historical Tone & Dye Accurate Grading', + hardwareShader: 'Edge Neural Core', }, ]; -export function TransformationReelSection() { +import { SpotlightCard } from '@/components/animate-ui/SpotlightCard'; +import { MotionTextReveal } from '@/components/animate-ui/MotionTextReveal'; +import { AnimatedGradientText } from '@/components/animate-ui/AnimatedGradientText'; + +interface TransformationReelProps { + title?: string; + subtitle?: string; + items?: BenchmarkModel[]; +} + +export function TransformationReelSection({ + title = 'Live Benchmarks by CRE Neural Engine™', + subtitle = 'Sub-millisecond deep learning pipelines executing edge inference in FP16 precision. Zero cold-start latency, zero data retention, and sub-pixel neural weights.', + items = benchmarkModels, +}: TransformationReelProps) { + const models = items && items.length > 0 ? items : benchmarkModels; + return ( -
-
-
- - - - -

- Live Transformations by CRE Neural Engine -

+
+ {/* Ambient background glow */} +
+ +
+ {/* Section Header */} +
+
+
+ + + + + + Live Inference Telemetry // Edge Cluster Active + +
+

+ Live Benchmarks by{' '} + + CRE Neural Engine™ + +

+

+ {subtitle} +

+
+ +
+ + Explore The Suite + + +
- - Explore The Suite - - -
- {/* Horizontal scrolling showcase */} -
- {transformations.map((item, idx) => ( - - {/* Visual side-by-side thumbnail */} -
-
-
- {/* eslint-disable-next-line @next/next/no-img-element */} - Before - - Before - -
-
- {/* eslint-disable-next-line @next/next/no-img-element */} - After - - CRE AI - -
-
+ {/* Global Telemetry Strip */} +
+
+
+
+
+

Avg Latency

+

360ms (Real-time)

+
+
-
-
- - {item.category} - - - Try Free → - -
-

- {item.toolName} -

-

- {item.tag} -

+
+
+
- - ))} +
+

Privacy Policy

+

0.0s (RAM scrubbed)

+
+
+ +
+
+ +
+
+

Edge Precision

+

99.98% SSIM

+
+
+ +
+
+ +
+
+

Pipeline Math

+

FP16 (Lossless)

+
+
+
+ + {/* Neural Engine Capability Benchmark Cards Grid with Animate UI Spotlight */} +
+ {models.map((model) => { + const latencyPct = Math.min(100, Math.round((model.latencyMs / 1000) * 100)); + + return ( + +
+ {/* Top Header Row */} +
+ + {model.category} + + + + {model.latencyTag} + +
+ + {/* Model Name and Architecture */} +

+ {model.name} +

+

+ {model.architecture} +

+ + {/* Real-time Latency Progress Bar */} +
+
+ Inference Speed SLA + {model.latencyMs}ms / 1000ms SLA +
+
+
+
+
+ + {/* High-tech Specs Grid */} +
+
+ Precision + {model.precision} +
+
+ Tensor Core + {model.tensorSpec} +
+
+ +

+ + {model.pipelineFocus} +

+
+ + {/* Bottom Action */} +
+ + Shader: {model.hardwareShader} + + + Launch Studio + + +
+ + ); + })} +
); -} +} \ No newline at end of file diff --git a/src/components/sections/VerticalToolStackSection.tsx b/src/components/sections/VerticalToolStackSection.tsx index ab99784..c5e4e18 100644 --- a/src/components/sections/VerticalToolStackSection.tsx +++ b/src/components/sections/VerticalToolStackSection.tsx @@ -17,7 +17,10 @@ import { } from 'lucide-react'; import { resolveLocalised, ToolItem, CategoryItem } from '@/types'; import { BeforeAfterSlider } from '@/components/ui/BeforeAfterSlider'; -import { TiltCard } from '@/components/ui/TiltCard'; +import { SpotlightCard } from '@/components/animate-ui/SpotlightCard'; +import { ShimmerBadge } from '@/components/animate-ui/ShimmerBadge'; +import { MotionTextReveal } from '@/components/animate-ui/MotionTextReveal'; +import { AnimatedGradientText } from '@/components/animate-ui/AnimatedGradientText'; export interface VerticalToolStackProps { context: { @@ -58,23 +61,27 @@ export function VerticalToolStackSection({ context }: VerticalToolStackProps) { return (
{/* Anchor alias for backwards compatibility */}
{/* Subtle ambient light gradient */} -
+
-
- {/* Section Header: Centered & Balanced */} + {/* Full-width expansive container spanning the entire page */} +
+ {/* Section Header: Centered & Balanced with Animate UI Text Motion */}
-
- - THE CREATIVE STUDIO SUITE +
+ + + THE CREATIVE STUDIO SUITE +
-

- Advanced Vision Tools +

+ {' '} + Vision Tools

Precision deep learning models organized by creative discipline. Test sub-millimeter skin pore retouching, fine hair alpha matting, and 4K super-resolution directly in your browser. @@ -82,7 +89,7 @@ export function VerticalToolStackSection({ context }: VerticalToolStackProps) {

{/* Centered Symmetrical Category Filter Rail */} -
+
- {/* Centered Symmetrical Vertical Stack Container (No Lopsided Gutter) */} -
+ {/* Expansive Full-Width Vertical Tool Stack */} +
{filteredCategories.map((category) => { const catTools = tools.filter((t) => t.category === category.slug); if (catTools.length === 0) return null; @@ -151,12 +158,12 @@ export function VerticalToolStackSection({ context }: VerticalToolStackProps) {

- + {catTools.length} {catTools.length === 1 ? 'Production Tool' : 'Production Tools'}
- {/* Symmetrical Tool Cards */} + {/* Symmetrical Full-Width Tool Cards */}
{catTools.map((tool) => { const badgeInfo = MODEL_BADGES[tool.id] || { @@ -170,96 +177,111 @@ export function VerticalToolStackSection({ context }: VerticalToolStackProps) { caption: 'Interactive Before/After Preview', }; + const isBanner = (tool as any).variant === 'banner' || (tool as any).previewType === 'banner' || !example.after; + return ( - -
- {/* Top Metadata Row */} -
-
- {/* Neural Model Tag */} - - - {badgeInfo.model} - - {/* Specific Capability Chip */} - - {badgeInfo.chip} - + {/* Top Metadata Row */} +
+
+ {/* Neural Model Tag */} + + + {badgeInfo.model} + + {/* Specific Capability Chip */} + + {badgeInfo.chip} + +
+ + {/* Latency Metric */} +
+ + {badgeInfo.latency} Stream +
+
+ + {/* Card Content Grid: 2 Balanced Columns with Wide Preview */} +
+ {/* Left Details Column */} +
+

+ {resolveLocalised(tool.name, locale)} +

+

+ {resolveLocalised(tool.summary, locale)} +

+ + {/* Features Checklist */} +
+
+ + Sub-pixel edge and realistic texture preservation +
+
+ + Studio-grade 4K lossless enhancement +
+
+ + Full creative control in native iOS & Android apps +
- {/* Latency Metric */} -
- - {badgeInfo.latency} Stream + {/* Action Buttons */} +
+ + Launch Tool Online + + + + + + Native App +
- {/* Card Content Grid: 2 Symmetric Columns */} -
- {/* Left Details Column */} -
-

- {resolveLocalised(tool.name, locale)} -

-

- {resolveLocalised(tool.summary, locale)} -

- - {/* Features Checklist */} -
-
- - Sub-pixel edge and realistic texture preservation -
-
- - Studio-grade 4K lossless enhancement -
-
- - Full creative control in native iOS & Android apps + {/* Right Interactive Viewport: Simple Banner vs Comparison Slider */} +
+ {isBanner ? ( +
+ {/* eslint-disable-next-line @next/next/no-img-element */} + {resolveLocalised(tool.name, +
+
+ + STUDIO BANNER • {badgeInfo.model} +
- - {/* Action Buttons */} -
- - Launch Tool Online - - - - - - Native App - -
-
- - {/* Right Interactive Before/After Comparison Slider */} -
+ ) : ( -
+ )}
- + ); })}
@@ -268,8 +290,8 @@ export function VerticalToolStackSection({ context }: VerticalToolStackProps) { })}
- {/* Centered Symmetrical Bottom Banner */} -
+ {/* Centered Symmetrical Bottom Banner (Expansive Width) */} +
diff --git a/src/components/ui/BeforeAfterSlider.tsx b/src/components/ui/BeforeAfterSlider.tsx index 79987ec..33d9bd9 100644 --- a/src/components/ui/BeforeAfterSlider.tsx +++ b/src/components/ui/BeforeAfterSlider.tsx @@ -21,7 +21,7 @@ export function BeforeAfterSlider({ afterLabel, caption, aspectRatio = 'aspect-[4/3] sm:aspect-[16/10]', - autoSlide = true, + autoSlide = false, className = '', }: BeforeAfterSliderProps) { return ( diff --git a/src/components/ui/Cinematic3DComparison.tsx b/src/components/ui/Cinematic3DComparison.tsx index 2b9f04f..b6b17a7 100644 --- a/src/components/ui/Cinematic3DComparison.tsx +++ b/src/components/ui/Cinematic3DComparison.tsx @@ -22,42 +22,36 @@ export function Cinematic3DComparison({ afterLabel = 'AI RECONSTRUCTED', caption, aspectRatio = 'aspect-[4/3] sm:aspect-[16/10]', - autoSlide = true, - maxTilt = 7, + autoSlide = false, + maxTilt = 6, className = '', }: Cinematic3DComparisonProps) { const [sliderPosition, setSliderPosition] = useState(50); const [isDragging, setIsDragging] = useState(false); - const [isUserInteracting, setIsUserInteracting] = useState(false); - const [tilt, setTilt] = useState({ rx: 0, ry: 0, glareX: 50, glareY: 50, active: false }); const containerRef = useRef(null); - const stageRef = useRef(null); - const animFrameRef = useRef(null); - const resumeTimerRef = useRef(null); - const startTimeRef = useRef(Date.now()); + const glareRef = useRef(null); - // Auto-slide smooth sine oscillation loop + // Auto-slide smooth sine oscillation loop (only when explicitly requested) useEffect(() => { - if (!autoSlide || isDragging || isUserInteracting) { - if (animFrameRef.current) cancelAnimationFrame(animFrameRef.current); - return; - } + if (!autoSlide || isDragging) return; + let animId: number; + const start = Date.now(); const animate = () => { - const elapsed = Date.now() - startTimeRef.current; - // Gentle cinematic oscillation between 28% and 72% - const newPos = 50 + 22 * Math.sin(elapsed * 0.0014); + const elapsed = Date.now() - start; + // Gentle cinematic oscillation between 30% and 70% + const newPos = 50 + 20 * Math.sin(elapsed * 0.0014); setSliderPosition(newPos); - animFrameRef.current = requestAnimationFrame(animate); + animId = requestAnimationFrame(animate); }; - animFrameRef.current = requestAnimationFrame(animate); + animId = requestAnimationFrame(animate); return () => { - if (animFrameRef.current) cancelAnimationFrame(animFrameRef.current); + if (animId) cancelAnimationFrame(animId); }; - }, [autoSlide, isDragging, isUserInteracting]); + }, [autoSlide, isDragging]); // Handle position calculation const handleMove = useCallback((clientX: number) => { @@ -97,7 +91,7 @@ export function Cinematic3DComparison({ }; }, [isDragging, handleMouseMove, handleMouseUp, handleTouchMove]); - // 3D Spatial Tilt Tracking + // 3D Spatial Tilt - Pure Direct DOM Manipulation (Zero React Re-renders on mousemove!) const handleStageMouseMove = (e: React.MouseEvent) => { if (!containerRef.current) return; const rect = containerRef.current.getBoundingClientRect(); @@ -107,27 +101,20 @@ export function Cinematic3DComparison({ const rx = -(y - 0.5) * maxTilt * 2; const ry = (x - 0.5) * maxTilt * 2; - setTilt({ - rx, - ry, - glareX: x * 100, - glareY: y * 100, - active: true, - }); - }; - - const handleMouseEnter = () => { - setIsUserInteracting(true); - if (resumeTimerRef.current) clearTimeout(resumeTimerRef.current); + containerRef.current.style.transform = `rotateX(${rx.toFixed(2)}deg) rotateY(${ry.toFixed(2)}deg) scale3d(1.012, 1.012, 1.012)`; + if (glareRef.current) { + glareRef.current.style.opacity = '0.55'; + glareRef.current.style.background = `radial-gradient(circle 380px at ${(x * 100).toFixed(1)}% ${(y * 100).toFixed(1)}%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 50%, transparent 80%)`; + } }; const handleMouseLeave = () => { - setTilt((prev) => ({ ...prev, rx: 0, ry: 0, active: false })); - if (resumeTimerRef.current) clearTimeout(resumeTimerRef.current); - resumeTimerRef.current = setTimeout(() => { - setIsUserInteracting(false); - startTimeRef.current = Date.now(); - }, 2800); + if (containerRef.current) { + containerRef.current.style.transform = 'rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)'; + } + if (glareRef.current) { + glareRef.current.style.opacity = '0'; + } }; return ( @@ -136,21 +123,12 @@ export function Cinematic3DComparison({
{ - setIsDragging(true); - setIsUserInteracting(true); - }} - onTouchStart={() => { - setIsDragging(true); - setIsUserInteracting(true); - }} - className={`relative w-full ${aspectRatio} rounded-2xl sm:rounded-3xl overflow-hidden cursor-ew-resize preserve-3d transition-transform duration-200 ease-out shadow-cinematic-3d hover:shadow-cinematic-hover border border-slate-900/[0.08] bg-slate-950`} + onMouseDown={() => setIsDragging(true)} + onTouchStart={() => setIsDragging(true)} + className={`relative w-full ${aspectRatio} rounded-2xl sm:rounded-3xl overflow-hidden cursor-ew-resize preserve-3d transition-transform duration-150 ease-out shadow-cinematic-3d hover:shadow-cinematic-hover border border-slate-900/[0.08] bg-slate-950`} style={{ - transform: tilt.active - ? `rotateX(${tilt.rx.toFixed(2)}deg) rotateY(${tilt.ry.toFixed(2)}deg) scale3d(1.015, 1.015, 1.015)` - : 'rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)', + transform: 'rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)', touchAction: 'pan-y', }} > @@ -165,10 +143,10 @@ export function Cinematic3DComparison({ {/* Dynamic 3D Cursor Specular Light Glint */}
diff --git a/src/components/ui/Navbar.tsx b/src/components/ui/Navbar.tsx index 45091c7..212559a 100644 --- a/src/components/ui/Navbar.tsx +++ b/src/components/ui/Navbar.tsx @@ -15,9 +15,9 @@ interface NavbarProps { export function Navbar({ config, currentLocale }: NavbarProps) { const [isScrolled, setIsScrolled] = useState(false); const [mobileMenuOpen, setMobileMenuOpen] = useState(false); - const [mousePos, setMousePos] = useState({ x: 50, y: 50, active: false }); const pathname = usePathname(); const navRef = useRef(null); + const glintRef = useRef(null); useEffect(() => { const handleScroll = () => { @@ -28,14 +28,18 @@ export function Navbar({ config, currentLocale }: NavbarProps) { }, []); const handleMouseMove = (e: React.MouseEvent) => { + if (!glintRef.current) return; const rect = e.currentTarget.getBoundingClientRect(); const x = ((e.clientX - rect.left) / rect.width) * 100; const y = ((e.clientY - rect.top) / rect.height) * 100; - setMousePos({ x, y, active: true }); + glintRef.current.style.opacity = '0.6'; + glintRef.current.style.background = `radial-gradient(ellipse 260px 80px at ${x.toFixed(1)}% ${y.toFixed(1)}%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.08) 40%, transparent 70%)`; }; const handleMouseLeave = () => { - setMousePos((prev) => ({ ...prev, active: false })); + if (glintRef.current) { + glintRef.current.style.opacity = '0'; + } }; return ( @@ -51,13 +55,10 @@ export function Navbar({ config, currentLocale }: NavbarProps) { {/* Optical Glass Caustic Reflection Sheen */}