@@ -249,6 +249,49 @@ <h1>Summer Slams DSA25</h1>
249249 <!-- Place this inside your .glass-wrapper div, ideally below the round details -->
250250< a href ="https://unstop.com/p/summer-slams-dsa25-national-level-dsa-coding-challenge-fork-flow-community-1502768 " class ="register-btn "> Register Now</ a >
251251
252+ < div class ="section-title "> ⏳ Registration Starts In</ div >
253+ < div id ="countdown-timer " class ="countdown-box "> Loading...</ div >
254+
255+ < style >
256+ .countdown-box {
257+ font-size : 1.4rem ;
258+ font-weight : 600 ;
259+ color : # facc15 ;
260+ background-color : rgba (255 , 255 , 255 , 0.05 );
261+ padding : 10px 20px ;
262+ border-radius : 12px ;
263+ margin-top : 10px ;
264+ box-shadow : 0 0 10px rgba (250 , 204 , 21 , 0.2 );
265+ }
266+ </ style >
267+
268+ < script >
269+ function updateCountdown ( ) {
270+ const targetDate = new Date ( "June 20, 2025 11:00:00 GMT+0530" ) ; // IST
271+ const now = new Date ( ) ;
272+ const diff = targetDate - now ;
273+
274+ const countdownElement = document . getElementById ( "countdown-timer" ) ;
275+
276+ if ( diff <= 0 ) {
277+ countdownElement . innerHTML = "🎉 Registration is now open!" ;
278+ return ;
279+ }
280+
281+ const days = Math . floor ( diff / ( 1000 * 60 * 60 * 24 ) ) ;
282+ const hours = Math . floor ( ( diff / ( 1000 * 60 * 60 ) ) % 24 ) ;
283+ const minutes = Math . floor ( ( diff / ( 1000 * 60 ) ) % 60 ) ;
284+ const seconds = Math . floor ( ( diff / 1000 ) % 60 ) ;
285+
286+ countdownElement . innerHTML = `${ days } d ${ hours } h ${ minutes } m ${ seconds } s remaining` ;
287+ }
288+
289+ // Initial call and then update every second
290+ updateCountdown ( ) ;
291+ setInterval ( updateCountdown , 1000 ) ;
292+ </ script >
293+
294+
252295< style >
253296 .register-btn {
254297 display : inline-block;
0 commit comments