diff --git a/src/features/landing/LandingPage.lazy.tsx b/src/features/landing/LandingPage.lazy.tsx index 3cd6e13..495fd71 100644 --- a/src/features/landing/LandingPage.lazy.tsx +++ b/src/features/landing/LandingPage.lazy.tsx @@ -10,7 +10,7 @@ function LandingPage() { return (
-
+
diff --git a/src/features/landing/sections/Header.tsx b/src/features/landing/sections/Header.tsx index 03e7840..8d54835 100644 --- a/src/features/landing/sections/Header.tsx +++ b/src/features/landing/sections/Header.tsx @@ -1,7 +1,5 @@ import { Logo } from '@/components/layout/components' -import { PrimaryButton } from '@/components/ui' import { cn } from '@/utils' -import { Link } from '@tanstack/react-router' import { useState, useEffect } from 'react' export function Header() { @@ -9,15 +7,11 @@ export function Header() { useEffect(() => { function onScroll() { - setTimeout(() => { - // without setTimeout the scroll is blocked at the starting point because it gets snapped back - if (window.scrollY >= 20) { - setIsScrolled(true) - } else { - setIsScrolled(false) - window.scrollTo({ top: 0 }) - } - }, 200) + if (window.scrollY >= 20) { + setIsScrolled(true) + } else { + setIsScrolled(false) + } } window.addEventListener('scroll', onScroll) @@ -27,7 +21,7 @@ export function Header() { return (
@@ -40,9 +34,9 @@ export function Header() { Guide Contacts - - Start cubing now - + {/* */} + {/* Start cubing now */} + {/* */}
)