diff --git a/content/templates/tool.json b/content/templates/tool.json index cd82dcf..e49908f 100644 --- a/content/templates/tool.json +++ b/content/templates/tool.json @@ -10,21 +10,6 @@ "subtitle": "{{tool.summary}}", "breadcrumbs": true } - }, - { - "id": "tool-beforeafter", - "type": "beforeAfter", - "props": { - "title": { - "en": "Real Before & After Result", - "hi": "वास्तविक पहले और बाद का परिणाम" - }, - "subtitle": { - "en": "Inspect sub-pixel neural transformation details with the interactive comparison slider.", - "hi": "इंटरैक्टिव तुलना स्लाइडर के साथ विवरणों का निरीक्षण करें।" - }, - "items": "{{tool.content.examples}}" - } } ] } diff --git a/src/components/sections/HeroSection.tsx b/src/components/sections/HeroSection.tsx index d35a3b4..1698a90 100644 --- a/src/components/sections/HeroSection.tsx +++ b/src/components/sections/HeroSection.tsx @@ -1,14 +1,27 @@ 'use client'; -import React from 'react'; +import React, { useState } from 'react'; import Link from 'next/link'; -import { Sparkles, ArrowRight, Smartphone, Layers, ShieldCheck, LockKeyhole, ImagePlus, Check, Zap } from 'lucide-react'; +import { + Sparkles, + ArrowRight, + Smartphone, + Layers, + ShieldCheck, + LockKeyhole, + ImagePlus, + Check, + Zap, + UploadCloud, + SlidersHorizontal, +} from 'lucide-react'; import { resolveLocalised, ToolItem, AppItem, VariantSpec } from '@/types'; import { TryItWidget } from './TryItWidget'; import { HeroPrism } from '@/components/3d/HeroPrism'; import { Kinetic3DText } from '@/components/ui/Kinetic3DText'; import { ShimmerBadge } from '@/components/animate-ui/ShimmerBadge'; import { CardBeforeAfterSlider } from '@/components/ui/CardBeforeAfterSlider'; +import { BeforeAfterSlider } from '@/components/ui/BeforeAfterSlider'; interface HeroSectionProps { title?: any; @@ -34,6 +47,7 @@ export function HeroSection({ variants = [], locale = 'en', }: HeroSectionProps) { + const [mobileTab, setMobileTab] = useState<'upload' | 'compare'>('upload'); const resolvedTitle = resolveLocalised(title, locale); const resolvedSubtitle = resolveLocalised(subtitle, locale); const resolvedBadge = resolveLocalised(badge, locale); @@ -92,15 +106,20 @@ export function HeroSection({ if (variant === 'toolHero' && tool) { const categoryName = tool.category?.replace('-', ' ').toUpperCase() || 'AI TOOL'; const appName = homeApp ? resolveLocalised(homeApp.name, locale) : 'Mobile App'; + const primaryExample = tool.content?.examples?.[0] || { + before: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80', + after: 'https://images.unsplash.com/photo-1578632767115-351597cf2477?w=800&auto=format&fit=crop&q=80', + caption: 'Sub-pixel neural transformation details', + }; return ( -
+
{/* Ambient subtle warm gradient */}
-
+
{/* Breadcrumb Navigation */} -