Chapitres condensés, renommages, numéros de page
- 06-economie → 06-produire (titre "Produire"), 07-echange → 07-echanger - Frontmatter : champ page: ajouté sur les 11 chapitres (p.9 à p.199) - content.config.ts : page: z.number().optional() dans le schéma - modele-eco/index.vue : numéro de page affiché sur chaque carte, hero réduit - 11 chapitres condensés à ~moitié : voix de l'auteur conservée, répétitions et transitions secondaires supprimées, concepts clés préservés Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -358,18 +358,18 @@
|
||||
<div class="container-content">
|
||||
<!-- Page de couverture du livre -->
|
||||
<HomeBookSection
|
||||
class="mb-16"
|
||||
class="mb-10 hero-compact"
|
||||
:show-chapters="false"
|
||||
@open-player="showBookPlayer = true"
|
||||
@open-pdf="showPdfReader = true"
|
||||
/>
|
||||
|
||||
<header class="mb-12 text-center">
|
||||
<header class="mb-10 text-center">
|
||||
<p class="mb-2 font-mono text-sm tracking-widest text-primary uppercase">{{ content?.kicker }}</p>
|
||||
<h1 class="page-title font-display font-bold tracking-tight" style="color: hsl(var(--color-text))">
|
||||
{{ content?.title }}
|
||||
</h1>
|
||||
<p class="mt-4 mx-auto max-w-2xl" style="color: hsl(var(--color-text-muted))">
|
||||
<p class="mt-3 mx-auto max-w-2xl text-sm" style="color: hsl(var(--color-text-muted))">
|
||||
{{ content?.description }}
|
||||
</p>
|
||||
</header>
|
||||
@@ -388,9 +388,12 @@
|
||||
{{ String(chapter.order).padStart(2, '0') }}
|
||||
</span>
|
||||
<div class="min-w-0 flex-1">
|
||||
<h2 class="font-display text-lg font-semibold text-white group-hover:text-primary transition-colors">
|
||||
{{ chapter.title }}
|
||||
</h2>
|
||||
<div class="flex items-baseline gap-2 flex-wrap">
|
||||
<h2 class="font-display text-lg font-semibold text-white group-hover:text-primary transition-colors">
|
||||
{{ chapter.title }}
|
||||
</h2>
|
||||
<span v-if="chapter.page" class="text-xs font-mono text-white/30 flex-shrink-0">p. {{ chapter.page }}</span>
|
||||
</div>
|
||||
<p v-if="chapter.description" class="mt-1 text-sm text-white/50">
|
||||
{{ chapter.description }}
|
||||
</p>
|
||||
@@ -435,7 +438,25 @@ const showPdfReader = ref(false)
|
||||
|
||||
<style scoped>
|
||||
.page-title {
|
||||
font-size: clamp(2rem, 5vw, 2.75rem);
|
||||
font-size: clamp(1.5rem, 3.5vw, 2rem);
|
||||
}
|
||||
|
||||
/* Compact the HomeBookSection hero */
|
||||
:deep(.hero-compact .book-hero),
|
||||
:deep(.hero-compact .section-hero) {
|
||||
padding-top: 2rem;
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
:deep(.hero-compact img),
|
||||
:deep(.hero-compact .book-cover) {
|
||||
max-height: 260px;
|
||||
}
|
||||
:deep(.hero-compact h1),
|
||||
:deep(.hero-compact .hero-title) {
|
||||
font-size: clamp(1.4rem, 3vw, 2rem);
|
||||
}
|
||||
:deep(.hero-compact .hero-description) {
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* Shadok illustrations — shared */
|
||||
|
||||
Reference in New Issue
Block a user