diff --git a/management/pages/home/media/sample_reel.mp4 b/management/pages/home/media/sample_reel.mp4 index 5d888c4..e782843 100644 Binary files a/management/pages/home/media/sample_reel.mp4 and b/management/pages/home/media/sample_reel.mp4 differ diff --git a/management/pages/home/sections/our-tools/background-remover/sample_reel.mp4 b/management/pages/home/sections/our-tools/background-remover/sample_reel.mp4 deleted file mode 120000 index c480983..0000000 --- a/management/pages/home/sections/our-tools/background-remover/sample_reel.mp4 +++ /dev/null @@ -1 +0,0 @@ -sample_video.mp4 \ No newline at end of file diff --git a/management/pages/home/sections/our-tools/background-remover/sample_reel.mp4 b/management/pages/home/sections/our-tools/background-remover/sample_reel.mp4 new file mode 100644 index 0000000..e782843 Binary files /dev/null and b/management/pages/home/sections/our-tools/background-remover/sample_reel.mp4 differ diff --git a/management/pages/home/sections/our-tools/background-remover/sample_video.mp4 b/management/pages/home/sections/our-tools/background-remover/sample_video.mp4 index 5d888c4..e782843 100644 Binary files a/management/pages/home/sections/our-tools/background-remover/sample_video.mp4 and b/management/pages/home/sections/our-tools/background-remover/sample_video.mp4 differ diff --git a/src/components/sections/HowItWorks3DSection.tsx b/src/components/sections/HowItWorks3DSection.tsx index 1824522..1cabdc9 100644 --- a/src/components/sections/HowItWorks3DSection.tsx +++ b/src/components/sections/HowItWorks3DSection.tsx @@ -6,16 +6,14 @@ import { Wand2, Download, Heart, - Smile, - Image as ImageIcon, - ArrowRight, - PartyPopper, - Camera, - Star, - CheckCircle2, - Play, + ArrowRight, + PartyPopper, + CheckCircle2, + Play, Pause, - RotateCcw + ArrowDown, + Camera, + Check } from 'lucide-react'; import { TextAnimate } from '@/components/magicui/text-animate'; @@ -34,11 +32,12 @@ export function HowItWorks3DSection({ const [isPaused, setIsPaused] = useState(false); const sectionRef = useRef(null); - // Auto-advance travelling image through steps with smart offscreen pause + // Auto-advance travelling image through cards with smart offscreen pause + // 100% safe on device battery and thermals: zero work when offscreen or tab hidden useEffect(() => { if (isPaused) return; const section = sectionRef.current; - let isVisible = false; // Must be false until IntersectionObserver confirms visibility + let isVisible = false; let timer: any = null; const runTimer = () => { @@ -86,18 +85,18 @@ export function HowItWorks3DSection({
- {/* Playful Ambient Background Glows */} + {/* Playful Ambient Background Highlights */}
-
- {/* Playful & Warm Section Header */} +
+ {/* Playful & Warm Section Header with Quick Controls */}
@@ -115,32 +114,406 @@ export function HowItWorks3DSection({ {subtitle}

+ + {/* Step Selector Pills & Auto-Play Toggle */} +
+ + + + + +
- {/* 1. Dynamic Travelling Image Pipeline Animation */} - setIsPaused(!isPaused)} - /> + {/* ------------------------------------------------------------- + Three Connected Cards with Travelling Photo Journey Integrated Directly Within + ------------------------------------------------------------- */} +
+ {/* Desktop Connecting Conveyor Tracks Between the Cards */} +
+ {/* Travelling Active Pulse Energy Beam */} +
+
- {/* 2. Three Childhood & Friendly Horizontal Story Cards */} -
- {/* Step 1: Upload Your Picture */} - + {/* Desktop Floating Transfer Arrow Cues */} +
+
= 2 + ? 'bg-amber-500 border-amber-300 text-white shadow-md scale-110' + : 'bg-white border-slate-200 text-slate-400' + }`}> + +
+
+
+
+ +
+
- {/* Step 2: The Magic Happens */} - + {/* 3 Step Cards Grid */} +
+ + {/* ========================================================= + CARD 1: Pick Any Picture (Origin Dock) + ========================================================= */} +
setActiveStep(1)} + className={`group relative flex flex-col justify-between rounded-[36px] bg-white border p-6 sm:p-7 shadow-cream-sm transition-all duration-500 cursor-pointer ${ + activeStep === 1 + ? 'border-blue-500 ring-4 ring-blue-500/20 shadow-cream-lg -translate-y-1.5' + : 'border-slate-200/90 hover:border-blue-300 hover:shadow-cream-md' + }`} + > +
+ {/* Step Badge */} +
+
+ {activeStep === 1 && } + STEP 01 +
+ 📸 +
- {/* Step 3: Tada! Download & Enjoy */} - + {/* VISUAL DOCK 1: Raw Photo Drop & Origin Departure */} +
+ + {/* Photo Frame with Transition */} +
+ Your Photo + + {/* Tag badge */} +
+ + Raw Photo + + {activeStep === 1 && ( + 👇 + )} +
+
+ + {/* Flow cues */} +
+ {activeStep === 1 ? 'Photo Loaded' : 'Sent to Step 2'} + {activeStep > 1 && } +
+ + {activeStep === 1 && ( +
+ Travelling Next + +
+ )} +
+ + {/* Text Content */} +

+ 1. Pick Any Picture +

+

+ Grab any photo from your phone or laptop. Selfies, family portraits, vintage prints, or vacation snaps—everything transforms in seconds! +

+ + {/* Feature checkmarks */} +
    +
  • + + One-tap upload or drag & drop +
  • +
  • + + No sign-up or credit card required +
  • +
+
+ +
+ Instant upload + ⚡ Easy & Private +
+
+ + {/* Mobile Vertical Flow Arrow 1 -> 2 */} +
+
= 2 ? 'bg-amber-500 border-amber-300 text-white shadow-md' : 'bg-white border-slate-200 text-slate-400' + }`}> + +
+
+ + {/* ========================================================= + CARD 2: Some Magic Happens! (Transformation Dock) + ========================================================= */} +
setActiveStep(2)} + className={`group relative flex flex-col justify-between rounded-[36px] bg-white border p-6 sm:p-7 shadow-cream-sm transition-all duration-500 cursor-pointer ${ + activeStep === 2 + ? 'border-amber-500 ring-4 ring-amber-500/20 shadow-cream-lg -translate-y-1.5' + : 'border-slate-200/90 hover:border-amber-300 hover:shadow-cream-md' + }`} + > +
+ {/* Step Badge */} +
+
+ {activeStep === 2 && } + STEP 02 +
+ 🪄 +
+ + {/* VISUAL DOCK 2: In-Card Arrival, Laser Scan & Neural Crossfade */} +
+ + {/* Photo Frame Docked in Card 2 with Real-Time Crossfade */} +
+ {/* Before Image */} + Raw Photo Transforming + + {/* Transformed After Image */} + Transformed AI Image= 2 ? 'opacity-100' : 'opacity-0' + }`} + /> + + {/* Neural Laser Scanner Beam during Step 2 */} + {activeStep === 2 && ( +
+ )} + + {/* Tag badge */} +
+ + {activeStep === 2 ? 'AI Magic...' : activeStep === 3 ? 'Enhanced' : 'Awaiting'} + + {activeStep === 2 && ✨} +
+
+ + {/* Flow cues */} +
+ {activeStep === 2 ? 'Pixels Processing' : activeStep === 3 ? 'Magic Applied' : 'Dock Ready'} + {activeStep === 3 && } +
+ + {activeStep === 2 && ( +
+ Moving to 4K + +
+ )} +
+ + {/* Text Content */} +

+ 2. Some Magic Happens! +

+

+ Our neural AI waves its magic wand—dusting away marks, clarifying pupils, restoring crisp textures, and balancing vibrant colors in under a second! +

+ + {/* Feature checkmarks */} +
    +
  • + + Preserves real pores & authentic facial features +
  • +
  • + + Automated neural enhancement with zero guesswork +
  • +
+
+ +
+ Under 0.8 seconds + 🪄 Neural Engine +
+
+ + {/* Mobile Vertical Flow Arrow 2 -> 3 */} +
+
+ +
+
+ + {/* ========================================================= + CARD 3: Tada! Ready to Love (Arrival Masterpiece Dock) + ========================================================= */} +
setActiveStep(3)} + className={`group relative flex flex-col justify-between rounded-[36px] bg-white border p-6 sm:p-7 shadow-cream-sm transition-all duration-500 cursor-pointer ${ + activeStep === 3 + ? 'border-emerald-500 ring-4 ring-emerald-500/20 shadow-cream-lg -translate-y-1.5' + : 'border-slate-200/90 hover:border-emerald-300 hover:shadow-cream-md' + }`} + > +
+ {/* Step Badge */} +
+
+ {activeStep === 3 && } + STEP 03 +
+ 🎉 +
+ + {/* VISUAL DOCK 3: Finished 4K Arrival & Download State */} +
+ + {/* Masterpiece Photo Frame in Card 3 */} +
+ Finished 4K Masterpiece + + {/* Celebration badges */} +
+ + + Tada! Masterpiece + +
+ +
+ + + 4K Ready + +
+
+ + {/* Flow cues */} +
+ {activeStep === 3 ? 'Masterpiece Ready!' : 'Waiting for Arrival'} + {activeStep === 3 && } +
+ + {activeStep === 3 && ( +
+ Ready to Save + 🎉 +
+ )} +
+ + {/* Text Content */} +

+ 3. Tada! Ready to Love +

+

+ One tap to download your gorgeous new picture in crystal 4K resolution! No annoying watermarks, no compression artifacts, ready to share proudly. +

+ + {/* Feature checkmarks */} +
    +
  • + + Crisp high-definition 4K image export +
  • +
  • + + Zero watermarks or hidden payment traps +
  • +
+
+ +
+ Instant Download + 🎉 All Yours +
+
+ +
{/* Cheerful Bottom Reassurance Banner */} -
+
-
+
🎈
@@ -148,14 +521,14 @@ export function HowItWorks3DSection({ 100% Free Trial • No Credit Card • No Sign-Up Needed

- Anyone can do it in seconds. Your photos stay completely private and are never saved. + Anyone can do it in seconds. Your photos stay completely private on your own device and are never stored.

Try It Yourself Now @@ -165,477 +538,3 @@ export function HowItWorks3DSection({
); } - -// ------------------------------------------------------------- -// Travelling Image Transformation Pipeline -// ------------------------------------------------------------- -function TravellingTransformationPipeline({ - activeStep, - onSelectStep, - isPaused, - onTogglePause, -}: { - activeStep: 1 | 2 | 3; - onSelectStep: (step: 1 | 2 | 3) => void; - isPaused: boolean; - onTogglePause: () => void; -}) { - return ( -
- {/* Dynamic ambient background glow that shifts with active step */} -
- - {/* Pipeline Header: Progress Title & Interactive Step Selectors */} -
-
-
- - Live Photo Journey Pipeline -
-

- {activeStep === 1 && 'Step 1: Your original picture drops onto the conveyor'} - {activeStep === 2 && 'Step 2: AI Neural magic analyzes & transforms pixels'} - {activeStep === 3 && 'Step 3: Flawless 4K masterpiece is instantly ready!'} -

-
- - {/* Controls: Step Switchers & Play/Pause */} -
- - - - - -
-
- - {/* DESKTOP PIPELINE TRACK (hidden on small mobile, visible sm+) */} -
- {/* Conveyor Base Track Line */} -
- - {/* Animated Active Glowing Energy Beam */} -
- - {/* Station 1 Anchor Ring */} -
-
- 📸 -
- 1. Pick -
- - {/* Station 2 Anchor Ring */} -
-
- 🪄 -
- 2. Neural Magic -
- - {/* Station 3 Anchor Ring */} -
-
- 🎉 -
- 3. Download -
- - {/* THE TRAVELLING PHOTO CARD */} -
-
- {/* Raw Source Photo (active in step 1, crossfades out) */} - Source Raw Photo - - {/* AI Transformed Masterpiece Photo (fades in step 2 & 3) */} - Transformed Masterpiece= 2 ? 'opacity-100' : 'opacity-0' - }`} - /> - - {/* Step 2 Neural Laser Scanner Beam */} - {activeStep === 2 && ( -
- )} - - {/* Badges on Travelling Card */} -
- - {activeStep === 1 && 'Raw Photo'} - {activeStep === 2 && 'AI Magic...'} - {activeStep === 3 && '4K Masterpiece'} - - - {activeStep === 2 && ( - ✨ - )} - {activeStep === 3 && ( - 🎉 - )} -
-
-
-
- - {/* MOBILE PIPELINE TRACK (sm:hidden) */} -
- {/* Mobile Animated Travelling Card Stage */} -
-
- {/* Raw Photo */} - Source Photo - {/* Transformed Photo */} - Transformed Photo= 2 ? 'opacity-100' : 'opacity-0' - }`} - /> - - {/* Laser Beam during magic step */} - {activeStep === 2 && ( -
- )} - -
- - {activeStep === 1 && 'Step 1: Raw Photo'} - {activeStep === 2 && 'Step 2: AI Magic'} - {activeStep === 3 && 'Step 3: 4K Finished'} - -
-
- - {/* Dotted Step Bar on Mobile */} -
- {[1, 2, 3].map((s) => ( -
-
-
-
- ); -} - -// ------------------------------------------------------------- -// Card 1: Upload Your Picture (Super Warm & Visual) -// ------------------------------------------------------------- -function StepUploadCard({ isActive = false }: { isActive?: boolean }) { - return ( -
-
- {/* Step Badge */} -
-
- {isActive && } - STEP 01 -
- 📸 -
- - {/* Visual Animation: Friendly Photo Drop-In */} -
- {/* Animated floating dashed dropzone */} -
- {/* Playful Floating Photo Frame (GPU-composited CSS float, 0% JS overhead) */} -
- Your Photo -
- - {/* Little Cheerful Badges */} -
- Drop Any Photo - 👇 -
-
- Phone or Laptop - -
-
-
- - {/* Text */} -

- 1. Pick Any Picture -

-

- Grab any photo from your phone or computer. Selfies, family memories, portraits, or old albums—anything works like a charm! -

- - {/* Simple bullet points */} -
    -
  • - - Just tap or drag and drop -
  • -
  • - - No account or sign-up needed -
  • -
-
- -
- Ready in 1 second - ⚡ Quick & Easy -
-
- ); -} - -// ------------------------------------------------------------- -// Card 2: The Magic Happens (Playful & Magical) -// ------------------------------------------------------------- -function StepMagicCard({ isActive = false }: { isActive?: boolean }) { - return ( -
-
- {/* Step Badge */} -
-
- {isActive && } - STEP 02 -
- 🪄 -
- - {/* Visual Animation: Swirling Magical Portal */} -
- {/* Glowing Aura Ring — static, no animation to prevent thermal issues */} -
- - {/* Central Wand and Sparkling Swirl */} -
-
- -
- - {/* Stars — static, no spin to avoid continuous GPU paint */} -
- ✨ - ⭐ - 💫 - ✨ -
- -
- Mixing Magic Pixels... - 🪄 -
-
-
- - {/* Text */} -

- 2. Some Magic Happens! -

-

- Our friendly AI waves its magic wand—dusting away marks, cleaning backgrounds, brightening smiles, and restoring crisp details instantly! -

- - {/* Simple bullet points */} -
    -
  • - - Cleans blemishes & background gently -
  • -
  • - - Keeps your real smile & face natural -
  • -
-
- -
- Takes under a second - ✨ Pure Wonder -
-
- ); -} - -// ------------------------------------------------------------- -// Card 3: Tada! Your Picture is Ready (Celebration & Joy) -// ------------------------------------------------------------- -function StepTadaCard({ isActive = false }: { isActive?: boolean }) { - return ( -
-
- {/* Step Badge */} -
-
- {isActive && } - STEP 03 -
- 🎉 -
- - {/* Visual Animation: Sparking Gorgeous Final Output */} -
- {/* Finished Masterpiece Preview */} -
- Finished Photo - - {/* Tada Ribbon / Celebration Badge */} -
- - Tada! Masterpiece -
- -
- - Crystal 4K Ready -
-
-
- - {/* Text */} -

- 3. Tada! Ready to Love -

-

- One tap to download your gorgeous new picture in ultra-clear quality! No annoying watermarks, no limits, ready to share with family and friends. -

- - {/* Simple bullet points */} -
    -
  • - - Crisp high-definition download -
  • -
  • - - Zero watermarks or hidden charges -
  • -
-
- -
- Instant Download - 🎉 All Yours -
-
- ); -}