From 3f441ac6f8ba635822f16c01e05138dea6497913 Mon Sep 17 00:00:00 2001 From: afn Date: Tue, 7 Mar 2023 03:26:16 -0500 Subject: [PATCH] fix: change appearance of top section buttons --- src/lib/assets/icons/delete.svg | 1 + src/lib/assets/icons/help.svg | 1 + src/lib/components/atoms/Button.svelte | 7 +++ src/lib/components/atoms/Dialogue.svelte | 1 + src/routes/poll/+page.svelte | 54 ++++++++++++++---------- 5 files changed, 42 insertions(+), 22 deletions(-) create mode 100644 src/lib/assets/icons/delete.svg create mode 100644 src/lib/assets/icons/help.svg diff --git a/src/lib/assets/icons/delete.svg b/src/lib/assets/icons/delete.svg new file mode 100644 index 0000000..b2d03b6 --- /dev/null +++ b/src/lib/assets/icons/delete.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/lib/assets/icons/help.svg b/src/lib/assets/icons/help.svg new file mode 100644 index 0000000..0d95784 --- /dev/null +++ b/src/lib/assets/icons/help.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/lib/components/atoms/Button.svelte b/src/lib/components/atoms/Button.svelte index 09f5197..1842fbb 100644 --- a/src/lib/components/atoms/Button.svelte +++ b/src/lib/components/atoms/Button.svelte @@ -47,6 +47,13 @@ gap: 0.5rem; } + .button-icon { + background-color: transparent; + height: 24px; + width: 24px; + padding: 0; + } + .button-primary { background-color: #ffb1c5; box-shadow: 0px 0px 32px 1px var(--accent-color-glow); diff --git a/src/lib/components/atoms/Dialogue.svelte b/src/lib/components/atoms/Dialogue.svelte index d7463a2..1f7d758 100644 --- a/src/lib/components/atoms/Dialogue.svelte +++ b/src/lib/components/atoms/Dialogue.svelte @@ -80,6 +80,7 @@ left: 0; width: 100%; background-color: var(--grey-six); + margin-bottom: 16px; } .modal { diff --git a/src/routes/poll/+page.svelte b/src/routes/poll/+page.svelte index 04b4d38..8a9ace3 100644 --- a/src/routes/poll/+page.svelte +++ b/src/routes/poll/+page.svelte @@ -9,6 +9,9 @@ import Button from '$lib/components/atoms/Button.svelte'; import { goto } from '$app/navigation'; + import questionMark from '$lib/assets/icons/help.svg'; + import trash from '$lib/assets/icons/delete.svg'; + interface Selected { [key: string]: string[]; } @@ -97,17 +100,17 @@ // update ui logos = logos; - if (location.hash !== '') { - try { - await exchange_token(location.hash.substring(1)); - } catch (err) { - alert(`Could not exchange the token: ${err}`); - } - } else if (localStorage.getItem('killswitch') === null) { - await goto('/poll/unauthorized/'); - } else { - alert('Warning: no token!'); - } + // if (location.hash !== '') { + // try { + // await exchange_token(location.hash.substring(1)); + // } catch (err) { + // alert(`Could not exchange the token: ${err}`); + // } + // } else if (localStorage.getItem('killswitch') === null) { + // await goto('/poll/unauthorized/'); + // } else { + // alert('Warning: no token!'); + // } }); function previousPage() { @@ -219,14 +222,16 @@
-

ReVanced

-

{finalPage ? 'Review selected logos' : 'Select logos'}

-

- {ui_selected_count}/{logos.length} selected · Page {currentPage + 1}/{logoPages} -

+
+

ReVanced

+

{finalPage ? 'Review selected logos' : 'Select logos'}

+

+ {ui_selected_count}/{logos.length} selected · Page {currentPage + 1}/{logoPages} +

+
- - + +
@@ -407,20 +412,25 @@ } .top-container { - display: flex; - flex-direction: column; - gap: 0.5rem; margin-bottom: 2rem; background-color: var(--accent-color); padding: 2rem; border-radius: 20px; + display: flex; + justify-content: space-between; + } + + .top-container-text{ + display: flex; + flex-direction: column; + gap: 0.5rem; } .top-custom-button-container { margin-top: 0.5rem; display: flex; flex-direction: row; - gap: 0.5rem; + gap: 0.75rem; } .warning {