From 12e6f34e9df0be60def6c885c616f7184b9fc018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Szu=C5=82a?= Date: Tue, 12 Nov 2024 12:22:45 +0100 Subject: [PATCH] Added leaving a star modal --- src/lib/components/LeaveAStarModal.svelte | 58 +++++++++++++++++++++++ src/routes/+page.svelte | 2 + 2 files changed, 60 insertions(+) create mode 100644 src/lib/components/LeaveAStarModal.svelte diff --git a/src/lib/components/LeaveAStarModal.svelte b/src/lib/components/LeaveAStarModal.svelte new file mode 100644 index 0000000..433b270 --- /dev/null +++ b/src/lib/components/LeaveAStarModal.svelte @@ -0,0 +1,58 @@ + + + + + diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 9dcc945..230da35 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -21,6 +21,7 @@ import { soundStart, soundStop, type OscillatorType } from '../lib/sound'; import { browser } from '$app/environment'; import MobileAlgorithmSelector from '$lib/components/mobile/MobileAlgorithmSelector.svelte'; + import LeaveAStarModal from '$lib/components/LeaveAStarModal.svelte'; let selectedTheme: Theme = 'dim'; let size = 300; @@ -151,4 +152,5 @@