From 96d051ace5ef520f2c50dba86732eb35f357c7ad Mon Sep 17 00:00:00 2001 From: Kenny <101839505+khui0@users.noreply.github.com> Date: Sun, 9 Jun 2024 18:24:04 -0400 Subject: [PATCH] feat: add streak indicator for lightning --- src/lib/components/Header.svelte | 3 +++ src/lib/components/LightningStreak.svelte | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/lib/components/LightningStreak.svelte diff --git a/src/lib/components/Header.svelte b/src/lib/components/Header.svelte index 54ee506..e8dde34 100644 --- a/src/lib/components/Header.svelte +++ b/src/lib/components/Header.svelte @@ -4,6 +4,7 @@ import Streak from "./Streak.svelte"; import DailyStreak from "./DailyStreak.svelte"; + import LightningStreak from "./LightningStreak.svelte"; import GameModes from "./GameModes.svelte"; import BiGearFill from "~icons/bi/gear-fill"; @@ -15,6 +16,8 @@ {:else if $page.url.pathname === base + "/daily"} + {:else if $page.url.pathname === base + "/lightning"} + {/if} diff --git a/src/lib/components/LightningStreak.svelte b/src/lib/components/LightningStreak.svelte new file mode 100644 index 0000000..aeed196 --- /dev/null +++ b/src/lib/components/LightningStreak.svelte @@ -0,0 +1,12 @@ + + +{#if $streak?.value || 0 > 0} +
+

{$streak?.value} 🔥

+
+{/if}