Skip to content

Commit

Permalink
Content(countdown): start countdown to first round
Browse files Browse the repository at this point in the history
  • Loading branch information
ThulinaWickramasinghe committed Sep 18, 2024
1 parent 7bc2a1d commit 6b4b504
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/2024/src/components/landing/countdown/index.jsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { Separator } from '@/components/common/separator/index';
import { TIME_AWARENESS_SESSION_START } from '@/constants/dates';
import { TIME_FIRST_ROUND_START } from '@/constants/dates';
import { useCountdown } from '@/hooks';
import TimeItem from './time-item';

const CountDown = () => {
const { days, hours, minutes, seconds } = useCountdown({ targetDate: TIME_AWARENESS_SESSION_START });
const { days, hours, minutes, seconds } = useCountdown({ targetDate: TIME_FIRST_ROUND_START });

return (
<div className="bg-white text-center rounded-[15px] ">
<div className="pt-3 lg:pt-5 font-consolas text-black/70">Awareness Session Starts In</div>
<div className="pt-3 lg:pt-5 font-consolas text-black/70">First Round Starts In</div>
<div className="flex px-6 lg:px-8 pb-4 lg:pb-5 pt-2 font-inter">
<TimeItem key={'d'} value={days} unit="DD" />
<Separator />
Expand Down
1 change: 1 addition & 0 deletions apps/2024/src/constants/dates.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export const CURRENT_YEAR = 2024;
export const TIME_REGISTRATION_CLOSING = 'September 29, 2024 23:59:00';
export const TIME_AWARENESS_SESSION_START = 'September 13, 2024 19:00:00';
export const TIME_FIRST_ROUND_START = 'October 6, 2024 10:00:00';

0 comments on commit 6b4b504

Please sign in to comment.