From c586cc3932d10c3118dc2b30c8f4fb0cc712c1eb Mon Sep 17 00:00:00 2001 From: valere Date: Sun, 4 Jan 2026 23:01:26 +0100 Subject: [PATCH] PLATINE blur bobine --- app/components/Platine.vue | 37 +++++++++++++------------------------ app/layouts/default.vue | 2 +- 2 files changed, 14 insertions(+), 25 deletions(-) diff --git a/app/components/Platine.vue b/app/components/Platine.vue index 5b75c68..71cc5e5 100644 --- a/app/components/Platine.vue +++ b/app/components/Platine.vue @@ -1,14 +1,14 @@ @@ -64,11 +64,9 @@ watch(() => props.track, (newTrack) => { position: relative; width: 100%; height: 100%; - padding: 20px; .card { position: absolute !important; - z-index: 99; top: -20%; left: 50%; bottom: 0; @@ -78,7 +76,6 @@ watch(() => props.track, (newTrack) => { .disc { position: relative; - background-color: white; aspect-ratio: 1; width: 100%; overflow: hidden; @@ -86,10 +83,10 @@ watch(() => props.track, (newTrack) => { cursor: grab; background-position: center; background-size: cover; - box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); + box-shadow: 0 0 20px rgba(0, 0, 0, 0.4); - .dragoOver & { - background-color: #4CAF50; + .loading & { + box-shadow: none; } } @@ -162,11 +159,12 @@ watch(() => props.track, (newTrack) => { height: 100%; background: rgba(0, 0, 0, 0.5); border-radius: 50%; - z-index: 10; } .cover { position: absolute; + top: 0; + left: 0; border-radius: 100%; object-fit: cover; width: 100%; @@ -195,15 +193,6 @@ watch(() => props.track, (newTrack) => { } .bobine { - &::before { - content: ''; - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - background-size: cover; - opacity: 0.7; - } + @apply bg-slate-900 bg-opacity-50 backdrop-blur absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 rounded-full; } diff --git a/app/layouts/default.vue b/app/layouts/default.vue index 39c8088..8cdcffe 100644 --- a/app/layouts/default.vue +++ b/app/layouts/default.vue @@ -45,7 +45,7 @@ const onCardDropped = (card: Track) => { transition: bottom 2s ease; &.mounted { - z-index: 60; + z-index: 80; bottom: 0; width: 100%;