draggable / touchable card v0.1
All checks were successful
Deploy App / build (push) Successful in 1m53s
Deploy App / deploy (push) Successful in 18s

This commit is contained in:
valere
2025-12-24 06:00:15 +01:00
parent 1f4f7868ca
commit ad938abf79
11 changed files with 414 additions and 201 deletions

View File

@@ -1,3 +1,32 @@
<template>
<slot />
<Bucket @card-dropped="onCardDropped" />
<Platine />
</template>
<script setup lang="ts">
import type { Track } from '~~/types/types'
const onCardDropped = (card: Track) => {
console.log('Carte déposée dans le bucket:', card)
}
</script>
<style scoped>
.bucket,
.platine {
position: fixed;
bottom: 0;
right: 0;
}
.bucket {
z-index: 70;
bottom: 0;
}
.platine {
z-index: 60;
bottom: -70%;
}
</style>