mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-06 03:05:35 +00:00
initial buid of folder explorer view
This commit is contained in:
parent
90ecbe1a04
commit
12c0669c90
13
src/App.vue
13
src/App.vue
@ -1,4 +1,5 @@
|
||||
<template>
|
||||
<div id="bg-blur"></div>
|
||||
<div class="l-container" :class="{ collapsed: collapsed }">
|
||||
<div class="l-sidebar">
|
||||
<div id="logo-container">
|
||||
@ -7,9 +8,9 @@
|
||||
><div ref="logo" class="logo"></div
|
||||
></router-link>
|
||||
</div>
|
||||
<hr class="seperator" />
|
||||
<!-- <hr class="seperator" /> -->
|
||||
<Navigation :collapsed="collapsed" />
|
||||
<hr class="seperator" />
|
||||
<!-- <hr class="seperator" /> -->
|
||||
<PinnedStuff :collapsed="collapsed" />
|
||||
<div id="settings-button">
|
||||
<div class="in">
|
||||
@ -39,7 +40,7 @@ export default {
|
||||
PinnedStuff,
|
||||
},
|
||||
setup() {
|
||||
const collapsed = ref(false);
|
||||
const collapsed = ref(true);
|
||||
|
||||
const logo = ref(null);
|
||||
|
||||
@ -52,6 +53,8 @@ export default {
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
|
||||
.logo {
|
||||
height: 30px;
|
||||
width: 150px;
|
||||
@ -78,6 +81,7 @@ export default {
|
||||
margin-left: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.l-sidebar {
|
||||
@ -108,9 +112,10 @@ export default {
|
||||
color: #fff;
|
||||
height: 50px;
|
||||
width: 100%;
|
||||
border-top: 1px solid #ffffff27;
|
||||
}
|
||||
|
||||
#settings-button .in {
|
||||
#settings-button .in {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
@ -4,14 +4,14 @@
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: #0e141a;
|
||||
background: #0d0e0e;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#app {
|
||||
font-family: Avenir, Helvetica, Arial, sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
color: #2c3e50;
|
||||
}
|
||||
|
||||
a {
|
||||
@ -27,12 +27,11 @@ hr,
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
|
||||
}
|
||||
|
||||
.l-container {
|
||||
display: grid;
|
||||
grid-template-columns: min-content 4fr 1fr;
|
||||
grid-template-columns: min-content 4fr 1.5fr;
|
||||
grid-template-rows: 78px 1fr 1fr;
|
||||
grid-auto-flow: row;
|
||||
grid-template-areas:
|
||||
@ -41,12 +40,27 @@ hr,
|
||||
"l-sidebar content r-sidebar";
|
||||
width: 100vw;
|
||||
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);
|
||||
}
|
||||
|
||||
.collapsed .l-sidebar{
|
||||
#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 {
|
||||
width: 70px;
|
||||
transition-timing-function: ease-in-out;
|
||||
transition-duration: .3s;
|
||||
transition-duration: 0.3s;
|
||||
transition-property: width;
|
||||
}
|
||||
|
||||
@ -56,10 +70,17 @@ hr,
|
||||
padding-top: 0.5em;
|
||||
background-color: #131313b2;
|
||||
transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
|
||||
transition-duration: .3s;
|
||||
transition-duration: 0.3s;
|
||||
transition-property: width;
|
||||
}
|
||||
.rounded {
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.nav {
|
||||
grid-area: nav;
|
||||
@ -69,6 +90,7 @@ hr,
|
||||
.content {
|
||||
grid-area: content;
|
||||
border-radius: 5px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.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>
|
||||
</router-link>
|
||||
<hr />
|
||||
<router-link :to="{ name: 'Home' }">
|
||||
<router-link :to="{ name: 'FolderView' }">
|
||||
<div class="nav-button" id="folders-button">
|
||||
<div class="in">
|
||||
<div class="nav-icon" id="folders-icon"></div>
|
||||
@ -77,6 +77,9 @@ export default {
|
||||
|
||||
.nav-container {
|
||||
color: #fff;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.158);
|
||||
margin-bottom: 10px;
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.nav-container .nav-button {
|
||||
@ -89,7 +92,7 @@ export default {
|
||||
}
|
||||
|
||||
|
||||
.collapsed span {
|
||||
.collapsed .nav-button span {
|
||||
font-size: small;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
@ -1,5 +1,28 @@
|
||||
<template>
|
||||
<div class="about">
|
||||
<h1>This is a folder view</h1>
|
||||
<div>
|
||||
<SongList/>
|
||||
<!-- <hr> -->
|
||||
<FolderList/>
|
||||
</div>
|
||||
</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