diff --git a/app/app.config.ts b/app/app.config.ts index 4a94550a..6fb16f61 100644 --- a/app/app.config.ts +++ b/app/app.config.ts @@ -1,15 +1,16 @@ export default defineAppConfig({ site: { name: 'Le Librodrome', - description: 'Une économie du don — enfin concevable. Un livre et 9 chansons, lecture guidée et écoute libre.', + description: 'Une économie du don — enfin concevable. Un livre et des chansons, lecture guidée et écoute libre.', url: 'https://librodrome.org', }, header: { height: '4rem', nav: [ - { label: 'Accueil', to: '/' }, - { label: 'Lire', to: '/lire' }, - { label: 'Écouter', to: '/ecouter' }, + { label: 'Autonomie', to: '/autonomie' }, + { label: 'Modèle éco', to: '/lire' }, + { label: 'En musique', to: '/ecouter' }, + { label: 'Évènement', to: '/evenement' }, { label: 'À propos', to: '/a-propos' }, ], }, diff --git a/app/app.vue b/app/app.vue index 207714bf..17b182a7 100644 --- a/app/app.vue +++ b/app/app.vue @@ -22,7 +22,7 @@ useHead({ return title ? `${title} — Le Librodrome` : 'Le librodrome' }, meta: [ - { name: 'description', content: 'Une économie du don — enfin concevable. Un livre et 9 chansons, lecture guidée et écoute libre.' }, + { name: 'description', content: 'Une économie du don — enfin concevable. Un livre et des chansons, lecture guidée et écoute libre.' }, ], }) diff --git a/app/components/home/BookPresentation.vue b/app/components/home/BookPresentation.vue index f35eeb57..ed3a5f9a 100644 --- a/app/components/home/BookPresentation.vue +++ b/app/components/home/BookPresentation.vue @@ -29,6 +29,40 @@ + + +
@@ -135,7 +169,24 @@ const { data: content } = await usePageContent('home') 50% { transform: translateY(-8px); } } +.shadok-menuisier { + position: absolute; + left: 2%; + top: 5%; + width: clamp(100px, 13vw, 190px); + opacity: 0.25; + pointer-events: none; + color: hsl(var(--color-primary)); + animation: shadok-float-menuisier 10s ease-in-out infinite; +} + +@keyframes shadok-float-menuisier { + 0%, 100% { transform: translateY(0); } + 50% { transform: translateY(-9px); } +} + @media (max-width: 768px) { .shadok-thinker { display: none; } + .shadok-menuisier { display: none; } } diff --git a/app/components/home/HeroSection.vue b/app/components/home/HeroSection.vue index a7d134c8..902d5e64 100644 --- a/app/components/home/HeroSection.vue +++ b/app/components/home/HeroSection.vue @@ -23,6 +23,36 @@ + + +
@@ -91,7 +121,25 @@ const { data: content } = await usePageContent('home') 50% { transform: translateY(-12px); } } +.shadok-boulanger { + position: absolute; + left: 3%; + bottom: 8%; + width: clamp(100px, 13vw, 190px); + opacity: 0.25; + pointer-events: none; + color: hsl(var(--color-accent)); + animation: shadok-float-boulanger 9s ease-in-out infinite; + z-index: 1; +} + +@keyframes shadok-float-boulanger { + 0%, 100% { transform: translateY(0); } + 50% { transform: translateY(-8px); } +} + @media (max-width: 768px) { .shadok-bird { display: none; } + .shadok-boulanger { display: none; } } diff --git a/app/components/song/SongItem.vue b/app/components/song/SongItem.vue index 50293919..87fd9db4 100644 --- a/app/components/song/SongItem.vue +++ b/app/components/song/SongItem.vue @@ -1,38 +1,58 @@ @@ -47,6 +67,7 @@ const store = usePlayerStore() const { loadAndPlay, togglePlayPause } = useAudioPlayer() const isCurrent = computed(() => store.currentSong?.id === props.song.id) +const showLyrics = ref(false) function handlePlay() { if (isCurrent.value) { @@ -63,3 +84,38 @@ function formatDuration(seconds: number): string { return `${mins}:${secs.toString().padStart(2, '0')}` } + + diff --git a/app/components/song/SongLyrics.vue b/app/components/song/SongLyrics.vue index 7df944dc..0bc28a0f 100644 --- a/app/components/song/SongLyrics.vue +++ b/app/components/song/SongLyrics.vue @@ -12,7 +12,7 @@ -
+
{{ song.lyrics }}
@@ -44,7 +44,7 @@ const isOpen = ref(false) .lyrics-expand-enter-to, .lyrics-expand-leave-from { - max-height: 500px; + max-height: 600px; opacity: 1; } diff --git a/app/pages/ecouter/index.vue b/app/pages/ecouter/index.vue index 87907827..8ad8c027 100644 --- a/app/pages/ecouter/index.vue +++ b/app/pages/ecouter/index.vue @@ -1,5 +1,35 @@ @@ -108,9 +164,10 @@ definePageMeta({ }) const { data: content } = await usePageContent('ecouter') +const { data: homeContent } = await usePageContent('home') useHead({ - title: content.value?.meta?.title ?? 'Écouter', + title: content.value?.meta?.title ?? 'En musique', }) const store = usePlayerStore() @@ -125,6 +182,8 @@ 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() @@ -144,6 +203,50 @@ const filteredSongs = computed(() => { 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%); +} + +.shadok-danseur { + position: absolute; + left: 2%; + top: 3%; + width: clamp(100px, 14vw, 200px); + opacity: 0.28; + pointer-events: none; + color: hsl(var(--color-primary)); + animation: shadok-float-danseur 7s ease-in-out infinite; +} + .shadok-dj { position: absolute; right: 2%; @@ -155,12 +258,19 @@ const filteredSongs = computed(() => { animation: shadok-float-dj 8s ease-in-out infinite; } +@keyframes shadok-float-danseur { + 0%, 100% { transform: translateY(0) rotate(0deg); } + 25% { transform: translateY(-8px) rotate(2deg); } + 75% { transform: translateY(-4px) rotate(-2deg); } +} + @keyframes shadok-float-dj { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } } @media (max-width: 768px) { + .shadok-danseur { display: none; } .shadok-dj { display: none; } } diff --git a/app/pages/lire/index.vue b/app/pages/lire/index.vue index ffdaec3f..d7018c3f 100644 --- a/app/pages/lire/index.vue +++ b/app/pages/lire/index.vue @@ -49,6 +49,43 @@ + + +

{{ content?.kicker }}

@@ -150,8 +187,26 @@ const { data: chapters } = await useAsyncData('book-toc', () => 50% { transform: translateY(-8px) rotate(-2deg); } } +.shadok-scribe { + position: absolute; + left: 50%; + bottom: 3%; + transform: translateX(-50%); + width: clamp(100px, 13vw, 180px); + opacity: 0.25; + pointer-events: none; + color: hsl(var(--color-primary)); + animation: shadok-float-scribe 10s ease-in-out infinite; +} + +@keyframes shadok-float-scribe { + 0%, 100% { transform: translateX(-50%) translateY(0); } + 50% { transform: translateX(-50%) translateY(-8px); } +} + @media (max-width: 768px) { .shadok-reader { display: none; } .shadok-stack { display: none; } + .shadok-scribe { display: none; } } diff --git a/data/pages/ecouter.yml b/data/pages/ecouter.yml index 208430e4..a9c71c29 100644 --- a/data/pages/ecouter.yml +++ b/data/pages/ecouter.yml @@ -1,7 +1,7 @@ -kicker: Écoute libre -title: Les 9 chansons -description: Ecoutez librement les chansons qui racontent le livre. +kicker: Le livre en musique +title: Des chansons qui racontent le livre +description: Chaque chanson est un prolongement musical d'un ou deux chapitres. searchPlaceholder: Rechercher une chanson... noResults: Aucune chanson ne correspond à votre recherche. meta: - title: Écouter + title: En musique diff --git a/data/pages/home.yml b/data/pages/home.yml index 27982043..b115fd76 100644 --- a/data/pages/home.yml +++ b/data/pages/home.yml @@ -30,7 +30,7 @@ bookPresentation: to: /lire songs: kicker: Les chansons - title: 9 chansons qui racontent le livre + title: Des chansons qui racontent le livre description: Chaque chanson est un prolongement musical d'un ou deux chapitres. cta: label: Voir toutes les chansons diff --git a/data/pages/lire.yml b/data/pages/lire.yml index 0ed5baaf..7c6f6dfc 100644 --- a/data/pages/lire.yml +++ b/data/pages/lire.yml @@ -1,6 +1,6 @@ kicker: Le livre -title: Table des matières +title: Un modèle économique description: Quelques chapitres pour explorer les fondements d'une économie du don, accompagnés de chansons qui le racontent autrement. meta: - title: Table des matières + title: Un modèle économique diff --git a/data/site.yml b/data/site.yml index 8c592bd4..8c78c346 100644 --- a/data/site.yml +++ b/data/site.yml @@ -1,14 +1,16 @@ identity: name: Le Librodrome - description: Une économie du don — enfin concevable. Un livre et 9 chansons, lecture accompagnée et écoute libre. + description: Une économie du don — enfin concevable. Un livre et des chansons, lecture accompagnée et écoute libre. url: https://librodrome.org navigation: - - label: Accueil - to: / - - label: Lire + - label: Autonomie + to: /autonomie + - label: Modèle éco to: /lire - - label: Écouter + - label: En musique to: /ecouter + - label: Évènement + to: /evenement - label: À propos to: /a-propos footer: diff --git a/docker/Dockerfile b/docker/Dockerfile index 60bddfa9..aa766603 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -11,13 +11,15 @@ WORKDIR /src # Build FROM base AS build +RUN corepack enable + COPY package.json pnpm-lock.yaml ./ -RUN npm install -RUN npm rebuild sharp +RUN pnpm install --frozen-lockfile +RUN pnpm rebuild sharp COPY . . -RUN npm run build +RUN pnpm run build # Production FROM base AS production @@ -37,4 +39,5 @@ CMD [ "node", ".output/server/index.mjs" ] FROM base AS development WORKDIR /app -ENTRYPOINT [ "npm", "run", "dev" ] +RUN corepack enable +ENTRYPOINT [ "pnpm", "run", "dev" ]