-
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.
- Implement src/constants - Parameterize event details, event dates, and (most importantly) registration dates
- Loading branch information
1 parent
34aecf5
commit e04cbac
Showing
9 changed files
with
104 additions
and
32 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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
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' | ||
} | ||
|
||
export const location = { | ||
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, | ||
}, | ||
} | ||
|
||
// 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.other = { | ||
...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 |
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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<script> | ||
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')}. | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import FAQCodeOfConduct from './FAQCodeOfConduct.svelte'; | ||
import FAQRegister from './FAQRegister.svelte'; | ||
import FAQPrizes from './FAQPrizes.svelte'; | ||
import FAQDeadline from './FAQDeadline.svelte'; | ||
import FAQPrizes from './FAQPrizes.svelte'; | ||
import FAQRegister from './FAQRegister.svelte'; | ||
import FAQWhen from './FAQWhen.svelte'; | ||
|
||
export { FAQCodeOfConduct, FAQRegister, FAQPrizes, FAQDeadline }; | ||
export { FAQCodeOfConduct, FAQDeadline, FAQPrizes, FAQRegister, FAQWhen }; |
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
import CloseButton from '../components/Index/CloseButton.svelte'; | ||
// import AboutCard from '../components/Index/AboutCard.svelte'; | ||
import Modal from 'svelte-simple-modal'; | ||
import { event, location, registration } from "../constants"; | ||
import { sponsorData, teamMembers } from '../eventdata'; | ||
import { googleMapsKey } from '../keys/.'; | ||
|
@@ -62,19 +63,21 @@ | |
<div class="text-white font-bold text-6xl md:text-8xl"> | ||
HackTJ | ||
<!-- TODO: `Overpass Mono`: --> | ||
<sup class="text-3xl md:text-4xl font-mono align-super text-theme-100">11.0</sup> | ||
<sup class="text-3xl md:text-4xl font-mono align-super text-theme-100">{event.iteration}</sup> | ||
</div> | ||
<h3 class="text-white font-medium text-xl md:text-2xl w-3/4"> | ||
<!-- <span class="text-theme-100 font-bold">March 4-5, Cvent</span> | ||
<br /> --> | ||
Build the next greatest thing - oh, and bring your friends along too. | ||
</h3> | ||
<div class="flex flex-col md:flex-row mt-6 space-y-3 md:space-y-0 space-x-0 md:space-x-3"> | ||
<a | ||
href="{base}/register" | ||
class="block text-center py-3 bg-theme-100 hover:bg-theme-200 text-blueberry-800 text-xl font-bold rounded-2xl px-8" | ||
> Register </a | ||
> | ||
{#if registration.isOpen} | ||
<a | ||
href="{base}/register" | ||
class="block text-center py-3 bg-theme-100 hover:bg-theme-200 text-blueberry-800 text-xl font-bold rounded-2xl px-8" | ||
> Register </a | ||
> | ||
{/if} | ||
<a | ||
href="{base}/schedule" | ||
class="block text-center py-3 bg-spruce-100 hover:bg-spruce-200 text-blueberry-800 text-xl font-bold rounded-2xl px-8" | ||
|
@@ -164,8 +167,8 @@ | |
<h3 class="mt-2 text-xl md:text-2xl font-bold text-blueberry-200"> | ||
Interested in sponsoring? Check out our <a | ||
class="underline text-theme-100 hover:text-theme-200" | ||
href="{base}/sponsorship11_0.pdf" | ||
target="_blank">11.0 sponsorship packet</a | ||
href="{base}/{event.sponsorshipPacket}" | ||
target="_blank">{event.iteration} sponsorship packet</a | ||
> | ||
or email us at | ||
<a class="underline text-theme-100 hover:text-theme-200" href="mailto:[email protected]" | ||
|
@@ -206,12 +209,12 @@ | |
> | ||
<div class="w-full lg:w-2/3"> | ||
<h1 class="text-5xl md:text-7xl font-black text-white">Location</h1> | ||
<h3 class="text-xl font-black text-white mt-3">Cvent HQ</h3> | ||
<h3 class="text-xl font-black text-white mt-3">{location.name}</h3> | ||
<h3 class="font-medium text-white mt-1"> | ||
1765 Greensboro Station Pl 7th Floor, McLean, VA 22102 | ||
{location.address} | ||
</h3> | ||
<a | ||
href="https://goo.gl/maps/L23EwHCCucy7SjKf7" | ||
href="{location.mapsLink}" | ||
target="_blank" | ||
rel="noopener noreferred" | ||
class="block mt-4 text-center py-3 bg-theme-100 hover:bg-theme-200 text-blueberry-800 text-xl font-bold rounded-2xl" | ||
|
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