build playlist view

This commit is contained in:
geoffrey45
2021-12-06 19:08:35 +03:00
parent c2fc2170fe
commit fdcf92ec79
11 changed files with 185 additions and 23 deletions
+157 -21
View File
@@ -1,31 +1,167 @@
<template>
<div class="p-header rounded">
<div class="album-art rounded"></div>
<div></div>
<div class="info rounded">
<p class="name">Because I Got High Radio</p>
<p class="text">
The best music to fade to while doing my thing. Featuring artists like Wiz Khalifa, Lil Wayne, Ne-Yo, Ace Of Base, ...
</p>
<div class="lower">
<div class="statistics">
<div class="count s-item"><p>45 Tracks</p></div>
<div class="duration s-item"><p>3 Hrs 45 Min</p></div>
</div>
<hr />
<div class="btns">
<div class="play s-item"><p>Play Now</p></div>
</div>
</div>
<!-- -->
<div class="albums">
<div class="item third image"></div>
<div class="item second image"></div>
<div class="item first image"></div>
</div>
</div>
<div class="banner rounded"></div>
</div>
</template>
<script>
export default {
}
</script>
<style lang="scss">
.p-header {
display: flex;
padding: 0.5rem;
background-color: $card-dark;
height: calc(100% - 1rem);
}
.p-header > * {
// border: solid;
}
.p-header .album-art {
width: 15rem;
display: grid;
grid-template-columns: 1fr .75fr;
height: 15rem;
background: $red;
margin-bottom: 1em;
background: rgb(42, 46, 54);
}
.p-header hr {
border: none;
}
.p-header .info {
background-color: rgb(1, 5, 17);
padding: 0.5rem;
margin: 0.5rem 0 0.5rem 0.5rem;
position: relative;
overflow: hidden;
}
.p-header .info .name {
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
font-size: 2rem;
font-weight: bold;
margin: 0;
}
.p-header .info .text {
margin: 0.5rem 1em 0.5rem 0;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
height: 4em;
}
.p-header .banner {
margin: 0.5rem;
background-color: $blue;
background: url(../../assets/images/girl5.jpg);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.p-header .info .statistics {
display: flex;
}
.p-header .info .count {
background: url(../../assets/icons/album.svg);
}
.p-header .info .duration {
background-image: url(../../assets/icons/clock.svg);
}
.p-header .info .s-item {
background-size: 1.2rem;
background-position: 10% 50%;
width: 9rem;
display: flex;
align-items: center;
font-weight: lighter;
margin-right: $small;
height: 2rem;
border: solid 1px rgba(255, 255, 255, 0.445);
border-radius: $small;
background-repeat: no-repeat;
}
.p-header .info .lower p {
margin-left: 2.5rem;
}
.p-header .info .btns {
height: 2.5rem;
}
.p-header .info .btns .play {
width: 8rem;
height: 100%;
background-color: $green;
border: none;
background-image: url(../../assets/icons/play.svg);
}
.p-header .info .albums {
position: relative;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 0.5rem;
// border: solid;
position: absolute;
bottom: -.5em;
right: -1em;
}
.p-header .info .albums .item {
height: 5em;
width: 5em;
background-color: $blue;
border-radius: $small;
}
.p-header .info .albums .first {
position: absolute;
transform: rotate(-30deg);
right: .5em;
bottom: 0em;
background-color: $red;
background-image: url(../../assets/images/girl2.jpg);
}
.p-header .info .albums .second {
position: absolute;
transform: rotate(10deg);
right: 4em;
bottom: -1em !important;
background-color: $green;
background-image: url(../../assets/images/tk.jpg);
z-index: 1;
}
.p-header .info .albums .third {
position: absolute;
transform: rotate(-10deg);
bottom: -1em;
right: 9em;
background-color: $green;
background-image: url(../../assets/images/girl3.jpg);
z-index: 2;
}
</style>