Compare commits

...

2 Commits

Author SHA1 Message Date
valere
bd5ed09d5e add card verso
Some checks failed
Deploy App / build (push) Failing after 1m18s
Deploy App / deploy (push) Has been skipped
2025-09-30 12:37:24 +02:00
valere
c028fda489 drop position in studio 2025-09-30 12:35:59 +02:00
2 changed files with 28 additions and 23 deletions

View File

@@ -1,18 +1,28 @@
<template> <template>
<article <article class="relative">
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"> <main
<!-- Cover --> class="absolute top-0 backdrop-blur-sm z-40 -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">
<figure class="flex-1 overflow-hidden rounded-t-xl"> <!-- Cover -->
<img :src="coverUrl" alt="Pochette de l'album" class="w-full h-full object-cover object-center" /> <figure class="flex-1 overflow-hidden rounded-t-xl">
</figure> <img :src="coverUrl" alt="Pochette de l'album" class="w-full h-full object-cover object-center" />
</figure>
<!-- Body --> <!-- Body -->
<div class="p-3 text-center bg-white rounded-b-xl"> <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> <h2 class="text-base text-neutral-800 font-bold truncate">{{ props.track.title }}</h2>
<p class="text-sm text-neutral-500 truncate"> <p class="text-sm text-neutral-500 truncate">
{{ props.track.artist.name }} {{ props.track.artist.name }}
</p> </p>
</div> </div>
</main>
<footer
class="absolute top-0 ml-32 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">
<!-- Back -->
<div class="h-full flex p-16 text-center bg-slate-800 rounded-xl">
<img src="/favicon.svg" />
</div>
</footer>
</article> </article>
</template> </template>

View File

@@ -3,11 +3,11 @@
<div class="bg-page-dark-bg text-white"> <div class="bg-page-dark-bg text-white">
<div class="flex flex-col-reverse bg-gradient-to-r from-primary to-primary-dark"> <div class="flex flex-col-reverse bg-gradient-to-r from-primary to-primary-dark">
<div class="mt-8 flex flex-wrap justify-center"> <div class="mt-8 flex flex-wrap justify-center">
<molecule-box :compilation="compilation" :position="currentPosition" :size="size" /> <molecule-box :compilation="compilation" />
<div class="devtool absolute right-4 text-white bg-black rounded-2xl px-4 py-2"> <div class="devtool absolute right-4 text-white bg-black rounded-2xl px-4 py-2">
<button @click="currentPosition = boxPositions.side">side</button> <!-- <button @click="currentPosition = boxPositions.side">side</button>
<button @click="currentPosition = boxPositions.front">front</button> <button @click="currentPosition = boxPositions.front">front</button>
<button @click="currentPosition = boxPositions.back">back</button> <button @click="currentPosition = boxPositions.back">back</button> -->
<div class="w-full block"> <div class="w-full block">
<input class="w-1/2" type="color" name="color1" id="color1" v-model="compilation.color1"> <input class="w-1/2" type="color" name="color1" id="color1" v-model="compilation.color1">
<input class="w-1/2" type="color" name="color1" id="color1" v-model="compilation.color2"> <input class="w-1/2" type="color" name="color1" id="color1" v-model="compilation.color2">
@@ -20,7 +20,7 @@
<input v-model.number="size" type="range" step="1" min="1" max="14"> <input v-model.number="size" type="range" step="1" min="1" max="14">
</label> </label>
</div> </div>
<div> <!-- <div>
<label class="block"> <label class="block">
X: {{ currentPosition.x }} X: {{ currentPosition.x }}
<input v-model.number="currentPosition.x" type="range" step="1" min="-180" max="180"> <input v-model.number="currentPosition.x" type="range" step="1" min="-180" max="180">
@@ -33,7 +33,7 @@
Z: {{ currentPosition.z }} Z: {{ currentPosition.z }}
<input v-model.number="currentPosition.z" type="range" step="1" min="-180" max="180"> <input v-model.number="currentPosition.z" type="range" step="1" min="-180" max="180">
</label> </label>
</div> </div> -->
</div> </div>
</div> </div>
</div> </div>
@@ -44,7 +44,6 @@
<script setup lang="ts"> <script setup lang="ts">
import type { BoxPosition, Compilation, Track } from '~~/types/types' import type { BoxPosition, Compilation, Track } from '~~/types/types'
import { boxPositions } from '~/store/position'
const compilation = ref<Compilation>({ const compilation = ref<Compilation>({
id: 'ES00A', id: 'ES00A',
@@ -71,9 +70,5 @@ const track = ref<Track>({
coverId: 'a3236746052', coverId: 'a3236746052',
}) })
const size = ref(6)
const currentPosition: Ref<BoxPosition> = ref(boxPositions.side)
//from-slate-800 to-zinc-900 //from-slate-800 to-zinc-900
</script> </script>