From 14976bad8812273ac64e2920c946e05915b9171a Mon Sep 17 00:00:00 2001 From: Filipe Medeiros Date: Sun, 10 Oct 2021 04:35:10 +0100 Subject: [PATCH] feat: sidebar not perfect, but good enough for me, maybe you can tweak it to make it better! only on desktop for now --- public/img/icons/logo.svg | 1 - public/img/logo.svg | 20 +++++ public/img/piped.svg | 7 ++ public/img/pipedPlay.svg | 15 ++++ src/App.vue | 55 +++++++----- src/components/Sidebar.vue | 176 +++++++++++++++++++++++++++++++++++++ src/main.js | 12 ++- 7 files changed, 259 insertions(+), 27 deletions(-) delete mode 100644 public/img/icons/logo.svg create mode 100644 public/img/logo.svg create mode 100644 public/img/piped.svg create mode 100644 public/img/pipedPlay.svg create mode 100644 src/components/Sidebar.vue diff --git a/public/img/icons/logo.svg b/public/img/icons/logo.svg deleted file mode 100644 index f0356a6e..00000000 --- a/public/img/icons/logo.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/img/logo.svg b/public/img/logo.svg new file mode 100644 index 00000000..3659243c --- /dev/null +++ b/public/img/logo.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/public/img/piped.svg b/public/img/piped.svg new file mode 100644 index 00000000..3e78adcd --- /dev/null +++ b/public/img/piped.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/public/img/pipedPlay.svg b/public/img/pipedPlay.svg new file mode 100644 index 00000000..d5a67c8e --- /dev/null +++ b/public/img/pipedPlay.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/src/App.vue b/src/App.vue index 28803eaa..921cc238 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,34 +1,37 @@ - diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue new file mode 100644 index 00000000..c3505fe5 --- /dev/null +++ b/src/components/Sidebar.vue @@ -0,0 +1,176 @@ + + + + + diff --git a/src/main.js b/src/main.js index d6da6802..031806e1 100644 --- a/src/main.js +++ b/src/main.js @@ -10,6 +10,10 @@ import { faHeadphones, faRss, faChevronLeft, + faBars, + faFire, + faCog, + faSignOutAlt, } from "@fortawesome/free-solid-svg-icons"; import { faGithub, faBitcoin, faYoutube } from "@fortawesome/free-brands-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; @@ -26,6 +30,10 @@ library.add( faYoutube, faRss, faChevronLeft, + faBars, + faFire, + faCog, + faSignOutAlt, ); import("uikit/dist/css/uikit-core.css"); @@ -185,10 +193,10 @@ const mixin = { }, computed: { backgroundColor() { - return this.getEffectiveTheme() === "light" ? "#fff" : "#0b0e0f"; + return this.getEffectiveTheme() === "light" ? "#fff" : "#1d2438"; }, secondaryBackgroundColor() { - return this.getEffectiveTheme() === "light" ? "#e5e5e5" : "#242727"; + return this.getEffectiveTheme() === "light" ? "#e5e5e5" : "#30354b"; }, foregroundColor() { return this.getEffectiveTheme() === "light" ? "#15191a" : "#0b0e0f";