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}