mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-10 04:57:45 +00:00
88 lines
1.6 KiB
Vue
88 lines
1.6 KiB
Vue
<template>
|
|
<router-link
|
|
:to="{
|
|
name: 'AlbumView',
|
|
params: { album: album.album, artist: album.artist },
|
|
}"
|
|
class="result-item shadow-sm"
|
|
>
|
|
<div class="_idk">
|
|
<div
|
|
class="album-art image"
|
|
:style="{
|
|
backgroundImage: `url("${album.image}")`,
|
|
}"
|
|
></div>
|
|
<div class="play shadow-lg image"></div>
|
|
</div>
|
|
<div class="title ellip">{{ album.album }}</div>
|
|
<div class="artistsx ellipsis">{{ album.artist }}</div>
|
|
</router-link>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: ["album"],
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.result-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: $small;
|
|
border-radius: 0.75rem;
|
|
text-align: left !important;
|
|
border: solid 2px transparent;
|
|
background-color: $gray;
|
|
color: #ffffffde !important;
|
|
transition: all 0.5s ease;
|
|
|
|
._idk {
|
|
position: relative;
|
|
|
|
&:hover {
|
|
.play {
|
|
visibility: visible;
|
|
}
|
|
}
|
|
|
|
.play {
|
|
width: 3rem;
|
|
height: 3rem;
|
|
background-color: $gray;
|
|
border-radius: 1rem;
|
|
position: absolute;
|
|
left: 2rem;
|
|
bottom: 2.5rem;
|
|
background-image: url("../../assets/icons/play.svg");
|
|
background-size: 2rem;
|
|
background-position: 60% 50%;
|
|
visibility: hidden;
|
|
}
|
|
|
|
.album-art {
|
|
height: 7.5rem;
|
|
width: 7.5rem;
|
|
border-radius: 0.5rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
}
|
|
|
|
.title {
|
|
width: 7rem;
|
|
margin-bottom: 0.25rem;
|
|
font-size: 0.9rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.artistsx {
|
|
width: 7rem;
|
|
font-size: 0.8rem;
|
|
text-align: left;
|
|
color: #ffffffbd;
|
|
}
|
|
}
|
|
</style>
|