platine transition
All checks were successful
Deploy App / build (push) Successful in 2m4s
Deploy App / deploy (push) Successful in 16s

This commit is contained in:
valere
2026-01-01 20:50:37 +01:00
parent a5fe876e3f
commit bb791e35d1
2 changed files with 35 additions and 43 deletions

View File

@@ -1,12 +1,14 @@
<template>
<slot />
<Bucket />
<Platine />
<Platine v-if="playerStore.currentTrack" />
</template>
<script setup lang="ts">
import type { Track } from '~~/types/types'
import { usePlayerStore } from '~/store/player'
const playerStore = usePlayerStore()
const onCardDropped = (card: Track) => {
console.log('Carte déposée dans le bucket:', card)
}
@@ -16,16 +18,17 @@ const onCardDropped = (card: Track) => {
.bucket,
.platine {
position: fixed;
bottom: 0;
bottom: -100%;
right: 0;
height: auto;
}
.bucket {
z-index: 70;
bottom: -260px;
transition: bottom 0.3s ease;
width: 100%;
overflow-x: scroll;
transition: bottom .3s ease;
&:hover,
.card-dragging & {
@@ -38,9 +41,13 @@ const onCardDropped = (card: Track) => {
}
.platine {
z-index: 60;
bottom: -70%;
transition: bottom 0.3s ease;
/* width: 25%; */
bottom: -100%;
transition: bottom 2s ease;
&.mounted {
z-index: 60;
bottom: 0;
width: 25%;
}
}
</style>