diff --git a/frontend/src/components/landing/LandingPage.tsx b/frontend/src/components/landing/LandingPage.tsx index da762d3..088cacc 100644 --- a/frontend/src/components/landing/LandingPage.tsx +++ b/frontend/src/components/landing/LandingPage.tsx @@ -4,7 +4,7 @@ import { useEffect, useRef, useState } from 'react'; import dynamic from 'next/dynamic'; import Lenis from 'lenis'; -import { setScroll, setPointer, flashState } from './scroll-store'; +import { setScroll, setPointer, flashState, setLenis } from './scroll-store'; import { SiteHeader } from './sections/SiteHeader'; import { Hero } from './sections/Hero'; import { ServicesBar } from './sections/ServicesBar'; @@ -14,6 +14,7 @@ import { HowItWorks } from './sections/HowItWorks'; import { Pricing } from './sections/Pricing'; import { Estimator } from './sections/Estimator'; import { Trust } from './sections/Trust'; +import { Blog } from './sections/Blog'; import { FinalCta } from './sections/FinalCta'; import { Footer } from './sections/Footer'; @@ -67,6 +68,7 @@ export function LandingPage() { } const lenis = new Lenis({ duration: 1.15, smoothWheel: true }); + setLenis(lenis); let raf = 0; const loop = (time: number) => { lenis.raf(time); @@ -79,6 +81,7 @@ export function LandingPage() { return () => { cancelAnimationFrame(raf); lenis.destroy(); + setLenis(null); }; }, [reduced]); @@ -104,6 +107,7 @@ export function LandingPage() { +