koel/resources/assets/js/components/ui/skeletons/ArtistAlbumCardSkeleton.vue
2024-10-14 00:37:01 +07:00

25 lines
665 B
Vue

<template>
<article :class="layout" class="skeleton flex flex-col gap-3 p-5 rounded-lg max-w-[256px] border border-k-border">
<aside class="aspect-square rounded-lg pulse" />
<footer class="flex flex-col flex-1 gap-3">
<p class="h-[1.2rem] w-3/4 pulse" />
<p class="h-[1.2rem] w-2/3 pulse" />
<p class="h-[1.2rem] w-1/3 pulse" />
</footer>
</article>
</template>
<script lang="ts" setup>
withDefaults(defineProps<{ layout?: ArtistAlbumCardLayout }>(), { layout: 'full' })
</script>
<style lang="postcss" scoped>
.compact {
@apply flex-row items-center max-w-full p-4 rounded-md;
aside {
@apply w-[80px];
}
}
</style>