From 049ede78cc1d8be75fb719e92531d1f4f6ecb55a Mon Sep 17 00:00:00 2001 From: Kayla Blosser Date: Tue, 5 Aug 2025 23:11:49 -0400 Subject: [PATCH] Add changes of example into DC --- src/routes/dc/+page.svelte | 203 +++++++++++++------------------------ 1 file changed, 69 insertions(+), 134 deletions(-) diff --git a/src/routes/dc/+page.svelte b/src/routes/dc/+page.svelte index 5f1bb2d..af6e87a 100644 --- a/src/routes/dc/+page.svelte +++ b/src/routes/dc/+page.svelte @@ -9,7 +9,7 @@ // Configuration - Put your information here! const eventName = "Daydream DC"; const eventLocation = "Washington DC"; - const eventAddress = "Washington DC"; + const eventAddress = ""; // Leave this empty if you don't want an address // These two are optional const directionsURL = "https://www.google.com/maps/search/washington+dc/" const contactLink = "mailto:example@daydream.hackclub.com" @@ -19,16 +19,9 @@ let sponsors: Array<{tier: string, sponsors: Array<{name: string, logo: string, link: string}>}> = []; let sponsorsLoading = true; - // Function to fetch sponsors async function fetchSponsors() { try { - const response = await fetch('https://api.github.com/repos/Kaympe20/daydream-dc-config/contents/sponsors.json', { - method: 'GET', - headers: { - 'Authorization': 'token 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', - 'Accept': 'application/vnd.github.v3.raw' - } - }); + const response = await fetch('https://raw.githubusercontent.com/Kaympe20/daydream-dc-config/refs/heads/main/sponsors.json'); const data = await response.json(); sponsors = data; } catch (error) { @@ -39,9 +32,9 @@ } } - // Schedule Configuration - You don't need to use this schedule, this is just an example! - const scheduleData = { - saturday: { + // Schedule Configuration - You don't need to use this exact schedule, this is just an example! + const scheduleData: { title: string; items: { event: string; time: string; }[] }[] = [ + { title: "Saturday, September 27th", items: [ { event: "Doors open", time: "11:00 AM" }, @@ -56,7 +49,7 @@ { event: "Midnight surprise", time: "12:00 AM" } ] }, - sunday: { + { title: "Sunday, September 28th", items: [ { event: "Breakfast", time: "8:00 AM" }, @@ -64,12 +57,14 @@ { event: "Closing ceremony", time: "12:00 PM" } ] } - }; + ]; import { onMount } from "svelte"; import { gsap } from "gsap"; import { ScrollTrigger } from "gsap/ScrollTrigger"; + import Ticker from "$lib/components/Ticker.svelte"; + import Footer from "$lib/components/Footer.svelte"; import ParticipantSignUp from "$lib/components/ParticipantSignUp.svelte"; import { page } from '$app/stores'; @@ -631,12 +626,11 @@ Mumbai`.split("\n") } onMount(() => { - console.log('User city:', data.userCity); - - // Fetch sponsors data if (sponsorsEnabled) { fetchSponsors(); } + + console.log('User city:', data.userCity); // Register GSAP plugins gsap.registerPlugin(ScrollTrigger); @@ -818,30 +812,7 @@ Mumbai`.split("\n")
- -
- - - - - - - - - - - - - - - {@html Array(2).fill(tickerText).join(" • ")} • - - - - - -
+
@@ -999,43 +970,25 @@ Mumbai`.split("\n")
- -
-

- {scheduleData.saturday.title} -

- -
- {#each scheduleData.saturday.items as item, index} -
- {item.event} - {item.time} -
- {#if index < scheduleData.saturday.items.length - 1} -
- {/if} - {/each} + {#each scheduleData as day, dayIndex} +
+

+ {day.title} +

+ +
+ {#each day.items as item, index} +
+ {item.event} + {item.time} +
+ {#if index < day.items.length - 1} +
+ {/if} + {/each} +
-
- - -
-

- {scheduleData.sunday.title} -

- -
- {#each scheduleData.sunday.items as item, index} -
- {item.event} - {item.time} -
- {#if index < scheduleData.sunday.items.length - 1} -
- {/if} - {/each} -
-
+ {/each}
@@ -1064,24 +1017,24 @@ Mumbai`.split("\n") {#if sponsorsEnabled}
-
- -
- -
-

- Sponsors -

- -
-
- - -
- -
- - +
+ +
+ +
+

+ Sponsors +

+ +
+
+ + +
+ +
+ +
{#if sponsorsLoading}
@@ -1144,13 +1097,13 @@ Mumbai`.split("\n")
{/if}
-
- - -
-
+
+ + +
+
-
+
-

- {#if directionsURL} - Daydream {eventName} is taking place at {eventAddress}! - {:else} - Daydream {eventName} is taking place at {eventAddress}! - {/if} -

+ {#if eventAddress} +

+ {#if directionsURL} + Daydream {eventName} is taking place at {eventAddress}! + {:else} + Daydream {eventName} is taking place at {eventAddress}! + {/if} +

+ {/if}
@@ -1612,28 +1568,7 @@ Mumbai`.split("\n")
-
-
-
-
- - -
-

Made with ♡ by teenagers, for teenagers at Hack Club

-
- Hack Club - - Slack - - Clubs - - Hackathons -
-
- -
-
-
+