From 90cbc0be18792b338c6d3bd8a455394426c86de2 Mon Sep 17 00:00:00 2001 From: valere Date: Sun, 23 Nov 2025 20:42:49 +0100 Subject: [PATCH] imporve cards animations --- app/app.vue | 4 - app/components/Box.vue | 5 ++ app/components/Boxes.vue | 8 +- app/components/Card.vue | 20 +++-- app/components/CinemaScreen.vue | 3 + app/components/PlayButton.vue | 42 +++++---- app/components/deck/DeckCompilation.vue | 113 ++++++++++++++++-------- app/components/deck/DeckPlaylist.vue | 26 +++--- app/layouts/default.vue | 3 +- app/store/card.ts | 1 - app/store/data.ts | 5 ++ app/store/player.ts | 18 +++- public/play.svg | 65 +------------- types/types.ts | 2 +- 14 files changed, 167 insertions(+), 148 deletions(-) create mode 100644 app/components/CinemaScreen.vue diff --git a/app/app.vue b/app/app.vue index a605268..3c83e2c 100644 --- a/app/app.vue +++ b/app/app.vue @@ -71,10 +71,6 @@ input { @apply px-4 py-2 m-4 rounded-md text-center font-bold; } -button { - /* @apply bg-esyellow text-slate-700; */ -} - input[type='email'] { @apply bg-slate-900 text-esyellow; } diff --git a/app/components/Box.vue b/app/components/Box.vue index fbc7354..67c8806 100644 --- a/app/components/Box.vue +++ b/app/components/Box.vue @@ -133,7 +133,12 @@ function applyColor() { // --- Rotation complète --- function rotateBox() { if (!domBox.value) return + + rotateX.value = -20 + + rotateY.value = rotateY.value === 20 ? 380 : 20 + applyTransform(0.8) } diff --git a/app/components/Boxes.vue b/app/components/Boxes.vue index 16e64cb..2432493 100644 --- a/app/components/Boxes.vue +++ b/app/components/Boxes.vue @@ -1,15 +1,11 @@