|
3 | 3 | import { useState } from 'react'; |
4 | 4 | import { getUpcomingEvents } from '@/lib/events'; |
5 | 5 |
|
| 6 | +const REGISTRATION_OPEN = false; // Toggle this to open/close registration |
| 7 | + |
6 | 8 | export default function RegisterPage() { |
7 | 9 | const upcomingEvents = getUpcomingEvents(); |
8 | 10 | const nextEvent = upcomingEvents[0]; |
@@ -133,19 +135,25 @@ export default function RegisterPage() { |
133 | 135 | }); |
134 | 136 | }; |
135 | 137 |
|
136 | | - if (!nextEvent) { |
137 | | - return ( |
| 138 | + // Registration is locked for this edition |
| 139 | + if(!REGISTRATION_OPEN) { |
| 140 | + return ( |
138 | 141 | <main className="min-h-screen bg-white dark:bg-[#36393f] darkest:bg-black pt-32 pb-16 px-4"> |
139 | 142 | <div className="max-w-2xl mx-auto text-center"> |
140 | | - <h1 className="text-4xl font-bold text-black dark:text-white darkest:text-white mb-4">Registration</h1> |
141 | | - <p className="text-lg text-black/60 dark:text-[#b9bbbe] darkest:text-white/60"> |
142 | | - No upcoming events are scheduled at the moment. Please check back later. |
143 | | - </p> |
| 143 | + <h1 className="text-4xl font-bold text-black dark:text-white darkest:text-white mb-4">Registration Closed</h1> |
| 144 | + <div className="bg-black/5 dark:bg-[#2f3136] darkest:bg-black border border-black/10 dark:border-[#40444b] darkest:border-white/20 rounded-lg p-8 mb-8"> |
| 145 | + <p className="text-lg text-black dark:text-white darkest:text-white mb-2"> |
| 146 | + Registration for this edition of the workshop is now <span className="font-semibold">closed</span>. |
| 147 | + </p> |
| 148 | + <p className="text-black/70 dark:text-[#b9bbbe] darkest:text-white/70"> |
| 149 | + Please wait for an announcement for the next one! |
| 150 | + </p> |
| 151 | + </div> |
144 | 152 | </div> |
145 | 153 | </main> |
146 | | - ); |
| 154 | + ) |
147 | 155 | } |
148 | | - |
| 156 | + else { |
149 | 157 | return ( |
150 | 158 | <main className="min-h-screen bg-white dark:bg-[#36393f] darkest:bg-black pt-32 pb-16 px-4"> |
151 | 159 | <div className="max-w-2xl mx-auto"> |
@@ -371,3 +379,4 @@ export default function RegisterPage() { |
371 | 379 | </main> |
372 | 380 | ); |
373 | 381 | } |
| 382 | +} |
0 commit comments