diff --git a/components/firstpage.js b/components/firstpage.js index 7d7b312..87cac08 100644 --- a/components/firstpage.js +++ b/components/firstpage.js @@ -1,24 +1,10 @@ -"use client" import Image from "next/image"; import Link from "next/link"; import logo from "@/app/hero/logo.png"; -import React, { useState, useEffect } from "react"; +import React from "react"; import photo from "@/app/hero/card.png"; export default function FirstPage() { - const [scrollY, setScrollY] = useState(0); - - useEffect(() => { - const handleScroll = () => { - setScrollY(window.scrollY); - }; - - window.addEventListener("scroll", handleScroll); - return () => { - window.removeEventListener("scroll", handleScroll); - }; - }, []); - return (