animations + cards
All checks were successful
Deploy App / deploy (push) Successful in 30s

This commit is contained in:
valere
2025-09-30 01:10:12 +02:00
parent 631bc65c70
commit 9438394db8
20 changed files with 775 additions and 455 deletions

View File

@@ -0,0 +1,25 @@
<template>
<article
class="backdrop-blur-sm -mt-12 z-10 card w-56 h-80 p-3 bg-opacity-10 bg-white rounded-2xl shadow-lg flex flex-col overflow-hidden">
<!-- Cover -->
<figure class="flex-1 overflow-hidden rounded-t-xl">
<img :src="coverUrl" alt="Pochette de l'album" class="w-full h-full object-cover object-center" />
</figure>
<!-- Body -->
<div class="p-3 text-center bg-white rounded-b-xl">
<h2 class="text-base text-neutral-800 font-bold truncate">{{ props.track.title }}</h2>
<p class="text-sm text-neutral-500 truncate">
{{ props.track.artist.name }}
</p>
</div>
</article>
</template>
<script setup lang="ts">
import type { Track } from '~~/types/types'
const props = defineProps<{ track: Track }>()
const coverUrl = `https://f4.bcbits.com/img/${props.track.artist.coverId}_4.jpg`
</script>