- Nettoyage paroles : suppression instructions Suno AI, corrections prononciation (11 fichiers) - 4 palettes saisonnières (Automne/Hiver dark, Printemps/Été light) avec sélecteur - Typographie modernisée : Outfit (display) + Inter (sans) remplacent Syne + Space Grotesk - Styles adaptatifs : CSS vars pour couleurs, overrides light mode complets - Mini-player : bouton Next ajouté, flèche expand plus visible - BookPlayer : fix scroll mode paginé, croix de fermeture visible - Illustrations Shadoks inline SVG dans 11 composants/pages - Suppression soulignés navigation, reset boutons, bordures propres Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
167 lines
6.0 KiB
Vue
167 lines
6.0 KiB
Vue
<template>
|
|
<div class="relative overflow-hidden section-padding">
|
|
<!-- Shadok DJ: character with headphones behind a turntable -->
|
|
<svg class="shadok-dj" viewBox="0 0 260 300" fill="none" aria-hidden="true">
|
|
<!-- Body -->
|
|
<ellipse cx="130" cy="155" rx="42" ry="50" fill="currentColor" opacity="0.85"/>
|
|
<!-- Head -->
|
|
<circle cx="130" cy="88" r="26" fill="currentColor" opacity="0.8"/>
|
|
<!-- Headphones band -->
|
|
<path d="M104 78 Q130 55 156 78" stroke="currentColor" stroke-width="4" stroke-linecap="round" fill="none" opacity="0.6"/>
|
|
<!-- Headphone ear pads -->
|
|
<ellipse cx="102" cy="85" rx="8" ry="12" fill="currentColor" opacity="0.5"/>
|
|
<ellipse cx="158" cy="85" rx="8" ry="12" fill="currentColor" opacity="0.5"/>
|
|
<!-- Eyes (cool, half-lidded) -->
|
|
<ellipse cx="120" cy="85" rx="5" ry="3" fill="currentColor" opacity="0.25"/>
|
|
<ellipse cx="140" cy="85" rx="5" ry="3" fill="currentColor" opacity="0.25"/>
|
|
<circle cx="121" cy="86" r="1.8" fill="currentColor" opacity="0.5"/>
|
|
<circle cx="141" cy="86" r="1.8" fill="currentColor" opacity="0.5"/>
|
|
<!-- Mouth (grin) -->
|
|
<path d="M122 98 Q130 104 138 98" stroke="currentColor" stroke-width="2" stroke-linecap="round" fill="none" opacity="0.35"/>
|
|
<!-- Arms reaching to turntable -->
|
|
<line x1="90" y1="150" x2="55" y2="195" stroke="currentColor" stroke-width="3.5" stroke-linecap="round" opacity="0.6"/>
|
|
<line x1="170" y1="150" x2="205" y2="195" stroke="currentColor" stroke-width="3.5" stroke-linecap="round" opacity="0.6"/>
|
|
<!-- Turntable body -->
|
|
<rect x="30" y="200" width="200" height="18" rx="4" fill="currentColor" opacity="0.4"/>
|
|
<!-- Turntable platter (ellipse for perspective) -->
|
|
<ellipse cx="130" cy="200" rx="55" ry="15" fill="currentColor" opacity="0.25"/>
|
|
<ellipse cx="130" cy="200" rx="55" ry="15" stroke="currentColor" stroke-width="1.5" fill="none" opacity="0.35"/>
|
|
<!-- Record center -->
|
|
<circle cx="130" cy="200" r="5" fill="currentColor" opacity="0.4"/>
|
|
<!-- Tone arm -->
|
|
<line x1="195" y1="188" x2="150" y2="195" stroke="currentColor" stroke-width="2" stroke-linecap="round" opacity="0.5"/>
|
|
<circle cx="195" cy="188" r="3" fill="currentColor" opacity="0.35"/>
|
|
<!-- Legs -->
|
|
<line x1="115" y1="202" x2="105" y2="260" stroke="currentColor" stroke-width="3.5" stroke-linecap="round" opacity="0.6"/>
|
|
<line x1="145" y1="202" x2="155" y2="260" stroke="currentColor" stroke-width="3.5" stroke-linecap="round" opacity="0.6"/>
|
|
</svg>
|
|
|
|
<div class="container-content">
|
|
<header class="mb-12 text-center">
|
|
<p class="mb-2 font-mono text-sm tracking-widest text-accent uppercase">{{ content?.kicker }}</p>
|
|
<h1 class="page-title font-display font-bold tracking-tight text-white">
|
|
{{ content?.title }}
|
|
</h1>
|
|
<p class="mt-4 mx-auto max-w-2xl text-white/60">
|
|
{{ content?.description }}
|
|
</p>
|
|
</header>
|
|
|
|
<!-- Search + view toggle -->
|
|
<div class="mb-6 flex items-center justify-between gap-4">
|
|
<div class="relative flex-1 max-w-md">
|
|
<div class="i-lucide-search absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-white/30" />
|
|
<input
|
|
v-model="search"
|
|
type="text"
|
|
:placeholder="content?.searchPlaceholder"
|
|
class="w-full rounded-lg bg-surface border border-white/8 py-2 pl-10 pr-4 text-sm text-white placeholder:text-white/30 focus:border-primary/50 focus:outline-none"
|
|
>
|
|
</div>
|
|
|
|
<div class="flex items-center gap-1 rounded-lg bg-surface p-1">
|
|
<button
|
|
class="rounded p-1.5 transition-colors"
|
|
:class="viewMode === 'list' ? 'bg-white/10 text-white' : 'text-white/40'"
|
|
@click="viewMode = 'list'"
|
|
>
|
|
<div class="i-lucide-list h-4 w-4" />
|
|
</button>
|
|
<button
|
|
class="rounded p-1.5 transition-colors"
|
|
:class="viewMode === 'grid' ? 'bg-white/10 text-white' : 'text-white/40'"
|
|
@click="viewMode = 'grid'"
|
|
>
|
|
<div class="i-lucide-grid-3x3 h-4 w-4" />
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Song list -->
|
|
<div v-if="viewMode === 'list'" class="flex flex-col gap-2">
|
|
<SongItem
|
|
v-for="song in filteredSongs"
|
|
:key="song.id"
|
|
:song="song"
|
|
/>
|
|
</div>
|
|
|
|
<!-- Song grid -->
|
|
<div v-else class="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
|
|
<SongItem
|
|
v-for="song in filteredSongs"
|
|
:key="song.id"
|
|
:song="song"
|
|
/>
|
|
</div>
|
|
|
|
<p v-if="filteredSongs.length === 0" class="text-center text-white/40 py-12">
|
|
{{ content?.noResults }}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
definePageMeta({
|
|
layout: 'default',
|
|
})
|
|
|
|
const { data: content } = await usePageContent('ecouter')
|
|
|
|
useHead({
|
|
title: content.value?.meta?.title ?? 'Écouter',
|
|
})
|
|
|
|
const store = usePlayerStore()
|
|
const bookData = useBookData()
|
|
const { loadFullPlaylist } = usePlaylist()
|
|
|
|
await bookData.init()
|
|
|
|
// Switch to free mode
|
|
store.setMode('free')
|
|
await loadFullPlaylist()
|
|
|
|
const search = ref('')
|
|
const viewMode = ref<'list' | 'grid'>('list')
|
|
|
|
const filteredSongs = computed(() => {
|
|
const songs = bookData.getSongs()
|
|
if (!search.value.trim()) return songs
|
|
|
|
const q = search.value.toLowerCase()
|
|
return songs.filter(
|
|
s => s.title.toLowerCase().includes(q)
|
|
|| s.artist.toLowerCase().includes(q)
|
|
|| s.tags.some(t => t.toLowerCase().includes(q)),
|
|
)
|
|
})
|
|
</script>
|
|
|
|
<style scoped>
|
|
.page-title {
|
|
font-size: clamp(2rem, 5vw, 2.75rem);
|
|
}
|
|
|
|
.shadok-dj {
|
|
position: absolute;
|
|
right: 2%;
|
|
top: 3%;
|
|
width: clamp(100px, 14vw, 190px);
|
|
opacity: 0.1;
|
|
pointer-events: none;
|
|
color: hsl(var(--color-accent));
|
|
animation: shadok-float-dj 8s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes shadok-float-dj {
|
|
0%, 100% { transform: translateY(0); }
|
|
50% { transform: translateY(-10px); }
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.shadok-dj { display: none; }
|
|
}
|
|
</style>
|