@@ -2,31 +2,17 @@ import { Container } from '@/components/ui/container';
22import React from 'react' ;
33import EventCard from './EventCard' ;
44import CountdownTimer from './CountdownTimer' ;
5+ import { type Event } from './EventCard' ;
56// import { Button } from '@/components/ui/button';
67// import Link from 'next/link';
78
8- interface Event {
9- title : string ;
10- date : string ;
11- location : string ;
12- variant : 'main' | 'regular' ;
13- link : string ;
14- }
15-
169const EVENTS : Event [ ] = [
1710 {
1811 title : 'PyCon Davao 2025' ,
19- date : 'October 25, 2025' ,
12+ date : [ 'October 25, 2025' , 'October 26, 2025' ] ,
2013 location : 'Ateneo de Davao University' ,
2114 variant : 'main' ,
22- link : 'https://techtix.durianpy.org/pycon-davao-2025' , // TODO: Update Link
23- } ,
24- {
25- title : 'PyCon Davao Sprint Day' ,
26- date : 'October 26, 2025' ,
27- location : 'TBA' ,
28- variant : 'regular' ,
29- link : '' , // TODO: Update Link
15+ link : 'https://techtix.durianpy.org/pycon-davao-2025' ,
3016 } ,
3117] ;
3218
@@ -43,7 +29,13 @@ const UpcomingEvents = () => {
4329
4430 { /* Countdown Timer */ }
4531 < div className = "block lg:block xl:hidden" >
46- < CountdownTimer eventDate = { new Date ( EVENTS [ 0 ] . date ) . toISOString ( ) } />
32+ < CountdownTimer
33+ eventDate = {
34+ Array . isArray ( EVENTS [ 0 ] . date )
35+ ? ( EVENTS [ 0 ] . date [ 0 ] ?? '' )
36+ : EVENTS [ 0 ] . date
37+ }
38+ />
4739 </ div >
4840
4941 { /* Other events */ }
0 commit comments