+
How does this work?
Welcome to Haxmas; 12 days of hands-on hacking! From December 13-25, a new workshop drops
each day, created by a different member of the Hack Club community. Each workshop is only
- available on its specific day (day 1's workshop on December 13, day 2's workshop on December
- 14, and so on), so make sure to participate daily! Each workshop comes with its own special
- prize, and you'll earn snowflakes that you can redeem for stickers, swag, and more!
+ available on its specific day, so make sure to participate daily! Each workshop comes with
+ its own special prize, and you'll earn snowflakes that you can redeem for stickers, swag,
+ and more!
The more days you participate, the better the rewards:
-
+
diff --git a/src/routes/shop/+page.server.ts b/src/routes/shop/+page.server.ts
index 796f418..b050b4b 100644
--- a/src/routes/shop/+page.server.ts
+++ b/src/routes/shop/+page.server.ts
@@ -40,15 +40,12 @@ export const load: PageServerLoad = async ({ locals }) => {
throw redirect(302, '/landing');
}
- const response = await fetch(
- `https://api.airtable.com/v0/${AIRTABLE_BASE_ID}/Shop`,
- {
- headers: {
- Authorization: `Bearer ${AIRTABLE_API_KEY}`,
- 'Content-Type': 'application/json'
- }
+ const response = await fetch(`https://api.airtable.com/v0/${AIRTABLE_BASE_ID}/Shop`, {
+ headers: {
+ Authorization: `Bearer ${AIRTABLE_API_KEY}`,
+ 'Content-Type': 'application/json'
}
- );
+ });
if (!response.ok) {
console.error('Airtable fetch failed:', response.statusText);
diff --git a/src/routes/shop/+page.svelte b/src/routes/shop/+page.svelte
index b575ed6..a5c0e3b 100644
--- a/src/routes/shop/+page.svelte
+++ b/src/routes/shop/+page.svelte
@@ -1,165 +1,186 @@
-
-
Shop
-
-
- {#each data.items as item}
-
- {#if item.image}
-

- {:else}
-
Image Coming Soon
- {/if}
-
-
{item.name}
-
{item.cost}
-
-
- {/each}
-
+
+ Shop | Haxmas
+
+
+
- {#if data.items.length === 0}
-
No items available in the shop right now.
- {/if}
+
+
+
Spend your snowflakes on awesome rewards!
-
+ {#if !data.items || data.items.length === 0}
+
+
🛒
+
No items available in the shop right now.
+
Check back soon for new items!
+
+ {:else}
+
+ {#each data.items as item}
+
+ {#if item.image}
+

+ {:else}
+
+ Image Coming Soon
+
+ {/if}
+
+
{item.name}
+
+ ❄️
+ {item.cost}
+
+
+
+ {/each}
+
+ {/if}
+
diff --git a/src/routes/submit/+page.svelte b/src/routes/submit/+page.svelte
index e79e58c..a9e62dc 100644
--- a/src/routes/submit/+page.svelte
+++ b/src/routes/submit/+page.svelte
@@ -1,167 +1,165 @@
-
+
+ Submit | Haxmas
+
-
-
Choose a day to submit
-
-
- {#each days as day}
-
goToDay(day.url)}
- />
- {/each}
-
-
-
-
-
-
+
+
+
+
+
+ Choose a day to submit your project
+
+
+
+ {#each days as day}
+
goToDay(day.url, day.day)}
+ />
+ {/each}
+
+