From a1b926da711215a4b12a51bc66f72632e486f074 Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 23 Feb 2023 22:01:30 +0100 Subject: [PATCH 1/9] style sidebar, add icons --- frontend/public/img/svg/Community.svg | 103 ++++++++++ frontend/public/img/svg/home.svg | 29 +++ frontend/public/img/svg/info.svg | 182 ++++++++++++++++++ frontend/public/img/svg/lines.png | Bin 0 -> 793 bytes frontend/public/img/svg/logout.svg | 162 ++++++++++++++++ frontend/public/img/svg/send.svg | 114 +++++++++++ frontend/public/img/svg/settings.svg | 152 +++++++++++++++ frontend/public/img/svg/transaction.svg | 128 ++++++++++++ frontend/src/components/Menu/Sidebar.vue | 43 +++-- .../MobileSidebar/MobileSidebar.vue | 16 +- 10 files changed, 910 insertions(+), 19 deletions(-) create mode 100644 frontend/public/img/svg/Community.svg create mode 100644 frontend/public/img/svg/home.svg create mode 100644 frontend/public/img/svg/info.svg create mode 100644 frontend/public/img/svg/lines.png create mode 100644 frontend/public/img/svg/logout.svg create mode 100644 frontend/public/img/svg/send.svg create mode 100644 frontend/public/img/svg/settings.svg create mode 100644 frontend/public/img/svg/transaction.svg diff --git a/frontend/public/img/svg/Community.svg b/frontend/public/img/svg/Community.svg new file mode 100644 index 000000000..8f1cdbd61 --- /dev/null +++ b/frontend/public/img/svg/Community.svg @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/public/img/svg/home.svg b/frontend/public/img/svg/home.svg new file mode 100644 index 000000000..9122b7e68 --- /dev/null +++ b/frontend/public/img/svg/home.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + diff --git a/frontend/public/img/svg/info.svg b/frontend/public/img/svg/info.svg new file mode 100644 index 000000000..1d1b88c65 --- /dev/null +++ b/frontend/public/img/svg/info.svg @@ -0,0 +1,182 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/public/img/svg/lines.png b/frontend/public/img/svg/lines.png new file mode 100644 index 0000000000000000000000000000000000000000..d7bf781b4be6ac5fab98f4c2af77a3886c6afbb3 GIT binary patch literal 793 zcmV+!1LpjRP)EX>4Tx04R}tkv&MmKpe$iQ$>-Ag9SwtGE^rEqEZ~S3Pq?8YK2xEOfLO`CJjl7 zi=*ILaPVWX>fqw6tAnc`2!4RLx;QDiNQwVT3N2zhIPS;0dyl(!fKV?p&FYu{G~G5+ ziMW`_u8Li+5HNr+Mi7&kWz0!Z629Z>9s$1IMR}J0xj#p*nzI-X5Q%4*VcNtS#Ia4= z;Ji;9W<^;gJ|`YG>4LCuqO|IySV+-++{ZuU`XzEHu~>4zgWm+@00006VoOIv0MG!C042tusF45w010qNS#tmY z3ljhU3ljkVnw%H_00AjUL_t(&-tCsXY63wNh0n~cD{jD_N=ajt7svyoNMkM7+1mID zg6JbyrxMZ$zK7T(l}PFk#6}PmT%8@Ot+J5aI0&YqyXj0>X%IlUW~M_jvH{1qQ7tCaeqq!3i6-No0cx+h5kYoTC{#OdJ$s z2$6XBxNsrhr3xPs4=KIRlLEQKdlHaB#Q$Tb@Iz~*n-B(J5QeGH^*MUdwr;-iJRH|w z+8tH~0N1aq*d|d9HK!;KVhf>@t zuT=doIx`r$=q7|g7=%F>*+`(Klcd#^VLC}#4a0Pj{P(5QUf+6IOOi~WbQ8iLj9cge XDP2hrBcs1j00000NkvXXu0mjfCt6%1 literal 0 HcmV?d00001 diff --git a/frontend/public/img/svg/logout.svg b/frontend/public/img/svg/logout.svg new file mode 100644 index 000000000..a9826a5dd --- /dev/null +++ b/frontend/public/img/svg/logout.svg @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/public/img/svg/send.svg b/frontend/public/img/svg/send.svg new file mode 100644 index 000000000..6f1d8dafa --- /dev/null +++ b/frontend/public/img/svg/send.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/public/img/svg/settings.svg b/frontend/public/img/svg/settings.svg new file mode 100644 index 000000000..6966262f3 --- /dev/null +++ b/frontend/public/img/svg/settings.svg @@ -0,0 +1,152 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/public/img/svg/transaction.svg b/frontend/public/img/svg/transaction.svg new file mode 100644 index 000000000..f7cb156ff --- /dev/null +++ b/frontend/public/img/svg/transaction.svg @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/frontend/src/components/Menu/Sidebar.vue b/frontend/src/components/Menu/Sidebar.vue index 0875c0c7e..a6c0742e2 100644 --- a/frontend/src/components/Menu/Sidebar.vue +++ b/frontend/src/components/Menu/Sidebar.vue @@ -9,34 +9,34 @@
- + {{ $t('navigation.overview') }} - + {{ $t('navigation.send') }} - + {{ $t('navigation.transactions') }} + + + {{ $t('creation') }} + - {{ $t('gdt.gdt') }} + {{ $t('GDT') }} - - - {{ $t('creation') }} - - -
- - - + + {{ $t('navigation.info') }} + +
+ - + {{ $t('navigation.settings') }} {{ $t('navigation.admin_area') }} - + {{ $t('navigation.logout') }} @@ -74,10 +74,17 @@ export default { color: rgb(2, 2, 1); border-left: 4px rgb(219, 129, 19) solid; } +.svg-icon { + filter: brightness(1) invert(0); +} + +.activeRoute .svg-icon { + filter: brightness(0) invert(0); +} + #component-sidebar { min-width: 200px; } - @media screen and (min-width: 1025px) { #side-menu { max-width: 180px; @@ -86,7 +93,7 @@ export default { min-width: 180px; } } - +/* @media screen and (min-width: 1075px) { #side-menu { max-width: 200px; @@ -102,5 +109,5 @@ export default { #component-sidebar { max-width: 100%; } -} +} */ diff --git a/frontend/src/components/MobileSidebar/MobileSidebar.vue b/frontend/src/components/MobileSidebar/MobileSidebar.vue index dc59dc711..0f7a179a9 100644 --- a/frontend/src/components/MobileSidebar/MobileSidebar.vue +++ b/frontend/src/components/MobileSidebar/MobileSidebar.vue @@ -1,6 +1,14 @@