diff --git a/src/routes/example/+page.svelte b/src/routes/example/+page.svelte
index 43dbf3f..b2960b7 100644
--- a/src/routes/example/+page.svelte
+++ b/src/routes/example/+page.svelte
@@ -3,9 +3,46 @@
import { gsap } from "gsap";
import { ScrollTrigger } from "gsap/ScrollTrigger";
- // Event Configuration
- const EVENT_NAME = "Example";
- const EVENT_LOCATION = "Example City";
+ /**
+ * This is the template site! Create a copy of this folder (src/routes/example)
+ * and rename it to whatever you want your URL to be.
+ *
+ * Then, configure the event name, location, and schedule below:
+ */
+
+ // Configuration - Put your information here!
+ const eventName = "Example";
+ const eventLocation = "Example City";
+
+ // Schedule Configuration
+ const scheduleData = {
+ saturday: {
+ title: "Saturday, September 27th",
+ items: [
+ { event: "Doors open", time: "11:00 AM" },
+ { event: "Opening ceremony", time: "12:00 PM" },
+ { event: "Lunch", time: "12:30 PM" },
+ { event: "Start working on your project!", time: "1:00 PM" },
+ { event: "Workshop 1", time: "2:00 PM" },
+ { event: "Activity 1", time: "4:00 PM" },
+ { event: "Workshop 2", time: "4:00 PM" },
+ { event: "Dinner", time: "6:00 PM" },
+ { event: "Lightning talks", time: "8:00 PM" },
+ { event: "Midnight surprise", time: "12:00 AM" }
+ ]
+ },
+ sunday: {
+ title: "Sunday, September 28th",
+ items: [
+ { event: "Breakfast", time: "8:00 AM" },
+ { event: "Demos!", time: "10:30 AM" },
+ { event: "Closing ceremony", time: "12:00 PM" }
+ ]
+ }
+ };
+
+ /** @type {import('./$types').PageData} */
+ export let data;
// Cities where the game jam is happening
const cities = `Columbus
@@ -262,7 +299,7 @@ Mumbai`.split("\n")
let showVideoPopup = false;
- // Generate ticker text from cities array - constant for local event
+ // Generate ticker text from cities array (constant)
const tickerText = cities.join(" • ");
// Particle system
@@ -378,7 +415,18 @@ Mumbai`.split("\n")
function createParticle () {
if (!particleContainer || !isTabVisible) return;
- const button = document.querySelector('a[href="https://forms.hackclub.com/daydream-stickers"]');
+ // Find the visible button - mobile first, then desktop
+ const buttons = document.querySelectorAll('a[href="https://forms.hackclub.com/daydream-stickers"]');
+ let button = null;
+
+ for (const btn of buttons) {
+ const styles = window.getComputedStyle(btn);
+ if (styles.display !== 'none') {
+ button = btn;
+ break;
+ }
+ }
+
if (!button) return;
const buttonRect = button.getBoundingClientRect();
@@ -452,6 +500,7 @@ Mumbai`.split("\n")
}
onMount(() => {
+ console.log('User city:', data.userCity);
// Register GSAP plugins
gsap.registerPlugin(ScrollTrigger);
@@ -561,6 +610,7 @@ Mumbai`.split("\n")
-->
-
+
+
-
-
+
+
+
@@ -722,6 +774,26 @@ Mumbai`.split("\n")
+
-
+
+
+
+
+
+
+
+
-
-
+
+
+
-
+