diff --git a/src/lib/components/atoms/Dialogue.svelte b/src/lib/components/atoms/Dialogue.svelte index f0ab5f3..f03947d 100644 --- a/src/lib/components/atoms/Dialogue.svelte +++ b/src/lib/components/atoms/Dialogue.svelte @@ -21,21 +21,23 @@ transition:fade={{ easing: quadInOut, duration: 150 }} >
-
- {#if fullscreen} - - {/if} - {#if $$slots.icon} - - {/if} - {#if $$slots.title} -

- -

- {/if} -
+ {#if $$slots.title || $$slots.icon} +
+ {#if fullscreen} + + {/if} + {#if $$slots.icon} + + {/if} + {#if $$slots.title} +

+ +

+ {/if} +
+ {/if} {#if $$slots.description}

diff --git a/src/lib/components/atoms/LogoOption.svelte b/src/lib/components/atoms/LogoOption.svelte index a4a7303..760c922 100644 --- a/src/lib/components/atoms/LogoOption.svelte +++ b/src/lib/components/atoms/LogoOption.svelte @@ -65,7 +65,7 @@ {#if hasVariants} - Select a variant + Select logo variants

{#each variants as variant} diff --git a/src/routes/poll/+page.svelte b/src/routes/poll/+page.svelte index d06b3db..0de28cf 100644 --- a/src/routes/poll/+page.svelte +++ b/src/routes/poll/+page.svelte @@ -18,6 +18,7 @@ let helpModal = false; let clearModal = false; + let submitModal = false; let selected: Selected = {}; function calc_ui_selected_count(v: Selected) { let n = 0; @@ -141,7 +142,7 @@ function submitSelection() { if (ui_selected_count < 1) return null; - submit = true; + submitModal = true; } function clearLogos() { @@ -239,19 +240,21 @@
{/if} - {#if submit} - - Submit - + + + {#if submit} + Submitting + {:else} + Confirm submission + {/if} + + + {#if submit}
{#await submitBallot()} -
- Submitting your vote... -
+
Submitting your vote...
{:then _} -
- Your vote has been casted. -
+
Your vote has been casted.
{:catch err}
An error occurred. Try again later. @@ -260,16 +263,35 @@
{/await}
-
-
- {/if} + {:else} +
+
Do you want to cast your vote? You will not be able to vote again.
+
+ {/if} +
+ +
+ + +
+
@@ -281,8 +303,8 @@
- This is an approval voting system. Voters can choose any number of logo and variants. The - logo that is selected the most wins. Note that you can only vote once! + This is an approval voting system. Voters can choose any number of logos (and its variants + if applicable). The logo that is selected the most wins. Note that you can only vote once.
@@ -299,9 +321,7 @@
-
- Deselect all logos? -
+
Deselect all logos?
@@ -350,7 +370,7 @@ gap: 1rem; justify-content: right; width: 100%; - z-index: 999; + z-index: 99; position: fixed; bottom: 0; right: 0;