Files
evilspins/app/pages/story/mix.vue
valere afb20fe75f
All checks were successful
Deploy App / build (push) Successful in 1m57s
Deploy App / deploy (push) Successful in 16s
bucket + card sharer
2025-12-26 19:27:33 +01:00

61 lines
941 B
Vue

<template>
<div class="mix">
<Platine :track="track1" />
<Platine :track="track2" />
</div>
</template>
<script setup>
import { useDataStore } from '~/store/data'
const dataStore = useDataStore()
const track1 = ref(null)
const track2 = ref(null)
// Configuration du layout
definePageMeta({
layout: 'empty'
})
onMounted(async () => {
await dataStore.loadData()
track1.value = dataStore.getRandomPlaylistTrack()
track2.value = dataStore.getRandomPlaylistTrack()
})
</script>
<style>
.mix {
display: flex;
width: 100%;
height: 100vh;
}
/* Écran portrait (plus haut que large) */
@media (orientation: portrait) {
.mix {
flex-direction: column;
}
.platine {
height: 50vh;
.disc {
height: 100%;
width: auto;
}
}
}
/* Écran paysage (plus large que haut) */
@media (orientation: landscape) {
.mix {
flex-direction: row;
}
.platine {
width: 50vw;
}
}
</style>