Second avis du studio DA (03/11, 07h56) et relecture de fb8c71f (08h14) :
- numérique : le zigzag gauche-droite à pas égal est cassé. Électricien en M,
codeuse et cryptographe au bas de leur carte, à droite, administrateur réseau
en grand derrière Cloud libre ;
- commande : un seul côté par carte. Cycliste à gauche de la première, libraire
en grand derrière la seconde ; la lectrice se tient sur le sac de l'icône.
Le cartonnier va sur la ligne qui clôt chaque chapitre, l'empileur sur le
sommaire du livre : les 61 restent rendus ;
- au moins deux tailles dès trois oiseaux (chapitre, en-musique, événement) ;
- un oiseau de marge a les pieds sur une vraie ligne, le bas ou le haut de son
bloc ou d'une carte, jamais à mi-hauteur (« posés sans flotter ») ;
- aucun oiseau sur le haut invisible de la boîte d'un titre : dj, trapéziste,
alchimiste et droneuse se tiennent sur la dernière ligne ou au bout de
l'intitulé ;
- téléphone : le pompeur de Ğ1 au bout de la ligne de l'intitulé ;
- sous-pages numériques : poses, tailles et décalages variés malgré le sommaire
à droite ; le comédien de tarifs-eau perché sur sa carte, hors du sommaire.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
182 lines
5.8 KiB
Vue
182 lines
5.8 KiB
Vue
<template>
|
|
<div class="relative overflow-hidden section-padding">
|
|
<div class="container-content">
|
|
<!-- Hero section with book cover -->
|
|
<div class="mb-12 grid items-center gap-8 md:grid-cols-2">
|
|
<div class="book-cover-wrapper relative">
|
|
<!-- On the cover's base line, in the empty space between the book and the text -->
|
|
<UiOiseauPose nom="trompettiste" pose="libre" left="calc(100% - 112px)" bottom="0px" :w="104" />
|
|
<div class="book-cover-3d">
|
|
<img
|
|
:src="homeContent?.book.coverImage"
|
|
:alt="homeContent?.book.coverAlt"
|
|
class="book-cover-img"
|
|
/>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="text-center md:text-left">
|
|
<p class="relative mb-2 font-mono text-sm tracking-widest text-accent uppercase">
|
|
{{ content?.kicker }}
|
|
<!-- The DJ stands at the end of this line: the title's box has no visible top edge -->
|
|
<UiOiseauPose nom="dj" pose="perche" right="0px" bottom="0px" :w="84" retourne ton="accent" :seuil="1200" />
|
|
</p>
|
|
<h1 class="page-title relative font-display font-bold tracking-tight text-white">
|
|
{{ content?.title }}
|
|
</h1>
|
|
<p class="mt-4 text-white/60">
|
|
{{ content?.description }}
|
|
</p>
|
|
<div class="mt-6 flex flex-col gap-3 sm:flex-row sm:gap-4 justify-center md:justify-start">
|
|
<UiBaseButton @click="showBookPlayer = true">
|
|
<div class="i-lucide-play mr-2 h-5 w-5" />
|
|
Présentation musicale
|
|
</UiBaseButton>
|
|
<UiBaseButton variant="accent" @click="showPdfReader = true">
|
|
<div class="i-lucide-book-open mr-2 h-5 w-5" />
|
|
Lire le livre
|
|
</UiBaseButton>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 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="relative flex flex-col gap-2">
|
|
<UiOiseauPose nom="danseur" pose="perche" left="calc(64% - 60px)" :w="120" :seuil="1200" />
|
|
<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>
|
|
|
|
<BookPlayer v-model="showBookPlayer" />
|
|
<BookPdfReader v-model="showPdfReader" />
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
definePageMeta({
|
|
layout: 'default',
|
|
})
|
|
|
|
const { data: content } = await usePageContent('en-musique')
|
|
const { data: homeContent } = await usePageContent('home')
|
|
|
|
useSeoPage({
|
|
title: content.value?.meta?.title ?? 'En musique — Le Librodrome',
|
|
description: 'Neuf chansons qui racontent le livre « Une économie du don ». Écoute libre, paroles et présentation musicale guidée.',
|
|
image: '/images/Couv-Economie-du-don.jpg',
|
|
})
|
|
|
|
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 showBookPlayer = ref(false)
|
|
const showPdfReader = ref(false)
|
|
|
|
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);
|
|
}
|
|
|
|
.book-cover-wrapper {
|
|
perspective: 800px;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.book-cover-3d {
|
|
aspect-ratio: 3 / 4;
|
|
border-radius: 0.75rem;
|
|
overflow: hidden;
|
|
border: 1px solid hsl(var(--color-text) / 0.1);
|
|
box-shadow:
|
|
0 12px 40px hsl(var(--color-text) / 0.15),
|
|
0 0 0 1px hsl(var(--color-text) / 0.08);
|
|
transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1),
|
|
box-shadow 0.5s ease;
|
|
max-width: 280px;
|
|
}
|
|
|
|
.book-cover-3d:hover {
|
|
transform: rotateY(-8deg) rotateX(3deg) scale(1.02);
|
|
box-shadow:
|
|
12px 16px 48px hsl(var(--color-text) / 0.2),
|
|
0 0 0 1px hsl(var(--color-primary) / 0.2);
|
|
}
|
|
|
|
.book-cover-img {
|
|
width: 200%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transform: translateX(-50%);
|
|
}
|
|
</style>
|