break down search component into smaler components

This commit is contained in:
geoffrey45
2022-01-23 10:27:39 +03:00
parent 7945c04a06
commit 7689f13fdc
16 changed files with 596 additions and 469 deletions
+51
View File
@@ -0,0 +1,51 @@
<template>
<div class="result-item border">
<div
class="album-art image"
:style="{
backgroundImage: `url(&quot;${album.image}&quot;)`,
}"
></div>
<div class="title ellip">{{ album.name }}</div>
<div class="artistsx ellipsis">{{ album.artist }}</div>
</div>
</template>
<script>
export default {
props: ["album"],
};
</script>
<style lang="scss">
.result-item {
display: flex;
flex-direction: column;
align-items: center;
padding: $small;
border-radius: $small;
text-align: left !important;
width: 9rem;
.album-art {
height: 7rem;
width: 7rem;
border-radius: 0.5rem;
margin-bottom: 0.5rem;
}
.title {
width: 7rem;
margin-bottom: 0.5rem;
font-size: 0.9rem;
}
.artistsx {
width: 7rem;
display: flex;
font-size: 0.8rem;
text-align: left;
color: rgba(40, 116, 216, 0.767);
}
}
</style>