From abf80da2c19fde1064307ccb35f158c3a0e2459c Mon Sep 17 00:00:00 2001 From: Steph <35910788+huynhicode@users.noreply.github.com> Date: Thu, 13 Feb 2025 03:46:28 -0800 Subject: [PATCH] wip --- src/lib/components/Navbar.svelte | 3 +- src/lib/util/promos/January2025.svelte | 142 +++++++++++++++++++++---- 2 files changed, 120 insertions(+), 25 deletions(-) diff --git a/src/lib/components/Navbar.svelte b/src/lib/components/Navbar.svelte index 15ee452a..b3ec50f6 100644 --- a/src/lib/components/Navbar.svelte +++ b/src/lib/components/Navbar.svelte @@ -60,8 +60,7 @@ {#if activePromotion} -
+
tagline.name.startsWith(selectedSet)); + let index = Math.floor(Math.random() * taglines.length); let currentTagline = $state(taglines[index]); const interval = setInterval(() => { index = (index + 1) % taglines.length; currentTagline = taglines[index]; - }, 5000); + }, 2000); onDestroy(() => { clearInterval(interval); }); -
- {#key currentTagline} - - {currentTagline.label} - - - {/key} -
+{#key currentTagline} + +{/key}