From d23328763b90eb52cac9034e51313687d975b9b5 Mon Sep 17 00:00:00 2001 From: WalkeU Date: Wed, 15 Oct 2025 15:20:23 +0200 Subject: [PATCH] footer fix meg landingon --- .../src/components/Footer/Footer.jsx | 77 ++++++++----------- .../components/Landingpage/LandingPage.jsx | 12 ++- SerpentRace_Frontend/src/pages/Home/Home.jsx | 2 +- 3 files changed, 42 insertions(+), 49 deletions(-) diff --git a/SerpentRace_Frontend/src/components/Footer/Footer.jsx b/SerpentRace_Frontend/src/components/Footer/Footer.jsx index 2752c031..395d8dbd 100644 --- a/SerpentRace_Frontend/src/components/Footer/Footer.jsx +++ b/SerpentRace_Frontend/src/components/Footer/Footer.jsx @@ -1,43 +1,17 @@ -import React, { useEffect, useRef, useState } from "react" +import React from "react" import { Link } from "react-router-dom" import Logo from "../../assets/pictures/Logo" - const ArrowUpIcon = () => const Footer = () => { - const [isVisible, setIsVisible] = useState(false) - const footerRef = useRef(null) - - useEffect(() => { - const observer = new IntersectionObserver( - ([entry]) => { - setIsVisible(entry.isIntersecting) - }, - { threshold: 0.3 } - ) - - if (footerRef.current) { - observer.observe(footerRef.current) - } - - return () => { - if (footerRef.current) { - observer.unobserve(footerRef.current) - } - } - }, []) - const scrollToTop = () => { window.scrollTo({ top: 0, behavior: "smooth" }) } return (