refactor logo, bottom bar and perks.js

- add new logo
- add tsconfig.json
- move logo to new component
- update bottombar
- remove props from hotkeys and progress bar
- convert perks.js -> perks.ts
This commit is contained in:
geoffrey45
2022-05-24 15:55:26 +03:00
parent 599ba060b2
commit b497344521
24 changed files with 129 additions and 246 deletions
+9 -28
View File
@@ -3,12 +3,8 @@
<Modal />
<Notification />
<div class="l-container">
<div class="l-sidebar">
<div id="logo-container">
<router-link :to="{ name: 'Home' }">
<div class="logo"></div
></router-link>
</div>
<div class="l-sidebar rounded">
<Logo />
<Navigation />
<div class="l-album-art">
<nowPlaying />
@@ -24,7 +20,7 @@
</div>
</template>
<script setup>
<script setup lang="ts">
import Navigation from "./components/LeftSidebar/Navigation.vue";
import Main from "./components/RightSideBar/Main.vue";
@@ -38,6 +34,7 @@ import Modal from "./components/modal.vue";
import Notification from "./components/Notification.vue";
import useQStore from "./stores/queue";
import listenForKeyboardEvents from "./composables/keyboard";
import Logo from "./components/Logo.vue";
const RightSideBar = Main;
const context_store = useContextStore();
@@ -55,38 +52,22 @@ app_dom.addEventListener("click", (e) => {
</script>
<style lang="scss">
@import "./assets/css/mixins.scss";
.l-sidebar {
position: relative;
.l-album-art {
width: calc(100% - 2rem);
position: absolute;
bottom: 0;
margin-bottom: 1rem;
}
}
#logo-container {
position: relative;
height: 3.6rem;
display: flex;
align-items: center;
margin-bottom: 0.5rem;
#toggle {
position: absolute;
width: 3rem;
height: 100%;
background: url(./assets/icons/menu.svg) no-repeat center;
background-size: 2rem;
cursor: pointer;
}
}
.logo {
height: 4.5rem;
width: 15rem;
background: url(./assets/icons/logo.svg) no-repeat 1rem;
background-size: 9rem;
}
.r-sidebar {
&::-webkit-scrollbar {