-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e04cbac
commit cc979ef
Showing
7 changed files
with
63 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
import dayjs from "dayjs"; | ||
import dayjs from 'dayjs'; | ||
|
||
export const event = { | ||
iteration: '11.0', | ||
year: '2024', | ||
start: dayjs('2/24/2024 11:30'), | ||
end: dayjs('2/25/2024 8:00'), | ||
sponsorshipPacket: 'sponsorship11_0.pdf' | ||
} | ||
iteration: '11.0', | ||
year: '2024', | ||
start: dayjs('2/24/2024 11:30'), | ||
end: dayjs('2/25/2024 8:00'), | ||
sponsorshipPacket: 'sponsorship11_0.pdf' | ||
}; | ||
|
||
export const location = { | ||
name: 'Cvent HQ', | ||
address: '1765 Greensboro Station Pl 7th Floor, McLean, VA 22102', | ||
mapsLink: 'https://goo.gl/maps/L23EwHCCucy7SjKf7' | ||
} | ||
name: 'Cvent HQ', | ||
address: '1765 Greensboro Station Pl 7th Floor, McLean, VA 22102', | ||
mapsLink: 'https://goo.gl/maps/L23EwHCCucy7SjKf7' | ||
}; | ||
|
||
export const registration = { | ||
participant: { | ||
open: dayjs('1/20/2024 19:00'), | ||
close: dayjs('2/3/2024 23:59'), | ||
}, | ||
other: { | ||
open: dayjs('1/20/2024 19:00'), | ||
close: event.start, | ||
}, | ||
} | ||
participant: { | ||
open: dayjs('1/20/2024 19:00'), | ||
close: dayjs('2/3/2024 23:59') | ||
}, | ||
other: { | ||
open: dayjs('1/20/2024 19:00'), | ||
close: event.start | ||
} | ||
}; | ||
|
||
// Time-based properties (do not edit) | ||
registration.participant = { | ||
...registration.participant, | ||
notOpenYet: dayjs() < registration.participant.open, | ||
isOpen: registration.participant.open < dayjs() && dayjs() < registration.participant.close, | ||
isClosed: registration.participant.close < dayjs() | ||
} | ||
...registration.participant, | ||
notOpenYet: dayjs() < registration.participant.open, | ||
isOpen: registration.participant.open < dayjs() && dayjs() < registration.participant.close, | ||
isClosed: registration.participant.close < dayjs() | ||
}; | ||
|
||
registration.other = { | ||
...registration.other, | ||
notOpenYet: dayjs() < registration.other.open, | ||
isOpen: registration.other.open < dayjs() && dayjs() < registration.other.close, | ||
isClosed: registration.other.close < dayjs() | ||
} | ||
...registration.other, | ||
notOpenYet: dayjs() < registration.other.open, | ||
isOpen: registration.other.open < dayjs() && dayjs() < registration.other.close, | ||
isClosed: registration.other.close < dayjs() | ||
}; | ||
|
||
registration.isOpen = registration.participant.isOpen || registration.other.isOpen | ||
registration.isOpen = registration.participant.isOpen || registration.other.isOpen; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
<script> | ||
import { event } from "../../constants"; | ||
import { event } from '../../constants'; | ||
</script> | ||
|
||
<p> | ||
HackTJ will start on {event.start.format('dddd, MMMM D')} and run until {event.end.format('dddd, MMMM D')}. | ||
HackTJ will start on {event.start.format('dddd, MMMM D')} and run until {event.end.format( | ||
'dddd, MMMM D' | ||
)}. | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters