From 97db706186fcbf07bbfb060753d2bbe941380e45 Mon Sep 17 00:00:00 2001 From: geoffrey45 Date: Fri, 9 Dec 2022 06:11:21 +0300 Subject: [PATCH] redesign toast notifications --- src/assets/icons/toast/check.svg | 6 +++ src/assets/icons/toast/error.svg | 6 +++ src/assets/icons/toast/info.svg | 6 +++ src/assets/icons/toast/ok.svg | 6 +++ src/assets/icons/toast/working.svg | 6 +++ src/assets/scss/Global/index.scss | 5 -- src/components/ArtistView/Header.vue | 1 - src/components/Notification.vue | 75 ++++++++++++++++++++------- src/components/shared/PlayBtnRect.vue | 2 +- src/composables/enums.ts | 7 +-- src/composables/fetch/album.ts | 13 ++++- src/composables/usePlayFrom.ts | 16 ++++-- src/stores/pages/album.ts | 7 ++- 13 files changed, 115 insertions(+), 41 deletions(-) create mode 100644 src/assets/icons/toast/check.svg create mode 100644 src/assets/icons/toast/error.svg create mode 100644 src/assets/icons/toast/info.svg create mode 100644 src/assets/icons/toast/ok.svg create mode 100644 src/assets/icons/toast/working.svg diff --git a/src/assets/icons/toast/check.svg b/src/assets/icons/toast/check.svg new file mode 100644 index 00000000..65575a39 --- /dev/null +++ b/src/assets/icons/toast/check.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/icons/toast/error.svg b/src/assets/icons/toast/error.svg new file mode 100644 index 00000000..a5061e87 --- /dev/null +++ b/src/assets/icons/toast/error.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/icons/toast/info.svg b/src/assets/icons/toast/info.svg new file mode 100644 index 00000000..36fc150b --- /dev/null +++ b/src/assets/icons/toast/info.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/icons/toast/ok.svg b/src/assets/icons/toast/ok.svg new file mode 100644 index 00000000..0304ea1e --- /dev/null +++ b/src/assets/icons/toast/ok.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/icons/toast/working.svg b/src/assets/icons/toast/working.svg new file mode 100644 index 00000000..1c40de8f --- /dev/null +++ b/src/assets/icons/toast/working.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/assets/scss/Global/index.scss b/src/assets/scss/Global/index.scss index 2d1a94bf..4471eb81 100644 --- a/src/assets/scss/Global/index.scss +++ b/src/assets/scss/Global/index.scss @@ -2,11 +2,6 @@ "./scrollbars.scss", "./state.scss", "./variants.scss", "./basic.scss", "./search-tabheaders.scss"; -:root { - --separator: #ffffff46; - --green: #4ad168; -} - * { box-sizing: border-box; } diff --git a/src/components/ArtistView/Header.vue b/src/components/ArtistView/Header.vue index cfacbe7d..8626c243 100644 --- a/src/components/ArtistView/Header.vue +++ b/src/components/ArtistView/Header.vue @@ -62,7 +62,6 @@ const artist = useArtistPageStore(); position: absolute; opacity: 0.25; margin-right: -1rem; - } .artist-page-header { height: 18rem; diff --git a/src/components/Notification.vue b/src/components/Notification.vue index 10c796b0..1ca181e7 100644 --- a/src/components/Notification.vue +++ b/src/components/Notification.vue @@ -1,16 +1,12 @@ @@ -18,7 +14,25 @@ diff --git a/src/components/shared/PlayBtnRect.vue b/src/components/shared/PlayBtnRect.vue index e81f1dc6..83ae39a6 100644 --- a/src/components/shared/PlayBtnRect.vue +++ b/src/components/shared/PlayBtnRect.vue @@ -1,5 +1,5 @@