From 2c07e9c265c3a6335b9b23695ce4e147be1ab53f Mon Sep 17 00:00:00 2001 From: Saket Aryan Date: Sun, 9 Oct 2022 12:29:11 +0530 Subject: [PATCH 1/2] Removed The Count Down Timer as the count down is over --- components/Hero/index.tsx | 51 +-------------------------------------- 1 file changed, 1 insertion(+), 50 deletions(-) diff --git a/components/Hero/index.tsx b/components/Hero/index.tsx index 5a2dd4a..3bbdee3 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,29 +27,6 @@ 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 = () => {
+ -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
); From fff53d306459587bf0653a987eabd63c3ed6593e Mon Sep 17 00:00:00 2001 From: Saket Aryan Date: Sun, 9 Oct 2022 13:31:12 +0530 Subject: [PATCH 2/2] Changed Gap Size From components/Hero/Index.tsx line no. 35 changed from gap-10 to gap-16 --- components/Hero/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Hero/index.tsx b/components/Hero/index.tsx index 3bbdee3..3cf46a0 100644 --- a/components/Hero/index.tsx +++ b/components/Hero/index.tsx @@ -32,7 +32,7 @@ const HeroSection: FunctionComponent = () => { <>