From d89b6cf06664626f0a872e7891188b72c5758c10 Mon Sep 17 00:00:00 2001 From: Mawoka Date: Thu, 16 Jun 2022 12:05:15 +0200 Subject: [PATCH] :sparkles: Added custom alert-component --- frontend/src/lib/modals/alert.svelte | 70 ++++++++++++++++++++++++++++ frontend/src/lib/navbar.svelte | 2 +- frontend/src/lib/play/join.svelte | 25 ++++++++-- frontend/src/lib/stores.ts | 2 + frontend/src/routes/__layout.svelte | 14 +++++- frontend/src/routes/import.svelte | 14 ++++-- frontend/src/routes/overview.svelte | 13 ++++-- 7 files changed, 127 insertions(+), 13 deletions(-) create mode 100644 frontend/src/lib/modals/alert.svelte diff --git a/frontend/src/lib/modals/alert.svelte b/frontend/src/lib/modals/alert.svelte new file mode 100644 index 0000000..47ff8f1 --- /dev/null +++ b/frontend/src/lib/modals/alert.svelte @@ -0,0 +1,70 @@ + + + + +{#if open} +
+
+ +
+ +
+

+ {title} +

+ +
+ +
+

+ {body} +

+
+ +
+ +
+
+
+
+{/if} diff --git a/frontend/src/lib/navbar.svelte b/frontend/src/lib/navbar.svelte index 6320471..badf00b 100644 --- a/frontend/src/lib/navbar.svelte +++ b/frontend/src/lib/navbar.svelte @@ -42,7 +42,7 @@