Skip to content

Commit

Permalink
remove count down
Browse files Browse the repository at this point in the history
  • Loading branch information
dimasma0305 committed Oct 10, 2024
1 parent 961b01c commit 320df1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/app/tcp1pctf-2024/countdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export function Countdown({ endDate }: { endDate: number }) {
setTimeLeft(calculateTimeLeft());
}, 1000);

// Clear the interval when the component unmounts
return () => clearInterval(timer);
}, []);

Expand All @@ -18,7 +17,6 @@ export function Countdown({ endDate }: { endDate: number }) {
const difference = endDate - now;

if (difference <= 0) {
// Timer has expired, you can handle this case as needed
return { days: 0, hours: 0, minutes: 0, seconds: 0 };
}

Expand Down
4 changes: 2 additions & 2 deletions src/app/tcp1pctf-2024/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export default function Page() {
<div className="items-center">
<h1 className="text-6xl">TCP1P CTF 2024</h1>
<p>Exploring Nusantara's Digital Realm</p>
<div className="flex flex-col w-full items-center mt-3">
{/* <div className="flex flex-col w-full items-center mt-3">
<Countdown endDate={ctfDate}></Countdown>
</div>
</div> */}
<div className="divider"></div>
<p className="text-justify">TCP1PCTF 2024 is an annual Capture The Flag (CTF) event organized by the TCP1P community. This marks the second edition of our international CTF event. This thrilling CTF follows a jeopardy-style format and encompasses a variety of challenges ranging in difficulty from easy to medium-high. Participants will have the opportunity to test their skills and knowledge across various categories, ensuring a diverse and engaging experience.</p>
</div>
Expand Down

0 comments on commit 320df1f

Please sign in to comment.