From 046239e1a01e37e9bb967f8c8ca5c8fe47ef3cfd Mon Sep 17 00:00:00 2001 From: BOTAlex Date: Thu, 17 Oct 2024 21:27:31 +0200 Subject: [PATCH] Centered mobile div --- src/routes/+page.svelte | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 3cebd44..9d6ef75 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -22,9 +22,9 @@ let showConfetti: boolean = false; function onProgressConfetti(progress: number){ - // console.log(progress > 0.225); + console.log(progress); - showConfetti = progress > 0.225; + showConfetti = !mobile && progress > 0.225 || mobile && progress > 0.32; } @@ -60,9 +60,11 @@
-
+
{#if showConfetti} - +
+ +
{/if}