diff --git a/src/components/Hero/HeroSection.js b/src/components/Hero/HeroSection.js index 257e744..9696a23 100644 --- a/src/components/Hero/HeroSection.js +++ b/src/components/Hero/HeroSection.js @@ -1,4 +1,5 @@ -import React, {useState} from "react"; +"use client" +import { useState, useEffect } from "react"; import heroText from "../../../public/images/HeroText.svg"; import linkArrow from "../../../public/images/LinkArrow.svg"; import regButton from "../../../public/images/RegisterButton.svg"; @@ -7,14 +8,13 @@ import HeroSectionImg from "../../../public/images/HeroSection.svg" function HeroSection() { const [isHovered, setIsHovered] = useState(false); - return (
-
+
#
-
+
THINK OUTSIDE THE BOX
HACK INSIDE IT
-
+
Dig deeper
-
+
#
-
setIsHovered(true)} - onMouseLeave={() => setIsHovered(false)} +
+
+
setIsHovered(true)} + onMouseLeave={() => setIsHovered(false)}> + {isHovered ? ( - # + < img src={regButtonHover.src} alt="#" /> ) : ( - # + # )} +
diff --git a/src/pages/_document.js b/src/pages/_document.js index f311286..39f4f9f 100644 --- a/src/pages/_document.js +++ b/src/pages/_document.js @@ -50,7 +50,7 @@ export default function Document() {
- {/* */} + ) diff --git a/src/pages/index.js b/src/pages/index.js index 7bf6d41..e76b544 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -14,6 +14,7 @@ import Track from "../components/track"; import Footer from "../components/Footer"; import HeroSection from "../components/Hero/HeroSection"; import JudgesSection from "../components/Judges/JudgesSection"; +import Script from "next/script"; @@ -21,7 +22,7 @@ import JudgesSection from "../components/Judges/JudgesSection"; export default function Home() { return (
- +