diff --git a/content/pages/home.json b/content/pages/home.json index a64d555..3cd9179 100644 --- a/content/pages/home.json +++ b/content/pages/home.json @@ -28,8 +28,49 @@ }, { "id": "live-reel", - "type": "transformationReel", - "props": {} + "type": "mediaShowcase", + "props": { + "title": "Visual Media & Transformation Reel", + "badge": "CURATED CREATIVE GALLERY", + "subtitle": "High-resolution photography, 4K video clips, and creative transformations produced by CRE neural tools.", + "items": [ + { + "id": "video-retouch-reel", + "type": "video", + "title": "4K Studio Model Portrait Session", + "category": "VIDEO ENHANCEMENT", + "badge": "4K 60FPS VIDEO", + "description": "Continuous temporal facial neural retouching across dynamic video frames with zero flicker.", + "videoUrl": "https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerBlazes.mp4", + "poster": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80", + "link": "/tools/blemish-remover", + "tag": "Temporal Retouching" + }, + { + "id": "hair-alpha-photo", + "type": "photo", + "title": "Fine Flyaway Strand Alpha Extraction", + "category": "HAIR CUTOUT", + "badge": "ULTRA HD PHOTO", + "description": "Microscopic hair fiber separation preserving semi-transparent boundary details for editorial covers.", + "image": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80", + "link": "/tools/background-remover", + "tag": "0.02px Edge Trim" + }, + { + "id": "restoration-comparison", + "type": "comparison", + "title": "4K Generative Facial Restoration", + "category": "SUPER-RESOLUTION", + "badge": "SIDE-BY-SIDE", + "description": "Deep neural priors reconstruct iris sharpness and realistic skin pores from compressed source photos.", + "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", + "link": "/tools/photo-enhancer", + "tag": "Iris Sharpness" + } + ] + } }, { "id": "stats-section", diff --git a/src/components/sections/CinematicHorizontalScrollSection.tsx b/src/components/sections/CinematicHorizontalScrollSection.tsx index c2f9fc4..b5d497a 100644 --- a/src/components/sections/CinematicHorizontalScrollSection.tsx +++ b/src/components/sections/CinematicHorizontalScrollSection.tsx @@ -178,105 +178,253 @@ export function CinematicHorizontalScrollSection({ - {/* Symmetrical Two-Column Content Grid: Details on Left, Visual on Right */} -
- {/* Left Column: Editorial Content, Specs & Actions */} -
-
- - {card.tagline} - -

- {card.title} -

+ {/* Dynamic Multi-Layout Variations Across Cards */} + {idx === 1 ? ( + /* VARIATION 2: Inverted Zig-Zag Layout (Visual on Left, Editorial on Right) */ +
+ {/* Left Column: Visual Media */} +
+ {isBannerMode ? ( +
+ {/* eslint-disable-next-line @next/next/no-img-element */} + {card.title} +
+
+ + {card.bannerBadge || 'DYNAMIC STUDIO BANNER'} + +
+
+
+ + Neural Preset Matrix + +

+ {card.title} +

+
+ + + 1-Click Deploy + +
+
+ ) : ( +
+ +
+ )}
-

+ {/* Right Column: Editorial Text & CTAs */} +

+
+ + {card.tagline} + +

+ {card.title} +

+
+ +

+ {card.description} +

+ +
+ {card.specs.map((spec, i) => ( +
+ + {spec} +
+ ))} +
+ +
+ + Launch Online Studio + + + + + + {card.appName} + +
+
+
+ ) : idx === 2 ? ( + /* VARIATION 3: Widescreen Bento Spotlight Layout (Header Top, Full-Width Visual Below) */ +
+
+
+ + {card.tagline} + +

+ {card.title} +

+
+ +
+ + Launch Online Studio + + + + + + {card.appName} + +
+
+ +

{card.description}

- {/* Specs Checklist Chips */} -
+ {/* Wide 21:9 / 16:9 Widescreen Comparison Viewport */} +
+ +
+ + {/* Horizontal Specs Chips */} +
{card.specs.map((spec, i) => ( -
- + + {spec} -
+ ))}
+
+ ) : ( + /* VARIATION 1: Standard Symmetrical Layout (Text Left, Visual Right) */ +
+ {/* Left Column: Editorial Content, Specs & Actions */} +
+
+ + {card.tagline} + +

+ {card.title} +

+
- {/* Action Links */} -
- - Launch Online Studio - - +

+ {card.description} +

- - - {card.appName} - + {/* 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 ? ( +
+ {/* eslint-disable-next-line @next/next/no-img-element */} + {card.title} +
+
+ + {card.bannerBadge || 'DYNAMIC STUDIO BANNER'} + +
+
+
+ + Neural Preset Matrix + +

+ {card.title} +

+
+ + + 1-Click Deploy + +
+
+ ) : ( +
+ +
+ )}
- - {/* 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 */ -
- -
- )} -
-
+ )} ); })} diff --git a/src/components/sections/MediaShowcaseSection.tsx b/src/components/sections/MediaShowcaseSection.tsx new file mode 100644 index 0000000..d50edda --- /dev/null +++ b/src/components/sections/MediaShowcaseSection.tsx @@ -0,0 +1,284 @@ +'use client'; + +import React, { useRef, useState } from 'react'; +import Link from 'next/link'; +import { + Play, + Pause, + Volume2, + VolumeX, + ArrowRight, + Sparkles, + Image as ImageIcon, + Video as VideoIcon, + Layers, + CheckCircle2 +} from 'lucide-react'; +import { ShimmerBadge } from '@/components/animate-ui/ShimmerBadge'; +import { SpotlightCard } from '@/components/animate-ui/SpotlightCard'; +import { BorderBeam } from '@/components/animate-ui/BorderBeam'; +import { MotionTextReveal } from '@/components/animate-ui/MotionTextReveal'; +import { AnimatedGradientText } from '@/components/animate-ui/AnimatedGradientText'; + +export interface MediaItem { + id: string; + type: 'video' | 'photo' | 'comparison' | 'banner'; + title: string; + category: string; + badge?: string; + description: string; + videoUrl?: string; + poster?: string; + image?: string; + beforeUrl?: string; + afterUrl?: string; + link: string; + tag?: string; +} + +interface MediaShowcaseProps { + title?: string; + badge?: string; + subtitle?: string; + items?: MediaItem[]; +} + +const DEFAULT_MEDIA_ITEMS: MediaItem[] = [ + { + id: 'video-retouch-reel', + type: 'video', + title: '4K Studio Model Portrait Session', + category: 'VIDEO ENHANCEMENT', + badge: '4K 60FPS VIDEO', + description: 'Continuous temporal facial neural retouching across dynamic video frames with zero flicker.', + videoUrl: 'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerBlazes.mp4', + poster: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80', + link: '/tools/blemish-remover', + tag: 'Temporal Retouching', + }, + { + id: 'hair-alpha-photo', + type: 'photo', + title: 'Fine Flyaway Strand Alpha Extraction', + category: 'HAIR CUTOUT', + badge: 'ULTRA HD PHOTO', + description: 'Microscopic hair fiber separation preserving semi-transparent boundary details for editorial covers.', + image: 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80', + link: '/tools/background-remover', + tag: '0.02px Edge Trim', + }, + { + id: 'restoration-comparison', + type: 'comparison', + title: '4K Generative Facial Restoration', + category: 'SUPER-RESOLUTION', + badge: 'SIDE-BY-SIDE', + description: 'Deep neural priors reconstruct iris sharpness and realistic skin pores from compressed source photos.', + 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', + link: '/tools/photo-enhancer', + tag: 'Iris Sharpness', + }, +]; + +export function MediaShowcaseSection({ + title = 'Visual Media & Transformation Reel', + badge = 'CURATED CREATIVE GALLERY', + subtitle = 'Explore high-resolution photography, 4K video clips, and creative transformations produced by CRE neural tools.', + items = DEFAULT_MEDIA_ITEMS, +}: MediaShowcaseProps) { + const mediaItems = items && items.length > 0 ? items : DEFAULT_MEDIA_ITEMS; + + return ( +
+ {/* Ambient background glow */} +
+ +
+ {/* Section Header */} +
+
+
+ + + {badge} + +
+

+ {' '} + + Transformation Reel + +

+

+ {subtitle} +

+
+ +
+ + Explore The Suite + + +
+
+ + {/* Dynamic Media Grid: Video Cards, Photo Showcases & Side-by-Side Frames */} +
+ {mediaItems.map((item) => ( + + ))} +
+
+
+ ); +} + +function MediaCard({ item }: { item: MediaItem }) { + const videoRef = useRef(null); + const [isPlaying, setIsPlaying] = useState(false); + const [isMuted, setIsMuted] = useState(true); + + const togglePlay = () => { + if (!videoRef.current) return; + if (isPlaying) { + videoRef.current.pause(); + setIsPlaying(false); + } else { + videoRef.current.play().catch(() => {}); + setIsPlaying(true); + } + }; + + const toggleMute = () => { + if (!videoRef.current) return; + videoRef.current.muted = !isMuted; + setIsMuted(!isMuted); + }; + + return ( + + + +
+ {/* Card Header Tag */} +
+
+ + {item.type === 'video' ? : } + {item.category} + +
+ {item.badge && ( + + {item.badge} + + )} +
+ + {/* Media Viewport Container */} +
+ {item.type === 'video' && item.videoUrl ? ( + /* HTML5 Video Player Viewport */ +
+
+ ) : item.type === 'comparison' && item.beforeUrl && item.afterUrl ? ( + /* Clean Side-by-Side Dual Split Frame */ +
+
+ {/* eslint-disable-next-line @next/next/no-img-element */} + Original source + + RAW INPUT + +
+
+ {/* eslint-disable-next-line @next/next/no-img-element */} + CRE Reconstructed result + + CRE AI + +
+
+ ) : ( + /* High-Res Photo Showcase Viewport */ +
+ {/* eslint-disable-next-line @next/next/no-img-element */} + {item.title} +
+ {item.tag && ( + + {item.tag} + + )} +
+ )} +
+ + {/* Card Copy */} +

+ {item.title} +

+

+ {item.description} +

+
+ + {/* Action Link */} +
+ + Studio Preset + + + Open Tool + + +
+ + ); +} diff --git a/src/components/sections/SectionRenderer.tsx b/src/components/sections/SectionRenderer.tsx index 9a7dd5b..35bc47a 100644 --- a/src/components/sections/SectionRenderer.tsx +++ b/src/components/sections/SectionRenderer.tsx @@ -20,6 +20,7 @@ import { RichTextSection } from './RichTextSection'; import { CtaBannerSection } from './CtaBannerSection'; import { NoticeSection } from './NoticeSection'; import { TransformationReelSection } from './TransformationReelSection'; +import { MediaShowcaseSection } from './MediaShowcaseSection'; import { VisualUseCasesSection } from './VisualUseCasesSection'; import { WorkflowVisualizerSection } from './WorkflowVisualizerSection'; import { VerticalToolStackSection } from './VerticalToolStackSection'; @@ -69,7 +70,9 @@ export function SectionRenderer({ section, context }: SectionRendererProps) { ); case 'transformationReel': - return ; + case 'mediaShowcase': + case 'mediaReel': + return ; case 'majorToolBanners': case 'cinematicHorizontal': diff --git a/src/components/sections/VerticalToolStackSection.tsx b/src/components/sections/VerticalToolStackSection.tsx index c5e4e18..520d008 100644 --- a/src/components/sections/VerticalToolStackSection.tsx +++ b/src/components/sections/VerticalToolStackSection.tsx @@ -41,13 +41,32 @@ const ICON_MAP: Record = { // Architecture badges mapped by tool id const MODEL_BADGES: Record = { 'face.blemish.remove': { model: 'RetouchGAN v2.1', latency: '< 380ms', chip: 'Sub-Pore Texture' }, - 'face.teeth.whiten': { model: 'DentiClear AI', latency: '< 290ms', chip: 'Enamel Lustre Preservation' }, - 'bg.p3m.matting': { model: 'P3M-Net Alpha', latency: '< 520ms', chip: 'Hair-Strand Precision' }, - 'restore.photo.enhance': { model: 'GFPGAN + RealESRGAN', latency: '< 460ms', chip: '4K Super-Resolution' }, - 'restore.photo.old': { model: 'ScratchDeNet Pro', latency: '< 490ms', chip: 'Crack & Tear Inpainting' }, - 'restore.photo.colorize': { model: 'DeOldify Chroma', latency: '< 420ms', chip: 'Historical Palette AI' }, - 'art.cartoon.caricature': { model: 'AnimeGAN v3 Core', latency: '< 350ms', chip: 'Vector Line Art' }, - 'art.polaroid.fx': { model: 'AnalogFilm Studio', latency: '< 240ms', chip: 'Halide Grain Synthesis' }, + 'face.teeth.whitener': { model: 'DentiClear AI', latency: '< 290ms', chip: 'Enamel Lustre Preservation' }, + 'cutout.p3m.bg': { model: 'P3M-Net Alpha', latency: '< 520ms', chip: 'Hair-Strand Precision' }, + 'restore.enhancer': { model: 'GFPGAN + RealESRGAN', latency: '< 460ms', chip: '4K Super-Resolution' }, + 'restore.oldphoto': { model: 'ScratchDeNet Pro', latency: '< 490ms', chip: 'Crack & Tear Inpainting' }, + 'restore.colorization': { model: 'DeOldify Chroma', latency: '< 420ms', chip: 'Historical Palette AI' }, + 'art.cartoon.gan': { model: 'AnimeGAN v3 Core', latency: '< 350ms', chip: 'Vector Line Art' }, + 'art.polaroid.film': { model: 'AnalogFilm Studio', latency: '< 240ms', chip: 'Halide Grain Synthesis' }, +}; + +const ACCENT_STYLES: Record = { + 'background-cutout': { + badge: 'bg-blue-50 border-blue-200 text-blue-700', + text: 'text-blue-600', + }, + 'restoration': { + badge: 'bg-emerald-50 border-emerald-200 text-emerald-700', + text: 'text-emerald-600', + }, + 'creative-art': { + badge: 'bg-purple-50 border-purple-200 text-purple-700', + text: 'text-purple-600', + }, + 'portrait-retouch': { + badge: 'bg-amber-50 border-amber-200 text-amber-700', + text: 'text-amber-600', + }, }; export function VerticalToolStackSection({ context }: VerticalToolStackProps) { @@ -163,9 +182,9 @@ export function VerticalToolStackSection({ context }: VerticalToolStackProps) {
- {/* Symmetrical Full-Width Tool Cards */} -
- {catTools.map((tool) => { + {/* Dynamic Multi-Format Tool Cards with Alternating Layouts */} +
+ {catTools.map((tool, toolIdx) => { const badgeInfo = MODEL_BADGES[tool.id] || { model: 'Neural Vision v2.0', latency: '< 450ms', @@ -177,47 +196,124 @@ export function VerticalToolStackSection({ context }: VerticalToolStackProps) { caption: 'Interactive Before/After Preview', }; - const isBanner = (tool as any).variant === 'banner' || (tool as any).previewType === 'banner' || !example.after; + const isZigZag = toolIdx % 2 === 1; + const isMattingTool = tool.id === 'cutout.p3m.bg'; + const isTeethTool = tool.id === 'face.teeth.whitener'; + const isArtTool = tool.category === 'creative-art' || tool.id === 'art.cartoon.gan'; + const isBanner = (tool as any).variant === 'banner' || (tool as any).previewType === 'banner' || isTeethTool || !example.after; + + // Category accent styles + const accent = ACCENT_STYLES[tool.category] || ACCENT_STYLES['portrait-retouch']; return ( {/* 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 */} + {/* Symmetrical Two-Column Content Grid with Alternating Zig-Zag Flow */}
- {/* Left Details Column */} + {/* Visual Media Viewport */} +
+ {isMattingTool ? ( + /* VARIATION B: Side-by-Side Transparent Alpha Cutout Frame with Checkerboard */ +
+
+ {/* eslint-disable-next-line @next/next/no-img-element */} + Source Portrait + + RAW PORTRAIT + +
+
+ {/* eslint-disable-next-line @next/next/no-img-element */} + P3M Cutout + + ALPHA PNG STREAM + +
+
+ ) : isBanner ? ( + /* VARIATION C: Editorial Studio Luminescence Banner */ +
+ {/* eslint-disable-next-line @next/next/no-img-element */} + {resolveLocalised(tool.name, +
+
+ + STUDIO PRESET • {badgeInfo.model} + +
+
+ Enamel Lustre Preservation + Lossless Output +
+
+ ) : ( + /* VARIATION A: Interactive 3D Before/After Slider */ +
+ +
+ )} +
+ + {/* Editorial Details Column */}
-

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

+
+ + {badgeInfo.chip} + +

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

+
+

{resolveLocalised(tool.summary, locale)}

{/* Features Checklist */} -
+
Sub-pixel edge and realistic texture preservation @@ -233,7 +329,7 @@ export function VerticalToolStackSection({ context }: VerticalToolStackProps) {
{/* Action Buttons */} -
+
- - {/* 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} - -
-
- ) : ( - - )} -
);