Skip to content

Commit d3272ec

Browse files
committed
Updated registration start
1 parent 6347134 commit d3272ec

File tree

1 file changed

+41
-16
lines changed

1 file changed

+41
-16
lines changed

src/components/Register.tsx

Lines changed: 41 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ type ProblemStatement = {
3232
export default function RegisterPage() {
3333
const navigate = useNavigate()
3434

35+
const registrationStartDate = new Date('2025-11-28T00:00:00')
3536
const registrationDeadline = new Date('2025-12-13T00:00:00')
36-
const isRegistrationOpen = new Date() < registrationDeadline
37+
const currentDate = new Date()
38+
const isRegistrationOpen = currentDate >= registrationStartDate && currentDate < registrationDeadline
3739

3840
const [currentStep, setCurrentStep] = useState(1)
3941
const [submitting, setSubmitting] = useState(false)
@@ -1047,21 +1049,44 @@ export default function RegisterPage() {
10471049
<div className="inline-flex p-6 bg-amber-100 rounded-full mb-8">
10481050
<Clock className="h-16 w-16 text-amber-600" />
10491051
</div>
1050-
<h1 className="text-4xl lg:text-5xl font-bold mb-6">
1051-
<span className="bg-gradient-to-r from-amber-600 to-orange-600 bg-clip-text text-transparent">
1052-
Registration Closed
1053-
</span>
1054-
</h1>
1055-
<div className="w-24 h-1 bg-gradient-to-r from-amber-600 to-orange-600 mx-auto mb-8 rounded-full"></div>
1056-
<p className="text-xl text-muted-foreground mb-8 leading-relaxed">
1057-
The registration period for HACKOVERFLOW-2K25 has ended.
1058-
We appreciate your interest in participating in our national-level hackathon.
1059-
</p>
1060-
<div className="bg-gradient-to-r from-amber-50 to-orange-50 border border-amber-200 rounded-2xl p-6 mb-8">
1061-
<p className="text-amber-800 font-medium">
1062-
Registration was open until <strong>December 13th, 2025 at 12:00 AM</strong>.
1063-
</p>
1064-
</div>
1052+
{currentDate < registrationStartDate && (
1053+
<>
1054+
<h1 className="text-4xl lg:text-5xl font-bold mb-6">
1055+
<span className="bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent">
1056+
Registration Opens Soon
1057+
</span>
1058+
</h1>
1059+
<div className="w-24 h-1 bg-gradient-to-r from-blue-600 to-purple-600 mx-auto mb-8 rounded-full"></div>
1060+
<p className="text-xl text-muted-foreground mb-8 leading-relaxed">
1061+
Get ready! Registration for HACKOVERFLOW-2K25 will open soon.
1062+
Stay tuned for the most exciting national-level hackathon.
1063+
</p>
1064+
<div className="bg-gradient-to-r from-blue-50 to-purple-50 border border-blue-200 rounded-2xl p-6 mb-8">
1065+
<p className="text-blue-800 font-medium">
1066+
Registration opens on <strong>November 28th, 2025 at 12:00 AM</strong>.
1067+
</p>
1068+
</div>
1069+
</>
1070+
)}
1071+
{ currentDate > registrationDeadline && (
1072+
<>
1073+
<h1 className="text-4xl lg:text-5xl font-bold mb-6">
1074+
<span className="bg-gradient-to-r from-amber-600 to-orange-600 bg-clip-text text-transparent">
1075+
Registration Closed
1076+
</span>
1077+
</h1>
1078+
<div className="w-24 h-1 bg-gradient-to-r from-amber-600 to-orange-600 mx-auto mb-8 rounded-full"></div>
1079+
<p className="text-xl text-muted-foreground mb-8 leading-relaxed">
1080+
The registration period for HACKOVERFLOW-2K25 has ended.
1081+
We appreciate your interest in participating in our national-level hackathon.
1082+
</p>
1083+
<div className="bg-gradient-to-r from-amber-50 to-orange-50 border border-amber-200 rounded-2xl p-6 mb-8">
1084+
<p className="text-amber-800 font-medium">
1085+
Registration was open until <strong>December 13th, 2025 at 12:00 AM</strong>.
1086+
</p>
1087+
</div>
1088+
</>
1089+
)}
10651090
<div className="space-y-4">
10661091
<p className="text-muted-foreground">
10671092
Stay tuned for future announcements and events from SRKR Coding Club!

0 commit comments

Comments
 (0)