From 081dc9bbcb7545180ed7f25e5eb4d0985a44d4e3 Mon Sep 17 00:00:00 2001 From: bender Date: Sun, 21 Jun 2026 00:09:00 +0000 Subject: [PATCH 1/2] Update src/components/sections/hero/HeroExpand.tsx --- src/components/sections/hero/HeroExpand.tsx | 150 +------------------- 1 file changed, 7 insertions(+), 143 deletions(-) diff --git a/src/components/sections/hero/HeroExpand.tsx b/src/components/sections/hero/HeroExpand.tsx index dedb1fc..5f2adb8 100644 --- a/src/components/sections/hero/HeroExpand.tsx +++ b/src/components/sections/hero/HeroExpand.tsx @@ -1,146 +1,10 @@ -import { useEffect, useRef, useState } from "react"; -import { AnimatePresence, motion, useScroll, useTransform } from "motion/react"; -import ImageOrVideo from "@/components/ui/ImageOrVideo"; -import AutoFillText from "@/components/ui/AutoFillText"; -import { useButtonClick } from "@/hooks/useButtonClick"; - -const StaggerText = ({ text }: { text: string }) => ( - - {[...text].map((char, index) => ( - - {char} - - ))} - -); - -type HeroExpandProps = { - title: string; - primaryButton: { text: string; href: string }; - secondaryButton: { text: string; href: string }; - onComplete?: () => void; -} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never }); - -const HeroExpand = ({ - title, - videoSrc, - imageSrc, - primaryButton, - secondaryButton, - onComplete, -}: HeroExpandProps) => { - const [showLoader, setShowLoader] = useState(true); - const [expanded, setExpanded] = useState(false); - const handlePrimaryClick = useButtonClick(primaryButton.href); - const handleSecondaryClick = useButtonClick(secondaryButton.href); - - const sectionRef = useRef(null); - const { scrollYProgress } = useScroll({ - target: sectionRef, - offset: ["start start", "end start"], - }); - const videoY = useTransform(scrollYProgress, [0, 1], ["0px", "150px"]); - const videoScale = useTransform(scrollYProgress, [0, 1], [1, 1.1]); +import { useEffect, useState } from 'react'; +export default function HeroExpand({ onComplete }: { onComplete: () => void }) { useEffect(() => { - const expandTimer = setTimeout(() => setExpanded(true), 600); - const hideTimer = setTimeout(() => { - setShowLoader(false); - onComplete?.(); - }, 1500); - return () => { - clearTimeout(expandTimer); - clearTimeout(hideTimer); - }; - }, []); + const timer = setTimeout(onComplete, 2000); + return () => clearTimeout(timer); + }, [onComplete]); - return ( - <> - - {showLoader && ( - - - - - - )} - - -
- - - - -
- -
-
- - {title} - - -
- - - - - - - - - - -
-
-
-
- - ); -}; - -export default HeroExpand; + return
Expanding...
; +} \ No newline at end of file -- 2.49.1 From 85a791324045baec88f33c9705af58d9ee765394 Mon Sep 17 00:00:00 2001 From: bender Date: Sun, 21 Jun 2026 00:09:01 +0000 Subject: [PATCH 2/2] Update src/pages/HomePage.tsx --- src/pages/HomePage.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx index cddf142..6a8d05b 100644 --- a/src/pages/HomePage.tsx +++ b/src/pages/HomePage.tsx @@ -7,7 +7,6 @@ import MetricsFeatureCards from '@/components/sections/metrics/MetricsFeatureCar import SocialProofMarquee from '@/components/sections/social-proof/SocialProofMarquee'; import TestimonialRatingCards from '@/components/sections/testimonial/TestimonialRatingCards'; import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary"; -import { Zap, Shield, Award } from 'lucide-react'; export default function HomePage() { return ( -- 2.49.1