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 && (
-
-
-
-
-
- )}
-
-
-
- >
- );
-};
-
-export default HeroExpand;
+ return Expanding...
;
+}
\ No newline at end of file
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 (