diff --git a/src/App.tsx b/src/App.tsx index 49ff7d2..1c72062 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,3 +1,5 @@ +import { useRef } from 'react'; +import useOnScreen from '@/hooks/useOnScreen'; import AboutMediaOverlay from '@/components/sections/about/AboutMediaOverlay'; import ContactSplitForm from '@/components/sections/contact/ContactSplitForm'; import FaqTwoColumn from '@/components/sections/faq/FaqTwoColumn'; @@ -9,8 +11,29 @@ import NavbarCentered from '@/components/ui/NavbarCentered'; import PricingHighlightedCards from '@/components/sections/pricing/PricingHighlightedCards'; import TestimonialOverlayCards from '@/components/sections/testimonial/TestimonialOverlayCards'; import { Award, CheckCircle, Zap } from "lucide-react"; +import './styles/animations.css'; export default function App() { + const heroRef = useRef(null); + const aboutRef = useRef(null); + const servicesRef = useRef(null); + const metricsRef = useRef(null); + const testimonialsRef = useRef(null); + const pricingRef = useRef(null); + const faqRef = useRef(null); + const contactRef = useRef(null); + const footerRef = useRef(null); + + const heroOnScreen = useOnScreen(heroRef, "-100px"); + const aboutOnScreen = useOnScreen(aboutRef, "-100px"); + const servicesOnScreen = useOnScreen(servicesRef, "-100px"); + const metricsOnScreen = useOnScreen(metricsRef, "-100px"); + const testimonialsOnScreen = useOnScreen(testimonialsRef, "-100px"); + const pricingOnScreen = useOnScreen(pricingRef, "-100px"); + const faqOnScreen = useOnScreen(faqRef, "-100px"); + const contactOnScreen = useOnScreen(contactRef, "-100px"); + const footerOnScreen = useOnScreen(footerRef, "-100px"); + return ( <> -
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-