Compare commits

...

2 Commits

Author SHA1 Message Date
valere
27697ca797 update cover card url & artist/title fonts
All checks were successful
Deploy App / build (push) Successful in 2m10s
Deploy App / deploy (push) Successful in 15s
2025-11-26 20:21:00 +01:00
valere
ba34ecece0 playlist is a yellow box 2025-11-26 16:19:21 +01:00
3 changed files with 63 additions and 66 deletions

View File

@@ -34,10 +34,10 @@
<div class="label" v-if="isOrder"> <div class="label" v-if="isOrder">
{{ props.track.order }} {{ props.track.order }}
</div> </div>
<h2 class="text-base text-neutral-800 font-bold truncate"> <h2 class="text-sm text-neutral-500 first-letter:uppercase truncate">
{{ props.track.title }} {{ props.track.title }}
</h2> </h2>
<p class="text-sm text-neutral-500 truncate"> <p class="text-base text-neutral-800 font-bold capitalize truncate">
<template v-if="isPlaylistTrack"> <template v-if="isPlaylistTrack">
{{ props.track.artist.name }} {{ props.track.artist.name }}
</template> </template>

View File

@@ -1,71 +1,68 @@
import { eventHandler } from 'h3' import { eventHandler } from 'h3'
import type { Box } from '~~/types/types' import type { Box } from '~~/types/types'
const boxes: Box[] = [ export default eventHandler<Box[]>(() => {
{ return [
id: 'ES01', {
type: 'compilation', id: 'ES01',
name: '...', type: 'compilation',
description: '...', name: '...',
state: 'box-hidden', description: '...',
duration: 3487 + 3773, // Somme des durées A et B state: 'box-hidden',
sides: { duration: 3487 + 3773, // Somme des durées A et B
A: { sides: {
name: '...', A: {
description: '...', name: '...',
duration: 3487, description: '...',
color1: '#c7b3aa', duration: 3487,
color2: '#000100' color1: '#c7b3aa',
color2: '#000100'
},
B: {
name: '... B',
description: '...',
duration: 3773,
color1: '#f7dd01',
color2: '#010103'
}
}, },
B: { activeSide: 'A'
name: '... B',
description: '...',
duration: 3773,
color1: '#f7dd01',
color2: '#010103'
}
}, },
activeSide: 'A' {
}, id: 'ES00',
{ type: 'compilation',
id: 'ES00', name: 'manifeste',
type: 'compilation', description: 'Zero is for manifesto',
name: 'manifeste', state: 'box-hidden',
description: 'Zero is for manifesto', duration: 2794 + 2470, // Somme des durées A et B
state: 'box-hidden', sides: {
duration: 2794 + 2470, // Somme des durées A et B A: {
sides: { name: 'manifeste',
A: { description: 'Zero is for manifesto',
name: 'manifeste', duration: 2794,
description: 'Zero is for manifesto', color1: '#ffffff',
duration: 2794, color2: '#48959d'
color1: '#ffffff', },
color2: '#48959d' B: {
name: 'manifeste B',
description: 'Even Zero has a b-side',
duration: 2470,
color1: '#0d01b9',
color2: '#3b7589'
}
}, },
B: { activeSide: 'A'
name: 'manifeste B',
description: 'Even Zero has a b-side',
duration: 2470,
color1: '#0d01b9',
color2: '#3b7589'
}
}, },
activeSide: 'A' {
}, id: 'ESPLAYLIST',
{ type: 'playlist',
id: 'ESPLAYLIST', name: 'playlists',
type: 'playlist', duration: 0,
name: 'playlists', description: '♠♦♣♥',
duration: 0, state: 'box-hidden',
description: '♠♦♣♥', activeSide: 'A',
state: 'box-hidden', color1: '#fdec50ff',
activeSide: 'A' color2: '#fdec50ff'
} }
] ]
export default eventHandler(() => {
return boxes.map((box) => ({
...box,
state: 'box-hidden' as const
}))
}) })

View File

@@ -43,7 +43,7 @@ export default eventHandler(async (event) => {
const date = new Date(year, month - 1, day, hour) const date = new Date(year, month - 1, day, hour)
const card = getCardFromDate(date) const card = getCardFromDate(date)
const url = `${urlPrefix}/${encodeURIComponent(file)}` const url = `${urlPrefix}/${encodeURIComponent(file)}`
const coverId = `${urlPrefix}/${encodeURIComponent(file).replace(EXT_RE, '.jpg')}` const coverId = `${urlPrefix}/cover/${encodeURIComponent(file).replace(EXT_RE, '.jpg')}`
return { return {
id: Number(`${year}${index + 1}`), id: Number(`${year}${index + 1}`),