diff --git a/components/Hero/index.tsx b/components/Hero/index.tsx index 5a2dd4a..3cf46a0 100644 --- a/components/Hero/index.tsx +++ b/components/Hero/index.tsx @@ -6,20 +6,11 @@ import { useState, } from "react"; import Link from 'next/link'; -import Logo from "../Navbar/Logo"; -import GlowText from "../Reusable/GlowText"; -import GlowTextNormal from "../Reusable/GlowTextNormal"; import styles from "./Hero.module.css"; interface HeroSectionProps {} const HeroSection: FunctionComponent = () => { - const [date, setDate] = useState({ - day: 0, - hour: 0, - minute: 0, - second: 0, - }); const heroTextRef: MutableRefObject = useRef(); useEffect(() => { if (heroTextRef.current) { @@ -36,35 +27,12 @@ const HeroSection: FunctionComponent = () => { }, 3000); } }, []); - - useEffect(() => { - let countDownDate = new Date("October 01, 2022 00:00:00").getTime(); - let x = setInterval(function () { - let now = new Date().getTime(); - let distance = countDownDate - now; - - let days = Math.floor(distance / (1000 * 60 * 60 * 24)); - let hours = Math.floor( - (distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60) - ); - let minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); - let seconds = Math.floor((distance % (1000 * 60)) / 1000); - - setDate({ - day: days, - hour: hours, - minute: minutes, - second: seconds, - }); - }); - return () => clearInterval(x); - }, []); //

HACK CLUB ITER
in collaboration with
GDSC ITER presents

return ( <>
@@ -112,25 +80,8 @@ const HeroSection: FunctionComponent = () => {
+ -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
);