Skip to content

Commit

Permalink
Run Prettier on e04cbac
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnans2006 committed Feb 23, 2024
1 parent e04cbac commit cc979ef
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 52 deletions.
62 changes: 31 additions & 31 deletions src/constants/index.js
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;
5 changes: 3 additions & 2 deletions src/eventdata/FAQComponents/FAQDeadline.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<script>
import { registration } from "../../constants";
import { registration } from '../../constants';
</script>

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

<p class="mt-2">
Expand Down
5 changes: 3 additions & 2 deletions src/eventdata/FAQComponents/FAQRegister.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<script>
import { registration } from "../../constants";
import { registration } from '../../constants';
</script>

<ol class="list-decimal">
<li>
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.
</li>
<li class="mt-2">You will be redirected to a page where you can click the appropriate form.</li>
<li class="mt-2">
Expand Down
6 changes: 4 additions & 2 deletions src/eventdata/FAQComponents/FAQWhen.svelte
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>
2 changes: 1 addition & 1 deletion src/eventdata/faq.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default [
},
{
question: 'When is HackTJ?',
answerComponent: FAQWhen,
answerComponent: FAQWhen
},
{
question: 'Who can attend?',
Expand Down
8 changes: 5 additions & 3 deletions src/routes/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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/.';
Expand Down Expand Up @@ -63,7 +63,9 @@
<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">{event.iteration}</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>
Expand Down Expand Up @@ -214,7 +216,7 @@
{location.address}
</h3>
<a
href="{location.mapsLink}"
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"
Expand Down
27 changes: 16 additions & 11 deletions src/routes/register.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import RegistrationColumn from '../components/Registration/RegistrationColumn.svelte';
import Footer from '../components/Footer.svelte';
import {event, registration} from "../constants";
import { event, registration } from '../constants';
</script>

<section class="text-blueberry-200 flex flex-col justify-between min-h-screen">
Expand All @@ -14,15 +14,20 @@
<h1 class="text-5xl font-black text-white mt-8 mb-2">Registration</h1>
<p>
{#if registration.participant.notOpenYet}
Participant registration will open on {registration.participant.open.format('MMMM D, YYYY [at] h:mm a')} and will close on
Participant registration will open on {registration.participant.open.format(
'MMMM D, YYYY [at] h:mm a'
)} and will close on
{registration.participant.close.format('MMMM D, YYYY [at] h:mm a')}.
{:else if registration.participant.isClosed}
Registration for participants closed on {registration.participant.close.format('MMMM D, YYYY [at] h:mm a')}.
Registration for participants closed on {registration.participant.close.format(
'MMMM D, YYYY [at] h:mm a'
)}.
{#if registration.other.isOpen}
You may still register to be a mentor, judge, volunteer, photographer, or workshop host.
{/if}
{:else}
Registration opened on {registration.participant.open.format('MMMM D, YYYY [at] h:mm a')} and will close on {registration.participant.close.format('MMMM D, YYYY [at] h:mm a')}.
Registration opened on {registration.participant.open.format('MMMM D, YYYY [at] h:mm a')} and
will close on {registration.participant.close.format('MMMM D, YYYY [at] h:mm a')}.
{/if}
All attendees must adhere to the
<a
Expand All @@ -39,7 +44,7 @@
title="Participant"
link="https://forms.gle/8CZHKSg2csL9ufEh6"
linkText="Participant Registration"
closed="{!registration.participant.isOpen}"
closed={!registration.participant.isOpen}
>
<p>
Participants must be current high school students attending Fairfax County Public Schools.
Expand All @@ -56,7 +61,7 @@
title="Volunteer"
link="https://www.signupgenius.com/go/70A0F49A8AD22AAF58-47414114-hacktj"
linkText="Volunteer Registration"
closed="{!registration.other.isOpen}"
closed={!registration.other.isOpen}
>
<p>
Volunteers help with various tasks during the hackathon, such as checking in participants,
Expand All @@ -67,7 +72,7 @@
title="Mentor/Judge"
link="https://forms.gle/vCxvt3tuCYoptUF76"
linkText="Mentor/Judge Registration"
closed="{!registration.other.isOpen}"
closed={!registration.other.isOpen}
>
<p>
Judges must be present during the entire judging process (8:00 a.m. to 12:00 a.m. on
Expand All @@ -84,13 +89,13 @@
title="Workshop Host"
link="https://forms.gle/YqTw3Ng21dxeiMk5A"
linkText="Workshop Host Registration"
closed="{!registration.other.isOpen}"
closed={!registration.other.isOpen}
>
<p>
Workshop Hosts hold a session on a CS topic of their liking, providing participants a
lesson on the topic and resources to learn more. These workshops will be conducted on
{event.start.format('dddd, MMMM D')} from 2pm to 6pm. Hosting a workshop comes with perks like free food
and service hours!
{event.start.format('dddd, MMMM D')} from 2pm to 6pm. Hosting a workshop comes with perks like
free food and service hours!
</p>
<br />
<p>
Expand All @@ -102,7 +107,7 @@
title="Photographer"
link="https://forms.gle/BYahZGAbYFdveiU18"
linkText="Photographer Registration"
closed="{!registration.other.isOpen}"
closed={!registration.other.isOpen}
>
<p>
Photographers are only needed for 2 hours at a time (aside from the 2.5 hr shift on
Expand Down

0 comments on commit cc979ef

Please sign in to comment.