mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-10 13:07:35 +00:00
initial buid of folder explorer view
This commit is contained in:
parent
90ecbe1a04
commit
12c0669c90
11
src/App.vue
11
src/App.vue
@ -1,4 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<div id="bg-blur"></div>
|
||||||
<div class="l-container" :class="{ collapsed: collapsed }">
|
<div class="l-container" :class="{ collapsed: collapsed }">
|
||||||
<div class="l-sidebar">
|
<div class="l-sidebar">
|
||||||
<div id="logo-container">
|
<div id="logo-container">
|
||||||
@ -7,9 +8,9 @@
|
|||||||
><div ref="logo" class="logo"></div
|
><div ref="logo" class="logo"></div
|
||||||
></router-link>
|
></router-link>
|
||||||
</div>
|
</div>
|
||||||
<hr class="seperator" />
|
<!-- <hr class="seperator" /> -->
|
||||||
<Navigation :collapsed="collapsed" />
|
<Navigation :collapsed="collapsed" />
|
||||||
<hr class="seperator" />
|
<!-- <hr class="seperator" /> -->
|
||||||
<PinnedStuff :collapsed="collapsed" />
|
<PinnedStuff :collapsed="collapsed" />
|
||||||
<div id="settings-button">
|
<div id="settings-button">
|
||||||
<div class="in">
|
<div class="in">
|
||||||
@ -39,7 +40,7 @@ export default {
|
|||||||
PinnedStuff,
|
PinnedStuff,
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const collapsed = ref(false);
|
const collapsed = ref(true);
|
||||||
|
|
||||||
const logo = ref(null);
|
const logo = ref(null);
|
||||||
|
|
||||||
@ -52,6 +53,8 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
height: 30px;
|
height: 30px;
|
||||||
width: 150px;
|
width: 150px;
|
||||||
@ -78,6 +81,7 @@ export default {
|
|||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.l-sidebar {
|
.l-sidebar {
|
||||||
@ -108,6 +112,7 @@ export default {
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
border-top: 1px solid #ffffff27;
|
||||||
}
|
}
|
||||||
|
|
||||||
#settings-button .in {
|
#settings-button .in {
|
||||||
|
@ -4,14 +4,14 @@
|
|||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
background: #0e141a;
|
background: #0d0e0e;
|
||||||
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
#app {
|
#app {
|
||||||
font-family: Avenir, Helvetica, Arial, sans-serif;
|
font-family: Avenir, Helvetica, Arial, sans-serif;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
color: #2c3e50;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
@ -27,12 +27,11 @@ hr,
|
|||||||
|
|
||||||
.hidden {
|
.hidden {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.l-container {
|
.l-container {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: min-content 4fr 1fr;
|
grid-template-columns: min-content 4fr 1.5fr;
|
||||||
grid-template-rows: 78px 1fr 1fr;
|
grid-template-rows: 78px 1fr 1fr;
|
||||||
grid-auto-flow: row;
|
grid-auto-flow: row;
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
@ -41,12 +40,27 @@ hr,
|
|||||||
"l-sidebar content r-sidebar";
|
"l-sidebar content r-sidebar";
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
background: rgba(0, 0, 0, 0.575);
|
||||||
|
backdrop-filter: blur(40px);
|
||||||
|
-webkit-backdrop-filter: blur(40px);
|
||||||
|
}
|
||||||
|
|
||||||
|
#bg-blur {
|
||||||
|
position: absolute;
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
background-color: rgba(255, 0, 0, 0.274);
|
||||||
|
background-image: url(../images/dark-bg.jpg);
|
||||||
|
z-index: -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.collapsed .l-sidebar {
|
.collapsed .l-sidebar {
|
||||||
width: 70px;
|
width: 70px;
|
||||||
transition-timing-function: ease-in-out;
|
transition-timing-function: ease-in-out;
|
||||||
transition-duration: .3s;
|
transition-duration: 0.3s;
|
||||||
transition-property: width;
|
transition-property: width;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -56,10 +70,17 @@ hr,
|
|||||||
padding-top: 0.5em;
|
padding-top: 0.5em;
|
||||||
background-color: #131313b2;
|
background-color: #131313b2;
|
||||||
transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
|
transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
|
||||||
transition-duration: .3s;
|
transition-duration: 0.3s;
|
||||||
transition-property: width;
|
transition-property: width;
|
||||||
}
|
}
|
||||||
|
.rounded {
|
||||||
|
border-radius: 10px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
.nav {
|
.nav {
|
||||||
grid-area: nav;
|
grid-area: nav;
|
||||||
@ -69,6 +90,7 @@ hr,
|
|||||||
.content {
|
.content {
|
||||||
grid-area: content;
|
grid-area: content;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.r-sidebar {
|
.r-sidebar {
|
||||||
|
BIN
src/assets/images/dark-bg.jpg
Normal file
BIN
src/assets/images/dark-bg.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 34 KiB |
BIN
src/assets/images/light-bg.jpg
Normal file
BIN
src/assets/images/light-bg.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 43 KiB |
0
src/components/FolderView/FolderList.vue
Normal file
0
src/components/FolderView/FolderList.vue
Normal file
115
src/components/FolderView/SongList.vue
Normal file
115
src/components/FolderView/SongList.vue
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
<template>
|
||||||
|
<div class="rounded folder">
|
||||||
|
<div class="folder-top flex">
|
||||||
|
<div class="fname">
|
||||||
|
<span>Oldies Volume 1</span>
|
||||||
|
</div>
|
||||||
|
<div class="fsearch">
|
||||||
|
<div>
|
||||||
|
<input type="text" placeholder="Search here" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="table">
|
||||||
|
<div>
|
||||||
|
<div class="theaders">
|
||||||
|
<div>Track</div>
|
||||||
|
<div>Artist</div>
|
||||||
|
<div>Album</div>
|
||||||
|
<div>Duration</div>
|
||||||
|
</div>
|
||||||
|
<hr />
|
||||||
|
<div class="theaders">
|
||||||
|
<div class="flex">
|
||||||
|
<div class="album-art rounded"></div>
|
||||||
|
<span>Some broken hearts never mend</span>
|
||||||
|
</div>
|
||||||
|
<div class="flex">Don Williams</div>
|
||||||
|
<div class="flex">Best Of</div>
|
||||||
|
<div class="flex">3:17</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.theaders {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr 1fr 1fr;
|
||||||
|
grid-auto-columns: 1fr;
|
||||||
|
gap: 0px 0px;
|
||||||
|
grid-auto-flow: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
.theaders .flex {
|
||||||
|
align-items: center;
|
||||||
|
/* border: solid; */
|
||||||
|
}
|
||||||
|
|
||||||
|
.theaders .flex span {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
|
}
|
||||||
|
.theaders .album-art {
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
margin-right: 10px;
|
||||||
|
background: rgb(172, 13, 13);
|
||||||
|
}
|
||||||
|
|
||||||
|
.folder {
|
||||||
|
background-color: rgba(0, 0, 0, 0.144);
|
||||||
|
padding: 20px 20px 20px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.folder-top {
|
||||||
|
padding-bottom: 20px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
border-bottom: 1px solid rgba(255, 255, 255, 0.445);
|
||||||
|
}
|
||||||
|
|
||||||
|
.folder-top .fname {
|
||||||
|
width: 50%;
|
||||||
|
color: rgba(255, 255, 255, 0.438);
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-weight: bold;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.folder-top .fsearch {
|
||||||
|
width: 50%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.folder-top .fsearch div {
|
||||||
|
width: 100%;
|
||||||
|
padding-right: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.folder-top .fsearch input {
|
||||||
|
width: 100%;
|
||||||
|
height: 50px;
|
||||||
|
border: none;
|
||||||
|
border-radius: 10px;
|
||||||
|
outline: none;
|
||||||
|
padding-left: 10px;
|
||||||
|
background-color: #0101016c;
|
||||||
|
color: rgba(255, 255, 255, 0.521);
|
||||||
|
font-size: large;
|
||||||
|
line-height: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.folder-top .fsearch input:focus {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
</style>
|
@ -45,7 +45,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
<hr />
|
<hr />
|
||||||
<router-link :to="{ name: 'Home' }">
|
<router-link :to="{ name: 'FolderView' }">
|
||||||
<div class="nav-button" id="folders-button">
|
<div class="nav-button" id="folders-button">
|
||||||
<div class="in">
|
<div class="in">
|
||||||
<div class="nav-icon" id="folders-icon"></div>
|
<div class="nav-icon" id="folders-icon"></div>
|
||||||
@ -77,6 +77,9 @@ export default {
|
|||||||
|
|
||||||
.nav-container {
|
.nav-container {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
border-top: 1px solid rgba(255, 255, 255, 0.158);
|
||||||
|
margin-bottom: 10px;
|
||||||
|
padding-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-container .nav-button {
|
.nav-container .nav-button {
|
||||||
@ -89,7 +92,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.collapsed span {
|
.collapsed .nav-button span {
|
||||||
font-size: small;
|
font-size: small;
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,28 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="about">
|
<div>
|
||||||
<h1>This is a folder view</h1>
|
<SongList/>
|
||||||
|
<!-- <hr> -->
|
||||||
|
<FolderList/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import SongList from "@/components/FolderView/SongList.vue";
|
||||||
|
import FolderList from "@/components/FolderView/FolderList.vue";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
SongList,
|
||||||
|
FolderList
|
||||||
|
},
|
||||||
|
setup() {
|
||||||
|
return {
|
||||||
|
//
|
||||||
|
};
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
Loading…
x
Reference in New Issue
Block a user