From 54a01cc390ce2e30f359aa0f4b8c6ec8340209d8 Mon Sep 17 00:00:00 2001 From: Kevin Wu Date: Fri, 17 May 2024 03:22:50 -0700 Subject: [PATCH] feat: add brief and handbook --- .../components/SectionNavigation/index.jsx | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/app/pages/Designathons/Designathon24/components/SectionNavigation/index.jsx b/src/app/pages/Designathons/Designathon24/components/SectionNavigation/index.jsx index ac0434d8..297f6b40 100644 --- a/src/app/pages/Designathons/Designathon24/components/SectionNavigation/index.jsx +++ b/src/app/pages/Designathons/Designathon24/components/SectionNavigation/index.jsx @@ -1,16 +1,16 @@ -// import { useEffect, useState } from "react"; +import { useEffect, useState } from "react"; import cn from "./SectionNavigation.module.scss"; const SectionNavigation = () => { - // const [currentTime, setCurrentTime] = useState(() => new Date().getTime()); + const [currentTime, setCurrentTime] = useState(() => new Date().getTime()); - // useEffect(() => { - // const timer = setInterval(() => { - // setCurrentTime(new Date().getTime()); - // }, 1000); + useEffect(() => { + const timer = setInterval(() => { + setCurrentTime(new Date().getTime()); + }, 1000); - // return () => clearInterval(timer); - // }, []); + return () => clearInterval(timer); + }, []); const scrollToSection = (id) => { window.scrollTo({ @@ -45,21 +45,21 @@ const SectionNavigation = () => {
- {/* {currentTime > - new Date( - "Feb 24 2023 19:00:00 GMT-0800 (Pacific Standard Time)", - ).getTime() && ( + {currentTime > new Date(2024, 4, 17, 17, 30).getTime() && (

Challenge Brief

)} + { }} target="_blank" rel="noopener noreferrer" - href="https://forms.gle/hJmEGwbSc6mhqw9QA" + href="https://drive.google.com/file/d/16pPV0akDO-dMmDiPptWOdiBPETkGuw5o/view" > -

Submission Form

-
*/} +

Handbook

+
);