🔷 Update playlist card to correct grammar

This commit is contained in:
geoffrey45
2022-04-08 06:48:12 +03:00
parent 657daa389f
commit b61a0a7eeb
+16 -8
View File
@@ -2,12 +2,23 @@
<router-link <router-link
:to="{ name: 'PlaylistView', params: { pid: props.playlist.playlistid } }" :to="{ name: 'PlaylistView', params: { pid: props.playlist.playlistid } }"
:playlist="props.playlist" :playlist="props.playlist"
class="p-card rounded shadow-sm" class="p-card rounded"
> >
<div class="image rounded"></div> <div
class="image rounded"
:style="{
backgroundImage: `url(${props.playlist.image})`,
}"
></div>
<div class="bottom"> <div class="bottom">
<div class="name ellip">{{ props.playlist.name }}</div> <div class="name ellip">{{ props.playlist.name }}</div>
<div class="count">{{ props.playlist.count }} Tracks</div> <div class="count">
<span v-if="props.playlist.count == 0">No Tracks</span>
<span v-else-if="props.playlist.count == 1"
>{{ props.playlist.count }} Track</span
>
<span v-else>{{ props.playlist.count }} Tracks</span>
</div>
</div> </div>
</router-link> </router-link>
</template> </template>
@@ -23,7 +34,6 @@ const props = defineProps<{
<style lang="scss"> <style lang="scss">
.p-card { .p-card {
width: 100%; width: 100%;
background: $gray;
padding: $small; padding: $small;
transition: all 0.2s ease; transition: all 0.2s ease;
@@ -36,9 +46,7 @@ const props = defineProps<{
.image { .image {
min-width: 100%; min-width: 100%;
height: 10rem; height: 11rem;
background-image: url("../../assets/images/eggs.jpg");
background-size: auto 10rem;
transition: all 0.2s ease; transition: all 0.2s ease;
} }
@@ -51,7 +59,7 @@ const props = defineProps<{
.count { .count {
font-size: $medium; font-size: $medium;
color: $indigo; color: $gray1;
} }
} }
} }