diff --git a/src/constants/index.js b/src/constants/index.js index aa35284..63a521c 100644 --- a/src/constants/index.js +++ b/src/constants/index.js @@ -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; diff --git a/src/eventdata/FAQComponents/FAQDeadline.svelte b/src/eventdata/FAQComponents/FAQDeadline.svelte index d3a1ba4..2f14aec 100644 --- a/src/eventdata/FAQComponents/FAQDeadline.svelte +++ b/src/eventdata/FAQComponents/FAQDeadline.svelte @@ -1,9 +1,10 @@

- Registration for participants, volunteers, mentors, judges, workshop hosts, and photographers opens on {registration.participant.open.format('dddd, MMMM D [at] h:mm a')}. + Registration for participants, volunteers, mentors, judges, workshop hosts, and photographers + opens on {registration.participant.open.format('dddd, MMMM D [at] h:mm a')}.

diff --git a/src/eventdata/FAQComponents/FAQRegister.svelte b/src/eventdata/FAQComponents/FAQRegister.svelte index faaaf23..85d5d5c 100644 --- a/src/eventdata/FAQComponents/FAQRegister.svelte +++ b/src/eventdata/FAQComponents/FAQRegister.svelte @@ -1,10 +1,11 @@

  1. - On {registration.participant.open.format('dddd, MMMM D [at] h:mm a')}, a button will appear at the top of this site. Click it. + On {registration.participant.open.format('dddd, MMMM D [at] h:mm a')}, a button will appear at + the top of this site. Click it.
  2. You will be redirected to a page where you can click the appropriate form.
  3. diff --git a/src/eventdata/FAQComponents/FAQWhen.svelte b/src/eventdata/FAQComponents/FAQWhen.svelte index 5a94b5f..093e793 100644 --- a/src/eventdata/FAQComponents/FAQWhen.svelte +++ b/src/eventdata/FAQComponents/FAQWhen.svelte @@ -1,7 +1,9 @@

    - 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' + )}.

    diff --git a/src/eventdata/faq.js b/src/eventdata/faq.js index c7aa8c8..b9a853f 100644 --- a/src/eventdata/faq.js +++ b/src/eventdata/faq.js @@ -19,7 +19,7 @@ export default [ }, { question: 'When is HackTJ?', - answerComponent: FAQWhen, + answerComponent: FAQWhen }, { question: 'Who can attend?', diff --git a/src/routes/index.svelte b/src/routes/index.svelte index 4d47115..f0b42e9 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -9,7 +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 { event, location, registration } from '../constants'; import { sponsorData, teamMembers } from '../eventdata'; import { googleMapsKey } from '../keys/.'; @@ -63,7 +63,9 @@
    HackTJ - {event.iteration} + {event.iteration}