- {/* Balanced, Readable Subtitle (Inter / SF Pro) */}
+ {/* Balanced, Readable Subtitle */}
+ {/* Quick Feature Chips (aiease.ai style) */}
+
+
+ 🎯 Background Remover
+
+
+ ⚡ 4K Enhancer
+
+
+ ✨ Blemish Cleaner
+
+
+ 🎨 Vintage Restorer
+
+
+ 🎭 Anime Avatar
+
+
+
+ {/* Action Buttons */}
+
+ {/* ----------------------------------------------------------- */}
+ {/* HERO INTERACTIVE SHOWCASE CARD (AI Ease Style with 3D BorderBeam) */}
+ {/* ----------------------------------------------------------- */}
+
+
{/* Trust Badges Strip */}
-
+
Zero-Storage Guarantee
@@ -224,19 +264,288 @@ export function HeroSection({
< 0.8s Inference
-
- {/* Gentle Scroll Cue */}
-
- Scroll to Explore
-
-
-
-
);
}
+
+// ---------------------------------------------------------------------
+// Hero Showcase Card (Interactive Tabs + Live Slider + BorderBeam)
+// ---------------------------------------------------------------------
+function HeroShowcaseCard() {
+ const [activeTabIdx, setActiveTabIdx] = useState(0);
+ const [sliderPos, setSliderPos] = useState(50);
+ const [isHovered, setIsHovered] = useState(false);
+ const animRef = useRef
(null);
+
+ const activeTab = HERO_SHOWCASE_TABS[activeTabIdx];
+
+ // Smooth automatic oscillating sweep when not manually hovering
+ useEffect(() => {
+ let startTime = Date.now();
+ const animate = () => {
+ if (!isHovered) {
+ const elapsed = (Date.now() - startTime) / 1000;
+ const pos = 50 + Math.sin(elapsed * 1.8) * 22;
+ setSliderPos(pos);
+ }
+ animRef.current = requestAnimationFrame(animate);
+ };
+ animRef.current = requestAnimationFrame(animate);
+
+ return () => {
+ if (animRef.current) cancelAnimationFrame(animRef.current);
+ };
+ }, [isHovered]);
+
+ const handleMouseMove = (e: React.MouseEvent) => {
+ setIsHovered(true);
+ const rect = e.currentTarget.getBoundingClientRect();
+ const x = Math.max(0, Math.min(e.clientX - rect.left, rect.width));
+ const percent = Math.max(10, Math.min(90, (x / rect.width) * 100));
+ setSliderPos(percent);
+ };
+
+ const handleMouseLeave = () => {
+ setIsHovered(false);
+ };
+
+ return (
+
+ {/* Interactive Tabs Header */}
+
+ {HERO_SHOWCASE_TABS.map((tab, idx) => {
+ const isActive = idx === activeTabIdx;
+ const Icon = tab.icon;
+ return (
+
+ );
+ })}
+
+
+ {/* Main Interactive Showcase Card with BorderBeam & 3D Perspective */}
+
+ {/* MagicUI BorderBeam Glow running around perimeter */}
+
+
+ {/* Comparison Viewport */}
+
+ {/* Before Image (Locked centered scale) */}
+

+
+ {/* After Image (Clipped via clip-path) */}
+

+
+ {/* Glowing Slider Line */}
+
+
+ {/* 4 Floating Corner Telemetry Badges */}
+
+
+
+ {activeTab.badge}
+
+
+
+
+
+
+ < 0.8s Inference
+
+
+
+
+
+
+ Zero Cloud Retention
+
+
+
+
+
+ AFTER | BEFORE
+
+
+
+
+ {/* Bottom Quick Action Bar */}
+
+
+ {activeTab.label}: {activeTab.tagline}
+
+
+
+
+
Try with Your Photo Free
+
+
+
+
+
+ );
+}
+
+// -------------------------------------------------------------
+// Interactive 3D WebGL Crystal Prism Background Canvas
+// -------------------------------------------------------------
+function Hero3DCanvas({ className }: { className?: string }) {
+ const containerRef = useRef(null);
+
+ useEffect(() => {
+ const container = containerRef.current;
+ if (!container) return;
+
+ let width = container.clientWidth || 600;
+ let height = container.clientHeight || 600;
+
+ const scene = new THREE.Scene();
+ const camera = new THREE.PerspectiveCamera(45, width / height, 0.1, 100);
+ camera.position.z = 4.2;
+
+ 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 (e) {
+ return;
+ }
+
+ // Geometry: Floating Octahedron Crystal Prism
+ const geometry = new THREE.OctahedronGeometry(1.65, 0);
+ const material = new THREE.MeshPhysicalMaterial({
+ color: 0x2563eb,
+ emissive: 0x1d4ed8,
+ emissiveIntensity: 0.15,
+ roughness: 0.25,
+ metalness: 0.1,
+ transmission: 0.85,
+ transparent: true,
+ opacity: 0.75,
+ ior: 1.5,
+ });
+
+ const crystal = new THREE.Mesh(geometry, material);
+ scene.add(crystal);
+
+ // Wireframe Cage
+ const wireGeo = new THREE.WireframeGeometry(geometry);
+ const wireMat = new THREE.LineBasicMaterial({
+ color: 0x93c5fd,
+ transparent: true,
+ opacity: 0.35,
+ });
+ const wireframe = new THREE.LineSegments(wireGeo, wireMat);
+ crystal.add(wireframe);
+
+ // Subtle Particle Constellation
+ const particleCount = 40;
+ const particleGeo = new THREE.BufferGeometry();
+ const posArray = new Float32Array(particleCount * 3);
+ for (let i = 0; i < particleCount * 3; i++) {
+ posArray[i] = (Math.random() - 0.5) * 6;
+ }
+ particleGeo.setAttribute('position', new THREE.BufferAttribute(posArray, 3));
+ const particleMat = new THREE.PointsMaterial({
+ size: 0.04,
+ color: 0x60a5fa,
+ transparent: true,
+ opacity: 0.5,
+ });
+ const particles = new THREE.Points(particleGeo, particleMat);
+ scene.add(particles);
+
+ // Studio Lights
+ const ambientLight = new THREE.AmbientLight(0xffffff, 0.85);
+ scene.add(ambientLight);
+
+ const pointLight = new THREE.PointLight(0x06b6d4, 3, 10);
+ pointLight.position.set(3, 3, 3);
+ scene.add(pointLight);
+
+ const pointLight2 = new THREE.PointLight(0x4f46e5, 2.5, 10);
+ pointLight2.position.set(-3, -2, 2);
+ scene.add(pointLight2);
+
+ let animId = 0;
+ let clock = new THREE.Clock();
+
+ const animate = () => {
+ animId = requestAnimationFrame(animate);
+ const elapsed = clock.getElapsedTime();
+
+ crystal.rotation.x = elapsed * 0.18;
+ crystal.rotation.y = elapsed * 0.25;
+
+ particles.rotation.y = elapsed * 0.05;
+ particles.rotation.x = elapsed * 0.03;
+
+ 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);
+ }
+ geometry.dispose();
+ material.dispose();
+ renderer?.dispose();
+ };
+ }, []);
+
+ return ;
+}
diff --git a/src/components/sections/SectionRenderer.tsx b/src/components/sections/SectionRenderer.tsx
index d8ac306..90c5879 100644
--- a/src/components/sections/SectionRenderer.tsx
+++ b/src/components/sections/SectionRenderer.tsx
@@ -76,17 +76,19 @@ function SectionContent({ section, context }: SectionRendererProps) {
const resolvedProps = resolveBindings(section.props || {}, context, locale);
switch (section.type) {
- case 'hero':
+ case 'hero': {
+ const isHomePage = context.page?.slug === 'home' || context.page?.id === 'home' || !context.page?.slug;
return (
);
+ }
case 'shiftableToolsGrid':
case 'toolsGridShiftable':
diff --git a/src/components/sections/ShiftableToolsGridSection.tsx b/src/components/sections/ShiftableToolsGridSection.tsx
index b8a3708..2f3b165 100644
--- a/src/components/sections/ShiftableToolsGridSection.tsx
+++ b/src/components/sections/ShiftableToolsGridSection.tsx
@@ -27,14 +27,14 @@ interface ShiftableToolsGridProps {
}
const DEFAULT_TOOL_ITEMS: ToolMediaItem[] = [
- // ROW 1 (4 items)
+ // ROW 1 (4 items) - Landscape 16:9 assets
{
id: 'tool-blemish',
slug: 'blemish-remover',
title: 'Blemish & Acne Remover',
mediaType: 'comparison',
- beforeUrl: '/management/pages/tools/blemish-remover/media/before.jpg',
- afterUrl: '/management/pages/tools/blemish-remover/media/after.jpg',
+ beforeUrl: '/management/pages/home/media/landscape_blemish_before.jpg',
+ afterUrl: '/management/pages/home/media/landscape_blemish_after.jpg',
},
{
id: 'tool-bg-remover',
@@ -42,54 +42,56 @@ const DEFAULT_TOOL_ITEMS: ToolMediaItem[] = [
title: 'Background Remover (Alpha Matting)',
mediaType: 'video',
videoUrl: '/management/pages/home/media/sample_reel.mp4',
- poster: '/management/pages/home/media/reel_video_poster.jpg',
+ poster: '/management/pages/home/media/landscape_bg_matting.jpg',
},
{
id: 'tool-enhancer',
slug: 'photo-enhancer',
title: 'Photo Enhancer 4K',
mediaType: 'comparison',
- beforeUrl: '/management/pages/tools/photo-enhancer/media/before.jpg',
- afterUrl: '/management/pages/tools/photo-enhancer/media/after.jpg',
+ beforeUrl: '/management/pages/home/media/landscape_enhancer_before.jpg',
+ afterUrl: '/management/pages/home/media/landscape_enhancer_after.jpg',
},
{
id: 'tool-restorer',
slug: 'old-photo-restorer',
title: 'Vintage Photo Restorer',
- mediaType: 'photo',
- imageUrl: '/management/pages/home/media/reel_restore_after.jpg',
+ mediaType: 'comparison',
+ beforeUrl: '/management/pages/home/media/landscape_restore_before.jpg',
+ afterUrl: '/management/pages/home/media/landscape_restore_after.jpg',
},
- // ROW 2 (4 items)
+ // ROW 2 (4 items) - Landscape 16:9 assets
{
id: 'tool-colorization',
slug: 'colorization',
title: 'AI Colorizer',
mediaType: 'comparison',
- beforeUrl: '/management/pages/tools/colorization/media/before.jpg',
- afterUrl: '/management/pages/tools/colorization/media/after.jpg',
+ beforeUrl: '/management/pages/home/media/landscape_color_before.jpg',
+ afterUrl: '/management/pages/home/media/landscape_color_after.jpg',
},
{
id: 'tool-teeth',
slug: 'teeth-whitener',
title: 'Teeth Whitener & Brightener',
- mediaType: 'photo',
- imageUrl: '/management/pages/tools/teeth-whitener/media/after.jpg',
+ mediaType: 'comparison',
+ beforeUrl: '/management/pages/home/media/landscape_teeth_before.jpg',
+ afterUrl: '/management/pages/home/media/landscape_teeth_after.jpg',
},
{
id: 'tool-cartoon',
slug: 'cartoon-avatar',
title: 'Cartoon & Anime Avatar',
mediaType: 'comparison',
- beforeUrl: '/management/pages/tools/cartoon-avatar/media/before.jpg',
- afterUrl: '/management/pages/tools/cartoon-avatar/media/after.jpg',
+ beforeUrl: '/management/pages/home/media/landscape_cartoon_before.jpg',
+ afterUrl: '/management/pages/home/media/landscape_cartoon_after.jpg',
},
{
id: 'tool-polaroid',
slug: 'polaroid-maker',
title: 'Vintage Polaroid Maker',
mediaType: 'photo',
- imageUrl: '/management/pages/tools/polaroid-maker/media/after.jpg',
+ imageUrl: '/management/pages/home/media/landscape_polaroid.jpg',
},
];
@@ -170,10 +172,10 @@ function ShiftableRow({ items }: { items: ToolMediaItem[] }) {
onMouseLeave={() => setHoveredId(null)}
className={`w-full ${flexClass} transition-[flex-grow,flex-basis] duration-700 ease-[cubic-bezier(0.25,1,0.5,1)] flex flex-col flex-shrink-0 min-w-0`}
>
- {/* Window Container with strictly locked pixel height to eliminate any vertical resizing */}
+ {/* Window Container with strictly locked pixel height & landscape aspect */}
{/* Media Renderer */}
@@ -233,12 +235,10 @@ function ToolWindowMedia({ item, isHovered }: { item: ToolMediaItem; isHovered:
return;
}
- // If hovered and user is not manually dragging/scrubbing, smoothly oscillate slider
let startTime = Date.now();
const sweep = () => {
if (!isManualHover) {
const elapsed = (Date.now() - startTime) / 1000;
- // Smooth sine wave between 28% and 72%
const pos = 50 + Math.sin(elapsed * 2.2) * 24;
setSliderPos(pos);
}
@@ -266,10 +266,10 @@ function ToolWindowMedia({ item, isHovered }: { item: ToolMediaItem; isHovered:
setIsManualHover(false);
};
- // 1. VIDEO (Strictly locked to 100% width and height without any zooming or scaling)
+ // 1. VIDEO (Strictly locked to fixed 680px centered width - ZERO ZOOM)
if (item.mediaType === 'video' && item.videoUrl) {
return (
-
+
);
}
- // 2. COMPARISON: Pixel-perfect clip-path slider (ZERO distortion, real slider animation)
+ // 2. COMPARISON: Pixel-perfect clip-path slider (ZERO ZOOM - locked fixed scale & centered position)
if (item.mediaType === 'comparison' && item.beforeUrl && item.afterUrl) {
return (
- {/* BEFORE Image (Base layer, 100% full cover, zero stretch) */}
+ {/* BEFORE Image (Base layer, fixed scale & position, 0% zoom) */}

- {/* AFTER Image (Top layer clipped via CSS clip-path inset - NO SQUISHING OR RESIZING) */}
+ {/* AFTER Image (Top layer, exact same position & scale, clipped via clip-path) */}

{/* Circular Grab Handle with Before/After Arrow Cue */}
@@ -337,13 +337,13 @@ function ToolWindowMedia({ item, isHovered }: { item: ToolMediaItem; isHovered:
);
}
- // 3. PHOTO (Clean unscaled presentation)
+ // 3. PHOTO (Strictly locked to fixed 680px centered width - ZERO ZOOM)
return (
-