Files
nav-carte/components/evenements/Page.vue
T
Jules NenyandClaude Opus 5.5 db6ba17c37 feat(evenements): retours de Jules du 22/10 sur les pages Ruetz (B25, commit E)
- Forêt : plus aucun lien vers la semaine ni vers le carrefour (retour et pied retirés).
- Frise : le bloc plantation est un lien vers la page forêt (ombre au repos, levé au
  survol, anneau au focus) ; légende et pied portent un lien safran « La page forêt ».
- Arrivée le samedi 21 pour tout le monde : un seul jour dans les données, la question
  disparaît du formulaire (valeur envoyée d'office) ; frise, légende, desc, carte Venir.
- Compteur : « 1 inscrit·e sur 16, pour l'instant », seize pastilles ; Jules compté
  d'office (codev.dejaInscrits = 1), le complet tombe à 15 inscriptions.
- Lieu cliquable vers Google Maps (lieu-dit seulement) sur forêt, codev, carrefour ;
  récap pratique à icônes en tête de la forêt et du codev.
- Icônes SVG inline (grille 24, trait 1,75) sur les cartes du pratique et de Venir.
- Servigne : l'encadré rejoint l'intention, avec un « cf. » en note.
- « Le sens de la semaine » (repliable) : les trois échelles du deck du 23/10
  (slides 07 à 09) redessinées, badges du site.
- Une photo cadrée et légendée sur la page codev ; case plantation centrée ;
  cartes du carrefour à la hauteur du texte ; les liens sont soulignés.
- Tableau de covoiturage (Google Sheet, non partagé) dans covoiturageUrl.
- Tests : 72 cas (dejaInscrits, compteur, arrivée unique, liens forêt, Maps).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DwRV4Gjq47A633kqxvCint
2026-10-22 08:59:41 +02:00

242 lines
7.8 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<div class="evt">
<div class="evt__col">
<nav v-if="retour" class="evt-retour" aria-label="Retour">
<NuxtLink :to="retour.to">← {{ retour.label }}</NuxtLink>
</nav>
<main id="contenu">
<slot />
</main>
</div>
</div>
</template>
<script setup lang="ts">
defineProps<{ retour?: { to: string; label: string } }>()
</script>
<!--
Gabarit des pages d'événement (lot Y) : colonne de lecture de 640 px, plus d'air que l'app.
Styles non scopés, préfixe evt- : partagés par les pages et les composants evenements/.
Tokens du DS (tokens.css + theme/aep.css) ; safran (--accent) réservé à la plantation
et au bouton principal ; bleu nuit plein = --nav-primary-solid.
-->
<style>
.evt {
--evt-attenue: color-mix(in srgb, var(--text) 78%, transparent);
--evt-nuit: var(--nav-primary-solid);
--evt-sur-nuit: var(--nav-text-on-primary);
/* Deux teintes du deck e-codev (frontend-slides) : ocre = ce qui sort, sauge = ce qui revient, le vivant */
--evt-ocre: #9a5f12;
--evt-sauge: #3f6b4e;
min-height: 100%;
background: var(--bg);
color: var(--text);
font-family: var(--font-body);
line-height: 1.6;
}
.dark .evt { --evt-ocre: #e3a95c; --evt-sauge: #8fc09e; }
.evt__col {
max-width: 640px;
margin: 0 auto;
padding: var(--space-lg) var(--space-md) var(--space-3xl);
}
@media (min-width: 768px) {
.evt__col { padding: var(--space-2xl) var(--space-lg) var(--space-3xl); }
}
/* Le preflight Tailwind retire le soulignement : un lien des pages d'événement se voit lien */
.evt a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.evt a:hover { color: var(--link-hover); }
.evt :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 2px; }
.evt-retour { margin-bottom: var(--space-lg); font-size: var(--fs-sm); }
.evt-retour a { color: var(--evt-attenue); text-decoration: none; }
.evt-retour a:hover { color: var(--text); text-decoration: underline; }
/* ── En-tête ── */
.evt-tete { margin-bottom: var(--space-xl); }
.evt-h1 {
font-size: clamp(1.85rem, 6.5vw, 2.6rem);
line-height: 1.15;
letter-spacing: -0.015em;
font-weight: var(--fw-bold);
margin: 0 0 var(--space-md);
text-wrap: balance;
}
.evt-sous {
font-size: var(--fs-lg);
font-weight: var(--fw-semibold);
margin: 0 0 var(--space-2xs);
}
.evt-lieu { color: var(--evt-attenue); margin: 0; }
.evt-sr {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
/* ── Récap pratique en tête : dates, lieu, trajet, repas ── */
.evt-recap { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; gap: var(--space-xs); }
.evt-recap li { display: flex; align-items: flex-start; gap: var(--space-sm); line-height: 1.45; }
.evt-recap .evt-icone { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--evt-attenue); }
.evt-recap .evt-lieu-lien { padding: 2px 0; margin: -2px 0; }
.evt-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--space-sm) var(--space-md);
margin-top: var(--space-lg);
}
/* ── Sections ── */
.evt-section { margin-top: var(--space-3xl); }
.evt-h2 {
font-size: var(--fs-xl);
line-height: 1.25;
font-weight: var(--fw-bold);
margin: 0 0 var(--space-md);
text-wrap: balance;
}
.evt-h3 { font-size: var(--fs-base); font-weight: var(--fw-bold); margin: 0 0 var(--space-xs); }
.evt p { margin: 0 0 var(--space-md); }
.evt-note { font-size: var(--fs-sm); color: var(--evt-attenue); }
.evt-citation-source { font-size: var(--fs-sm); color: var(--evt-attenue); margin-top: calc(-1 * var(--space-xs)); }
/* ── Boutons ── */
.evt-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-xs);
min-height: 48px;
padding: 0 var(--space-lg);
border: 0;
border-radius: var(--radius-md);
background: var(--accent);
color: var(--on-accent);
font: inherit;
font-weight: var(--fw-bold);
text-decoration: none;
cursor: pointer;
}
.evt a.evt-btn { color: var(--on-accent); text-decoration: none; }
.evt-btn:hover { filter: brightness(0.96); }
.evt-btn[disabled] { opacity: 0.6; cursor: progress; }
/* Lien vers la forêt : safran (réservé à la plantation), en teinte pour ne pas doubler le bouton principal */
.evt a.evt-lien-foret {
display: inline-flex;
align-items: center;
gap: var(--space-xs);
min-height: 44px;
padding: 0 var(--space-md) 0 var(--space-sm);
border: 1.5px solid var(--accent);
border-radius: var(--radius-full);
background: color-mix(in srgb, var(--accent) 28%, var(--surface));
color: var(--text);
font-weight: var(--fw-bold);
text-decoration: none;
white-space: nowrap;
}
.evt a.evt-lien-foret:hover { background: var(--accent); color: var(--on-accent); }
.evt-lien-foret .evt-icone { width: 20px; height: 20px; }
/* ── Cartes (pratique, venir) ── */
.evt-cartes { display: grid; gap: var(--space-sm); grid-template-columns: 1fr; }
@media (min-width: 560px) { .evt-cartes--2 { grid-template-columns: 1fr 1fr; } }
.evt-carte {
padding: var(--space-md) var(--space-md) var(--space-sm);
border-radius: var(--radius-lg);
background: var(--surface);
border: 1px solid var(--border);
}
.evt-carte p:last-child { margin-bottom: var(--space-xs); }
.evt-carte__tete { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-xs); }
.evt-carte__tete .evt-h3 { margin: 0; }
.evt-picto {
flex: none;
display: grid;
place-items: center;
width: 40px;
height: 40px;
border-radius: var(--radius-md);
background: var(--bg-alt);
color: var(--text);
}
/* ── Figures ── */
.evt-figure { margin: var(--space-lg) 0; }
.evt-figure img, .evt-figure svg { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }
.evt-figure figcaption { margin-top: var(--space-xs); font-size: var(--fs-sm); color: var(--evt-attenue); }
.evt-pleine { margin-left: calc(-1 * var(--space-md)); margin-right: calc(-1 * var(--space-md)); }
.evt-pleine img { border-radius: 0; }
.evt-pleine figcaption { padding: 0 var(--space-md); }
@media (min-width: 672px) {
.evt-pleine { margin-left: 0; margin-right: 0; }
.evt-pleine img { border-radius: var(--radius-md); }
.evt-pleine figcaption { padding: 0; }
}
/* ── Dépliables ── */
.evt-details {
margin-top: var(--space-md);
border-radius: var(--radius-lg);
background: var(--surface);
border: 1px solid var(--border);
}
.evt-details > summary {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-sm);
min-height: 52px;
padding: var(--space-sm) var(--space-md);
font-weight: var(--fw-bold);
cursor: pointer;
list-style: none;
}
.evt-details > summary::-webkit-details-marker { display: none; }
.evt-details > summary::after {
content: '+';
flex: none;
width: 28px;
height: 28px;
border-radius: var(--radius-full);
background: var(--bg-alt);
display: grid;
place-items: center;
font-size: 1.1rem;
line-height: 1;
}
.evt-details[open] > summary::after { content: '−'; }
.evt-details__corps { padding: 0 var(--space-md) var(--space-md); }
/* ── Listes ── */
.evt-liste { margin: 0 0 var(--space-md); padding-left: 1.2em; }
.evt-liste li { margin-bottom: var(--space-xs); }
.evt-deroule { margin: 0; padding: 0; list-style: none; border-left: 3px solid var(--accent); }
.evt-deroule li { padding: 0 0 var(--space-md) var(--space-md); }
.evt-deroule strong { display: block; }
/* ── Encadré ── */
.evt-encadre {
padding: var(--space-md);
border-radius: var(--radius-lg);
background: var(--bg-alt);
}
.evt-encadre p:last-child { margin-bottom: 0; }
/* ── Pied ── */
.evt-pied {
margin-top: var(--space-3xl);
padding-top: var(--space-lg);
border-top: 1px solid var(--border);
font-size: var(--fs-sm);
}
.evt-pied p { margin-bottom: var(--space-xs); }
</style>