merge: deploy/aep-y-ac — checkpoint AEP (intégration du 22/10)
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
<template>
|
||||
<!-- Seize pastilles qui se remplissent : on voit les places, pas un pourcentage.
|
||||
Le texte se lit seul ; les pastilles sont décoratives. -->
|
||||
<p class="cpt" :class="{ 'cpt--complet': complet }">
|
||||
<span class="cpt__pastilles" aria-hidden="true">
|
||||
<span v-for="i in capacite" :key="i" class="cpt__pastille" :class="{ 'cpt__pastille--prise': i <= pris }" />
|
||||
</span>
|
||||
<span class="cpt__texte">{{ texte }}</span>
|
||||
</p>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { texteCompteur } from '~/utils/inscriptionEvenement'
|
||||
|
||||
const props = defineProps<{ inscrits: number; capacite: number; complet: boolean }>()
|
||||
|
||||
const pris = computed(() => (props.complet ? props.capacite : Math.min(props.inscrits, props.capacite)))
|
||||
const texte = computed(() => texteCompteur(props.inscrits, props.capacite, props.complet))
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.cpt { display: flex; flex-direction: column; gap: var(--space-2xs); margin: 0; }
|
||||
.cpt__pastilles { display: flex; flex-wrap: wrap; gap: 5px; max-width: 100%; }
|
||||
.cpt__pastille {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
border-radius: var(--radius-full);
|
||||
border: 1.5px solid var(--border-strong);
|
||||
background: transparent;
|
||||
}
|
||||
.cpt__pastille--prise { background: var(--evt-nuit); border-color: var(--evt-nuit); }
|
||||
.cpt__texte { font-weight: var(--fw-semibold); }
|
||||
|
||||
/* Le seul mouvement de la page, parce qu'il dit vrai : les places prises arrivent, une à une.
|
||||
Rendu serveur déjà rempli ; l'animation ne fait que l'ajouter, et se coupe en mouvement réduit. */
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
.cpt__pastille--prise { animation: cpt-arrive 0.45s var(--ease-out) backwards; }
|
||||
.cpt__pastille--prise:nth-child(2) { animation-delay: 60ms; }
|
||||
.cpt__pastille--prise:nth-child(3) { animation-delay: 120ms; }
|
||||
.cpt__pastille--prise:nth-child(n + 4) { animation-delay: 180ms; }
|
||||
}
|
||||
@keyframes cpt-arrive { from { transform: scale(0.3); opacity: 0; } }
|
||||
</style>
|
||||
@@ -0,0 +1,320 @@
|
||||
<template>
|
||||
<div class="fi">
|
||||
<!-- Confirmation -->
|
||||
<div v-if="etat === 'ok'" ref="confirmation" class="fi-message fi-message--ok" tabindex="-1" role="status">
|
||||
<p class="fi-message__titre">Merci, c'est noté.</p>
|
||||
<p>Jules vous écrit avec les détails<template v-if="page === 'codev'"> et les coordonnées pour le virement</template>.</p>
|
||||
</div>
|
||||
|
||||
<!-- Complet -->
|
||||
<div v-else-if="complet || etat === 'complet'" class="fi-message" role="status">
|
||||
<p class="fi-message__titre">C'est complet.</p>
|
||||
<p>Écrivez-nous : <a :href="`mailto:${contact}`">{{ contact }}</a></p>
|
||||
</div>
|
||||
|
||||
<!-- Table non configurée -->
|
||||
<div v-else-if="!disponible || etat === 'indisponible'" class="fi-message" role="status">
|
||||
<p>Pour vous inscrire, écrivez à <a :href="`mailto:${contact}`">{{ contact }}</a></p>
|
||||
</div>
|
||||
|
||||
<form v-else novalidate :aria-describedby="`fi-${page}-donnees`" @submit.prevent="envoyer">
|
||||
<div class="fi-duo">
|
||||
<div class="fi-champ">
|
||||
<label :for="id('prenom')">Prénom</label>
|
||||
<input :id="id('prenom')" v-model="f.prenom" v-bind="aria('prenom')" autocomplete="given-name" maxlength="60" required>
|
||||
<p v-if="err.prenom" :id="id('prenom-err')" class="fi-err">{{ err.prenom }}</p>
|
||||
</div>
|
||||
<div class="fi-champ">
|
||||
<label :for="id('nom')">Nom</label>
|
||||
<input :id="id('nom')" v-model="f.nom" v-bind="aria('nom')" autocomplete="family-name" maxlength="80" required>
|
||||
<p v-if="err.nom" :id="id('nom-err')" class="fi-err">{{ err.nom }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fi-champ">
|
||||
<label :for="id('email')">Email</label>
|
||||
<input :id="id('email')" v-model="f.email" v-bind="aria('email')" type="email" autocomplete="email" inputmode="email" maxlength="200" required>
|
||||
<p v-if="err.email" :id="id('email-err')" class="fi-err">{{ err.email }}</p>
|
||||
</div>
|
||||
|
||||
<div class="fi-champ">
|
||||
<label :for="id('telephone')">Téléphone <span class="fi-facultatif">facultatif, pour le covoiturage</span></label>
|
||||
<input :id="id('telephone')" v-model="f.telephone" v-bind="aria('telephone')" type="tel" autocomplete="tel" inputmode="tel" maxlength="30">
|
||||
<p v-if="err.telephone" :id="id('telephone-err')" class="fi-err">{{ err.telephone }}</p>
|
||||
</div>
|
||||
|
||||
<!-- Codev : dates. Un seul jour d'arrivée (le 21) : pas de question, il part d'office -->
|
||||
<template v-if="page === 'codev'">
|
||||
<fieldset v-if="ARRIVEES_CODEV.length > 1" class="fi-champ" v-bind="ariaGroupe('arrivee')">
|
||||
<legend>J'arrive le</legend>
|
||||
<div class="fi-choix">
|
||||
<label v-for="d in ARRIVEES_CODEV" :key="d" class="fi-option">
|
||||
<input v-model="f.arrivee" type="radio" :name="id('arrivee')" :value="d">
|
||||
<span>{{ jourLong(d) }}</span>
|
||||
</label>
|
||||
</div>
|
||||
<p v-if="err.arrivee" :id="id('arrivee-err')" class="fi-err">{{ err.arrivee }}</p>
|
||||
</fieldset>
|
||||
<fieldset class="fi-champ" v-bind="ariaGroupe('depart')">
|
||||
<legend>Je repars le</legend>
|
||||
<div class="fi-choix">
|
||||
<label v-for="d in DEPARTS_CODEV" :key="d" class="fi-option">
|
||||
<input v-model="f.depart" type="radio" :name="id('depart')" :value="d">
|
||||
<span>{{ jourLong(d) }}</span>
|
||||
</label>
|
||||
</div>
|
||||
<p v-if="err.depart" :id="id('depart-err')" class="fi-err">{{ err.depart }}</p>
|
||||
</fieldset>
|
||||
<div class="fi-champ">
|
||||
<label class="fi-option fi-option--case">
|
||||
<input v-model="f.reste_plantation" type="checkbox">
|
||||
<span>Je reste pour la plantation du 28-29 novembre</span>
|
||||
</label>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<!-- Forêt : qui, quand, où dormir -->
|
||||
<template v-else>
|
||||
<div class="fi-duo">
|
||||
<div class="fi-champ">
|
||||
<label :for="id('nb_personnes')">Nombre de personnes</label>
|
||||
<select :id="id('nb_personnes')" v-model.number="f.nb_personnes" v-bind="aria('nb_personnes')">
|
||||
<option v-for="n in 8" :key="n" :value="n">{{ n }}</option>
|
||||
</select>
|
||||
<p v-if="err.nb_personnes" :id="id('nb_personnes-err')" class="fi-err">{{ err.nb_personnes }}</p>
|
||||
</div>
|
||||
<div class="fi-champ">
|
||||
<label :for="id('nb_enfants')">dont enfants</label>
|
||||
<select :id="id('nb_enfants')" v-model.number="f.nb_enfants" v-bind="aria('nb_enfants')">
|
||||
<option v-for="n in 8" :key="n - 1" :value="n - 1">{{ n - 1 }}</option>
|
||||
</select>
|
||||
<p v-if="err.nb_enfants" :id="id('nb_enfants-err')" class="fi-err">{{ err.nb_enfants }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<fieldset class="fi-champ" v-bind="ariaGroupe('arrivee')">
|
||||
<legend>J'arrive</legend>
|
||||
<div class="fi-choix">
|
||||
<label v-for="a in ARRIVEES_FORET" :key="a" class="fi-option">
|
||||
<input v-model="f.arrivee" type="radio" :name="id('arrivee')" :value="a">
|
||||
<span>{{ ARRIVEES_FORET_LABELS[a] }}</span>
|
||||
</label>
|
||||
</div>
|
||||
<p v-if="err.arrivee" :id="id('arrivee-err')" class="fi-err">{{ err.arrivee }}</p>
|
||||
</fieldset>
|
||||
<fieldset class="fi-champ" v-bind="ariaGroupe('dort_sur_place')">
|
||||
<legend>Je dors sur place</legend>
|
||||
<div class="fi-choix fi-choix--ligne">
|
||||
<label class="fi-option"><input v-model="f.dort_sur_place" type="radio" :name="id('dort')" :value="true"><span>Oui</span></label>
|
||||
<label class="fi-option"><input v-model="f.dort_sur_place" type="radio" :name="id('dort')" :value="false"><span>Non</span></label>
|
||||
</div>
|
||||
<p v-if="err.dort_sur_place" :id="id('dort_sur_place-err')" class="fi-err">{{ err.dort_sur_place }}</p>
|
||||
</fieldset>
|
||||
</template>
|
||||
|
||||
<div class="fi-champ">
|
||||
<label :for="id('besoin')">Les repas sont végétariens. Un besoin particulier ? <span class="fi-facultatif">facultatif</span></label>
|
||||
<input :id="id('besoin')" v-model="f.besoin_alimentaire" v-bind="aria('besoin_alimentaire')" maxlength="300">
|
||||
<p v-if="err.besoin_alimentaire" :id="id('besoin_alimentaire-err')" class="fi-err">{{ err.besoin_alimentaire }}</p>
|
||||
</div>
|
||||
|
||||
<fieldset class="fi-champ" v-bind="ariaGroupe('voiture')">
|
||||
<legend>Covoiturage</legend>
|
||||
<div class="fi-choix">
|
||||
<label v-for="v in VOITURES" :key="v" class="fi-option">
|
||||
<input v-model="f.voiture" type="radio" :name="id('voiture')" :value="v">
|
||||
<span>{{ VOITURES_LABELS[v] }}</span>
|
||||
</label>
|
||||
</div>
|
||||
<p v-if="err.voiture" :id="id('voiture-err')" class="fi-err">{{ err.voiture }}</p>
|
||||
</fieldset>
|
||||
|
||||
<div class="fi-champ">
|
||||
<label :for="id('mot')">Un mot <span class="fi-facultatif">facultatif</span></label>
|
||||
<textarea :id="id('mot')" v-model="f.mot" v-bind="aria('mot')" rows="3" maxlength="1000" />
|
||||
<p v-if="err.mot" :id="id('mot-err')" class="fi-err">{{ err.mot }}</p>
|
||||
</div>
|
||||
|
||||
<!-- Honeypot : invisible pour un humain, rempli par un robot -->
|
||||
<div class="fi-pot" aria-hidden="true">
|
||||
<label :for="id('site_web')">Site web</label>
|
||||
<input :id="id('site_web')" v-model="f.site_web" tabindex="-1" autocomplete="off">
|
||||
</div>
|
||||
|
||||
<p v-if="page === 'codev'" class="fi-avant">10 € par jour, par virement ; les coordonnées vous arrivent par email.</p>
|
||||
<p v-else class="fi-avant">Rien à régler.</p>
|
||||
|
||||
<p v-if="erreurEnvoi" class="fi-err fi-err--envoi" role="alert">{{ erreurEnvoi }}</p>
|
||||
|
||||
<button type="submit" class="evt-btn fi-envoyer" :disabled="etat === 'envoi'">
|
||||
{{ etat === 'envoi' ? 'Envoi…' : page === 'codev' ? 'Je m\'inscris' : 'Je viens planter' }}
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<p :id="`fi-${page}-donnees`" class="fi-donnees">
|
||||
Ces informations servent seulement à organiser le séjour (repas, couchage, covoiturage).
|
||||
Elles sont effacées le 31 décembre 2026 et ne sont transmises à personne.
|
||||
Pour les modifier ou les effacer avant : <a :href="`mailto:${contact}`">{{ contact }}</a>.
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
ARRIVEES_CODEV, DEPARTS_CODEV, ARRIVEES_FORET, ARRIVEES_FORET_LABELS, VOITURES, VOITURES_LABELS,
|
||||
InscriptionSchema, erreursParChamp, type PageInscription,
|
||||
} from '~/utils/inscriptionEvenement'
|
||||
|
||||
const props = defineProps<{
|
||||
page: PageInscription
|
||||
contact: string
|
||||
/** false : table non configurée, la page renvoie vers l'email. */
|
||||
disponible: boolean
|
||||
complet: boolean
|
||||
}>()
|
||||
const emit = defineEmits<{ inscrit: [] }>()
|
||||
|
||||
const f = reactive({
|
||||
prenom: '', nom: '', email: '', telephone: '',
|
||||
arrivee: (props.page === 'codev' && ARRIVEES_CODEV.length === 1 ? ARRIVEES_CODEV[0] : '') as string,
|
||||
depart: '' as string, reste_plantation: false,
|
||||
nb_personnes: 1, nb_enfants: 0, dort_sur_place: undefined as boolean | undefined,
|
||||
besoin_alimentaire: '', voiture: '' as string, mot: '', site_web: '',
|
||||
})
|
||||
const err = ref<Record<string, string>>({})
|
||||
const etat = ref<'saisie' | 'envoi' | 'ok' | 'complet' | 'indisponible'>('saisie')
|
||||
const erreurEnvoi = ref('')
|
||||
const confirmation = ref<HTMLElement | null>(null)
|
||||
|
||||
const id = (k: string) => `fi-${props.page}-${k}`
|
||||
const aria = (k: string) => ({
|
||||
'aria-invalid': err.value[k] ? 'true' : undefined,
|
||||
'aria-describedby': err.value[k] ? id(`${k}-err`) : undefined,
|
||||
})
|
||||
const ariaGroupe = (k: string) => ({ 'aria-describedby': err.value[k] ? id(`${k}-err`) : undefined })
|
||||
|
||||
const JOURS: Record<string, string> = {
|
||||
'2026-11-21': 'Samedi 21', '2026-11-22': 'Dimanche 22', '2026-11-23': 'Lundi 23',
|
||||
'2026-11-25': 'Mercredi 25', '2026-11-26': 'Jeudi 26', '2026-11-27': 'Vendredi 27',
|
||||
}
|
||||
const jourLong = (d: string) => JOURS[d] ?? d
|
||||
|
||||
function corps() {
|
||||
const commun = {
|
||||
page: props.page, prenom: f.prenom, nom: f.nom, email: f.email, telephone: f.telephone,
|
||||
besoin_alimentaire: f.besoin_alimentaire, voiture: f.voiture, mot: f.mot, site_web: f.site_web,
|
||||
}
|
||||
return props.page === 'codev'
|
||||
? { ...commun, arrivee: f.arrivee, depart: f.depart, reste_plantation: f.reste_plantation }
|
||||
: { ...commun, nb_personnes: f.nb_personnes, nb_enfants: f.nb_enfants, arrivee: f.arrivee, dort_sur_place: f.dort_sur_place }
|
||||
}
|
||||
|
||||
function focusPremiereErreur() {
|
||||
nextTick(() => {
|
||||
const el = document.querySelector<HTMLElement>('.fi [aria-invalid="true"], .fi fieldset[aria-describedby] input')
|
||||
el?.focus()
|
||||
})
|
||||
}
|
||||
|
||||
async function envoyer() {
|
||||
erreurEnvoi.value = ''
|
||||
const body = corps()
|
||||
const parsed = InscriptionSchema.safeParse(body)
|
||||
if (!parsed.success) {
|
||||
err.value = erreursParChamp(parsed.error)
|
||||
focusPremiereErreur()
|
||||
return
|
||||
}
|
||||
err.value = {}
|
||||
etat.value = 'envoi'
|
||||
try {
|
||||
await $fetch('/api/evenements/inscription', { method: 'POST', body })
|
||||
etat.value = 'ok'
|
||||
emit('inscrit')
|
||||
nextTick(() => confirmation.value?.focus())
|
||||
} catch (e: any) {
|
||||
const code = e?.statusCode ?? e?.response?.status
|
||||
etat.value = 'saisie'
|
||||
if (code === 422 && e?.data?.data) {
|
||||
err.value = e.data.data
|
||||
focusPremiereErreur()
|
||||
} else if (code === 409) {
|
||||
etat.value = 'complet'
|
||||
} else if (code === 503) {
|
||||
etat.value = 'indisponible'
|
||||
} else if (code === 429) {
|
||||
erreurEnvoi.value = `Trop d'inscriptions depuis cette connexion aujourd'hui. Écrivez à ${props.contact}.`
|
||||
} else {
|
||||
erreurEnvoi.value = `L'inscription n'est pas passée. Réessayez dans un instant, ou écrivez à ${props.contact}.`
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.fi { margin-top: var(--space-lg); }
|
||||
form { display: flex; flex-direction: column; gap: var(--space-md); }
|
||||
.fi-duo { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
|
||||
@media (min-width: 480px) { .fi-duo { grid-template-columns: 1fr 1fr; } }
|
||||
|
||||
.fi-champ { display: flex; flex-direction: column; gap: var(--space-2xs); margin: 0; padding: 0; border: 0; min-width: 0; }
|
||||
.fi-champ > label, legend { font-weight: var(--fw-semibold); padding: 0; margin-bottom: var(--space-2xs); }
|
||||
.fi-facultatif { font-weight: var(--fw-regular); font-size: var(--fs-sm); color: var(--evt-attenue); }
|
||||
.fi-facultatif::before { content: '· '; }
|
||||
|
||||
input:not([type="radio"]):not([type="checkbox"]), select, textarea {
|
||||
width: 100%;
|
||||
min-height: 48px;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--surface);
|
||||
color: var(--text);
|
||||
font: inherit;
|
||||
font-size: 1rem; /* 16 px : iOS ne zoome pas */
|
||||
}
|
||||
textarea { min-height: 96px; resize: vertical; }
|
||||
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--text); }
|
||||
[aria-invalid="true"] { border-color: var(--danger) !important; }
|
||||
|
||||
.fi-choix { display: grid; gap: var(--space-xs); }
|
||||
.fi-choix--ligne { grid-template-columns: 1fr 1fr; }
|
||||
.fi-option {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-sm);
|
||||
min-height: 48px;
|
||||
padding: 8px 12px;
|
||||
border: 1px solid var(--border-strong);
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--surface);
|
||||
font-weight: var(--fw-regular);
|
||||
cursor: pointer;
|
||||
}
|
||||
.fi-option:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
|
||||
.fi-option:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
|
||||
.fi-option input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--nav-primary-solid); }
|
||||
/* La case plantation : centrée dans sa carte, toute la carte se clique */
|
||||
.fi-option--case { min-height: 56px; padding: 12px 16px; }
|
||||
|
||||
.fi-err { margin: 0; font-size: var(--fs-sm); color: var(--danger); font-weight: var(--fw-semibold); }
|
||||
.fi-err--envoi { padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); }
|
||||
|
||||
.fi-pot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
|
||||
|
||||
.fi-avant { margin: 0; font-weight: var(--fw-semibold); }
|
||||
.fi-envoyer { align-self: flex-start; min-width: 200px; }
|
||||
@media (max-width: 479px) { .fi-envoyer { align-self: stretch; } }
|
||||
|
||||
.fi-message {
|
||||
padding: var(--space-lg);
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.fi-message--ok { border: 2px solid var(--accent); }
|
||||
.fi-message:focus { outline: none; }
|
||||
.fi-message p { margin: 0; }
|
||||
.fi-message__titre { font-size: var(--fs-lg); font-weight: var(--fw-bold); margin-bottom: var(--space-xs) !important; }
|
||||
|
||||
.fi-donnees { margin-top: var(--space-md); font-size: var(--fs-sm); color: var(--evt-attenue); }
|
||||
</style>
|
||||
@@ -0,0 +1,94 @@
|
||||
<template>
|
||||
<figure class="evt-figure frise">
|
||||
<div class="frise__toile">
|
||||
<svg viewBox="0 0 540 132" role="img" aria-labelledby="frise-titre frise-desc">
|
||||
<title id="frise-titre">La semaine, jour par jour</title>
|
||||
<desc id="frise-desc">
|
||||
Samedi 21 et dimanche 22 : on atterrit ensemble. Du lundi 23 au vendredi 27 : la semaine d'entraide.
|
||||
Samedi 28 et dimanche 29 : la plantation de la forêt.
|
||||
</desc>
|
||||
<g v-for="(j, i) in jours" :key="j.iso" :transform="`translate(${i * COL} 0)`">
|
||||
<text :x="COL / 2" y="20" class="frise__jour">{{ j.jour }}</text>
|
||||
<text :x="COL / 2" y="46" class="frise__num">{{ j.num }}</text>
|
||||
</g>
|
||||
<!-- 21-22 : tout le monde arrive, on atterrit ensemble -->
|
||||
<rect x="3" y="60" :width="2 * COL - 6" height="64" rx="8" class="frise__arrivee" />
|
||||
<text :x="COL" y="88" class="frise__label frise__label--ligne">on atterrit</text>
|
||||
<text :x="COL" y="110" class="frise__label frise__label--ligne">ensemble</text>
|
||||
<!-- 23-27 : codev -->
|
||||
<rect :x="2 * COL + 3" y="60" :width="5 * COL - 6" height="64" rx="8" class="frise__codev" />
|
||||
<text :x="4.5 * COL" y="99" class="frise__label frise__label--codev">la semaine d'entraide</text>
|
||||
<!-- 28-29 : plantation, cliquable (le lien est posé dessus, en HTML) -->
|
||||
<g class="frise__foret-g">
|
||||
<rect :x="7 * COL + 3" y="60" :width="2 * COL - 6" height="64" rx="8" class="frise__foret" />
|
||||
<text :x="8 * COL" y="96" class="frise__label frise__label--foret">plantation</text>
|
||||
<line :x1="8 * COL - 44" :x2="8 * COL + 44" y1="104" y2="104" class="frise__souligne" />
|
||||
</g>
|
||||
</svg>
|
||||
<NuxtLink :to="lienForet" class="frise__clic" aria-label="La page forêt" />
|
||||
</div>
|
||||
<figcaption class="frise__legende">
|
||||
<span>Arrivée le samedi 21 : on atterrit ensemble. Les 28 et 29, on plante une forêt.</span>
|
||||
<NuxtLink :to="lienForet" class="evt-lien-foret"><EvenementsIcone nom="arbre" />La page forêt</NuxtLink>
|
||||
</figcaption>
|
||||
</figure>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { jourCourt } from '~/utils/evenements'
|
||||
|
||||
defineProps<{ lienForet: string }>()
|
||||
|
||||
const COL = 60
|
||||
const jours = Array.from({ length: 9 }, (_, i) => {
|
||||
const iso = `2026-11-${21 + i}`
|
||||
return { iso, ...jourCourt(iso) }
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.frise svg { border-radius: 0; overflow: visible; }
|
||||
.frise__toile { position: relative; }
|
||||
.frise__jour { font-size: 19px; text-anchor: middle; fill: var(--evt-attenue); }
|
||||
.frise__num { font-family: var(--evt-titre); font-size: 26px; font-weight: 600; text-anchor: middle; fill: var(--text); }
|
||||
.frise__arrivee { fill: color-mix(in srgb, var(--evt-nuit) 16%, var(--surface)); }
|
||||
.frise__codev { fill: var(--evt-nuit); }
|
||||
.frise__foret { fill: var(--accent); }
|
||||
.frise__label { font-size: 21px; font-weight: 700; text-anchor: middle; }
|
||||
.frise__label--ligne { font-size: 18px; font-weight: 600; fill: var(--text); }
|
||||
.frise__label--codev { fill: var(--evt-sur-nuit); }
|
||||
.frise__label--foret { font-size: 19px; fill: var(--on-accent); }
|
||||
.frise__souligne { stroke: var(--on-accent); stroke-width: 1.5; }
|
||||
|
||||
/* Le bloc plantation se lit comme un bouton : ombre au repos, levé au survol, anneau au focus.
|
||||
Le lien HTML couvre exactement le bloc (positions en % du viewBox 540 × 132). */
|
||||
.frise__foret-g {
|
||||
filter: drop-shadow(0 1px 1.5px rgb(26 34 56 / 0.25));
|
||||
transition: transform var(--dur-fast) var(--ease-out), filter var(--dur-fast) var(--ease-out);
|
||||
}
|
||||
.frise__clic {
|
||||
position: absolute;
|
||||
left: calc(423 / 540 * 100%);
|
||||
top: calc(60 / 132 * 100%);
|
||||
width: calc(114 / 540 * 100%);
|
||||
height: calc(64 / 132 * 100%);
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.frise__toile:has(.frise__clic:hover) .frise__foret-g,
|
||||
.frise__toile:has(.frise__clic:focus-visible) .frise__foret-g {
|
||||
transform: translateY(-3px);
|
||||
filter: drop-shadow(0 4px 6px rgb(26 34 56 / 0.28)) brightness(1.04);
|
||||
}
|
||||
.frise__clic:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
|
||||
|
||||
.frise__legende {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: var(--space-xs) var(--space-md);
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.frise__foret-g { transition: none; }
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,71 @@
|
||||
<template>
|
||||
<ol class="gestes" role="list">
|
||||
<li class="geste">
|
||||
<svg viewBox="0 0 200 150" aria-hidden="true">
|
||||
<path class="g-sol" d="M0 96 H64 Q100 132 136 96 H200 V150 H0 Z" />
|
||||
<path class="g-trou" d="M64 96 Q100 132 136 96" />
|
||||
<line class="g-tronc" x1="100" y1="112" x2="100" y2="34" />
|
||||
<ellipse class="g-houppe" cx="100" cy="30" rx="30" ry="20" />
|
||||
<path class="g-motte" d="M86 112 q14 14 28 0 q-14 -8 -28 0 Z" />
|
||||
<path class="g-fleche" d="M150 30 V78 M142 70 L150 80 L158 70" />
|
||||
</svg>
|
||||
<p><span class="geste__num">1</span>Les trous sont déjà faits : on met l'arbre principal en terre.</p>
|
||||
</li>
|
||||
<li class="geste">
|
||||
<svg viewBox="0 0 200 150" aria-hidden="true">
|
||||
<path class="g-sol" d="M0 92 H200 V150 H0 Z" />
|
||||
<line class="g-repere" x1="0" y1="92" x2="200" y2="92" />
|
||||
<line class="g-bouture" x1="78" y1="132" x2="82" y2="22" />
|
||||
<circle class="g-oeil" cx="81" cy="44" r="3.5" />
|
||||
<circle class="g-oeil" cx="79.6" cy="108" r="3.5" /><circle class="g-oeil" cx="79" cy="124" r="3.5" />
|
||||
<path class="g-cote" d="M122 92 V132 M116 92 H128 M116 132 H128" />
|
||||
<text x="134" y="117" class="g-texte">20 cm</text>
|
||||
</svg>
|
||||
<p><span class="geste__num">2</span>Les boutures autour : au moins deux yeux sous terre, 20 cm.</p>
|
||||
</li>
|
||||
<li class="geste">
|
||||
<svg viewBox="0 0 200 150" aria-hidden="true">
|
||||
<path class="g-sol" d="M0 112 H200 V150 H0 Z" />
|
||||
<path class="g-paille" d="M30 112 Q100 82 170 112 Z" />
|
||||
<path class="g-brins" d="M50 104 l14 -4 M78 96 l16 -2 M110 95 l14 3 M136 100 l14 5" />
|
||||
<line class="g-tronc" x1="100" y1="100" x2="100" y2="34" />
|
||||
<ellipse class="g-houppe" cx="100" cy="30" rx="26" ry="17" />
|
||||
<path class="g-grillage" d="M82 104 V44 M118 104 V44 M82 44 H118 M82 64 H118 M82 84 H118 M91 44 V104 M100 44 V58 M109 44 V104" />
|
||||
</svg>
|
||||
<p><span class="geste__num">3</span>La paille, et la protection contre les chevreuils.</p>
|
||||
</li>
|
||||
</ol>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.gestes { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
|
||||
@media (min-width: 560px) { .gestes { grid-template-columns: repeat(3, 1fr); } }
|
||||
.geste svg { display: block; width: 100%; max-width: 260px; height: auto; margin: 0 auto var(--space-xs); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
|
||||
.geste p { margin: 0; font-size: var(--fs-sm); }
|
||||
.geste__num {
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
margin-right: var(--space-xs);
|
||||
border-radius: var(--radius-full);
|
||||
background: var(--accent);
|
||||
color: var(--on-accent);
|
||||
font-weight: var(--fw-bold);
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
.g-sol { fill: var(--bg-alt); }
|
||||
.g-trou { fill: none; stroke: var(--text); stroke-width: 2; stroke-dasharray: 4 4; }
|
||||
.g-tronc { stroke: var(--text); stroke-width: 4; stroke-linecap: round; }
|
||||
.g-houppe { fill: color-mix(in srgb, var(--nav-primary-solid) 20%, var(--surface)); stroke: var(--text); stroke-width: 2; }
|
||||
.g-motte { fill: color-mix(in srgb, var(--text) 45%, var(--bg-alt)); }
|
||||
.g-fleche { fill: none; stroke: var(--text); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
|
||||
.g-repere { stroke: var(--text); stroke-width: 2; }
|
||||
.g-bouture { stroke: var(--text); stroke-width: 5; stroke-linecap: round; }
|
||||
.g-oeil { fill: var(--accent); stroke: var(--text); stroke-width: 1.2; }
|
||||
.g-cote { fill: none; stroke: var(--text); stroke-width: 1.5; }
|
||||
.g-texte { font-size: 15px; font-weight: 700; fill: var(--text); }
|
||||
.g-paille { fill: var(--accent); opacity: 0.85; }
|
||||
.g-brins { stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; opacity: 0.6; }
|
||||
.g-grillage { fill: none; stroke: var(--text); stroke-width: 1.3; opacity: 0.75; }
|
||||
</style>
|
||||
@@ -0,0 +1,59 @@
|
||||
<template>
|
||||
<!-- Pictogrammes des pages d'événement : grille 24, trait 1,75, currentColor, décoratifs -->
|
||||
<svg class="evt-icone" viewBox="0 0 24 24" width="24" height="24" aria-hidden="true" focusable="false"
|
||||
fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
|
||||
<template v-if="nom === 'places'">
|
||||
<circle cx="9" cy="8" r="3" />
|
||||
<path d="M3.5 19.5c.6-3.3 2.8-5.2 5.5-5.2s4.9 1.9 5.5 5.2" />
|
||||
<circle cx="16.5" cy="9" r="2.4" />
|
||||
<path d="M16 14.3c2.5 0 4 1.7 4.5 4.6" />
|
||||
</template>
|
||||
<template v-else-if="nom === 'argent'">
|
||||
<circle cx="12" cy="12" r="8.5" />
|
||||
<path d="M15 8.9a3.9 3.9 0 1 0 0 6.2" />
|
||||
<path d="M7.6 11h5M7.6 13.2h5" />
|
||||
</template>
|
||||
<template v-else-if="nom === 'maison'">
|
||||
<path d="M3.5 11.5 12 4.5l8.5 7" />
|
||||
<path d="M6 9.8v9.7h12V9.8" />
|
||||
<path d="M10 19.5v-5h4v5" />
|
||||
</template>
|
||||
<template v-else-if="nom === 'train'">
|
||||
<rect x="6" y="3.5" width="12" height="13" rx="3" />
|
||||
<path d="M6 10h12" />
|
||||
<path d="M8.5 16.5 6.5 20.5M15.5 16.5l2 4M7.6 18.5h8.8" />
|
||||
<circle cx="9" cy="13.3" r=".6" fill="currentColor" />
|
||||
<circle cx="15" cy="13.3" r=".6" fill="currentColor" />
|
||||
</template>
|
||||
<template v-else-if="nom === 'lit'">
|
||||
<path d="M3 5.5v14M3 14.5h18v5" />
|
||||
<path d="M21 14.5v-2a2.5 2.5 0 0 0-2.5-2.5H10.5v4.5" />
|
||||
<circle cx="6.8" cy="11.3" r="1.8" />
|
||||
</template>
|
||||
<template v-else-if="nom === 'sac'">
|
||||
<rect x="5.5" y="7" width="13" height="13.5" rx="3" />
|
||||
<path d="M9.5 7V5.5a2.5 2.5 0 0 1 5 0V7" />
|
||||
<path d="M9 14h6v3.5H9z" />
|
||||
</template>
|
||||
<template v-else-if="nom === 'bol'">
|
||||
<path d="M4 11h16c0 4.4-3.6 8-8 8s-8-3.6-8-8z" />
|
||||
<path d="M9.5 3.8c-.9 1-.9 2.2 0 3.2M14.5 3.8c-.9 1-.9 2.2 0 3.2" />
|
||||
</template>
|
||||
<template v-else-if="nom === 'calendrier'">
|
||||
<rect x="4" y="5.5" width="16" height="14.5" rx="2.5" />
|
||||
<path d="M4 10h16M8.5 3.5v4M15.5 3.5v4" />
|
||||
</template>
|
||||
<template v-else-if="nom === 'lieu'">
|
||||
<path d="M12 21s-6.5-5.6-6.5-11a6.5 6.5 0 0 1 13 0c0 5.4-6.5 11-6.5 11z" />
|
||||
<circle cx="12" cy="10" r="2.4" />
|
||||
</template>
|
||||
<template v-else-if="nom === 'arbre'">
|
||||
<path d="M12 3.5a5 5 0 0 0-4.7 6.6A3.9 3.9 0 0 0 9 17.5h6a3.9 3.9 0 0 0 1.7-7.4A5 5 0 0 0 12 3.5z" />
|
||||
<path d="M12 11.5v9M12 15l2.4-2" />
|
||||
</template>
|
||||
</svg>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
defineProps<{ nom: 'places' | 'argent' | 'maison' | 'train' | 'lit' | 'sac' | 'bol' | 'calendrier' | 'lieu' | 'arbre' }>()
|
||||
</script>
|
||||
@@ -0,0 +1,10 @@
|
||||
<template>
|
||||
<!-- Le lieu-dit, cliquable vers Google Maps (au téléphone, l'URL maps/search ouvre l'application) -->
|
||||
<a :href="evenement.mapsUrl" target="_blank" rel="noopener" class="evt-lieu-lien">
|
||||
<slot>{{ evenement.lieu }}</slot><span class="evt-sr"> (Google Maps, nouvel onglet)</span>
|
||||
</a>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { evenement } from '~/data/evenements/ruetz-2026'
|
||||
</script>
|
||||
@@ -0,0 +1,340 @@
|
||||
<template>
|
||||
<div class="evt" :class="ton ? `evt--${ton}` : null">
|
||||
<!-- Le fond : des courbes de niveau, en écho aux lignes du plan de Sacha qui suivent le relief.
|
||||
Seulement derrière l'en-tête, estompées avant le texte courant. -->
|
||||
<div class="evt-fond" aria-hidden="true" />
|
||||
<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 }
|
||||
/** 'foret' : la sauge remplace l'ocre (pictos, récap, courbes). */
|
||||
ton?: 'foret'
|
||||
}>()
|
||||
|
||||
// Une seule police ajoutée, pour les titres : précharger évite le saut de l'en-tête (font-display: swap).
|
||||
useHead({
|
||||
link: [{ rel: 'preload', href: '/medias/evenements/polices/fraunces-600-latin.woff2', as: 'font', type: 'font/woff2', crossorigin: '' }],
|
||||
})
|
||||
</script>
|
||||
|
||||
<!--
|
||||
Gabarit des pages d'événement (lot Y, passe design B25) : colonne de lecture de 640 px.
|
||||
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. Du deck e-codev (frontend-slides) :
|
||||
Fraunces pour les titres, l'ocre et la sauge.
|
||||
-->
|
||||
<style>
|
||||
/* Fraunces (Undercase Type, SIL OFL 1.1), graisse 600, axe optique 9-144, sous-ensemble latin : 35 Ko */
|
||||
@font-face {
|
||||
font-family: 'Fraunces';
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-display: swap;
|
||||
src: url('/medias/evenements/polices/fraunces-600-latin.woff2') format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
|
||||
.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 : ocre = ce qui sort, les petits libellés ; sauge = ce qui revient, le vivant */
|
||||
--evt-ocre: #9a5f12;
|
||||
--evt-sauge: #3f6b4e;
|
||||
--evt-teinte: var(--evt-ocre);
|
||||
--evt-papier: color-mix(in srgb, var(--surface) 60%, var(--bg));
|
||||
--evt-courbes: color-mix(in srgb, var(--text) 9%, transparent);
|
||||
--evt-titre: 'Fraunces', Georgia, 'Times New Roman', serif;
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
min-height: 100%;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family: var(--font-body);
|
||||
line-height: 1.6;
|
||||
}
|
||||
.evt--foret { --evt-teinte: var(--evt-sauge); --evt-courbes: color-mix(in srgb, var(--evt-sauge) 15%, transparent); }
|
||||
.dark .evt { --evt-ocre: #e3a95c; --evt-sauge: #8fc09e; }
|
||||
|
||||
.evt-fond {
|
||||
position: absolute;
|
||||
inset: 0 0 auto;
|
||||
height: 480px;
|
||||
z-index: -1;
|
||||
pointer-events: none;
|
||||
background: var(--evt-courbes);
|
||||
-webkit-mask: url('/medias/evenements/courbes-niveau.svg') top center / 1600px 480px repeat-x;
|
||||
mask: url('/medias/evenements/courbes-niveau.svg') top center / 1600px 480px repeat-x;
|
||||
}
|
||||
/* Peint le fond par-dessus les courbes, de plus en plus : elles s'estompent avant le texte courant */
|
||||
.evt-fond::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(to bottom, transparent 30%, var(--bg) 92%);
|
||||
}
|
||||
|
||||
.evt__col {
|
||||
max-width: 640px;
|
||||
margin: 0 auto;
|
||||
padding: var(--space-md) var(--space-md) var(--space-3xl);
|
||||
}
|
||||
@media (min-width: 768px) {
|
||||
.evt__col { padding: var(--space-xl) 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); text-decoration-thickness: 2px; }
|
||||
/* Anneau d'encre : le safran du DS ne fait que 1,7:1 sur la crème */
|
||||
.evt :focus-visible { outline: 2.5px solid var(--text); outline-offset: 3px; border-radius: 3px; }
|
||||
|
||||
.evt-retour { margin-bottom: var(--space-sm); }
|
||||
.evt-retour a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: 44px;
|
||||
font-size: 0.8rem;
|
||||
font-weight: var(--fw-bold);
|
||||
letter-spacing: 0.1em;
|
||||
text-transform: uppercase;
|
||||
color: var(--evt-ocre);
|
||||
text-decoration: none;
|
||||
}
|
||||
.evt-retour a:hover { color: var(--text); text-decoration: underline; }
|
||||
|
||||
/* ── Titres : Fraunces, le reste en police système ── */
|
||||
.evt-h1, .evt-h2, .evt-h3 { font-family: var(--evt-titre); font-weight: 600; font-optical-sizing: auto; }
|
||||
.evt-tete { margin: var(--space-md) 0 var(--space-xl); }
|
||||
.evt-h1 {
|
||||
font-size: clamp(2rem, 7.4vw, 3.1rem);
|
||||
line-height: 1.06;
|
||||
letter-spacing: -0.02em;
|
||||
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-teinte); }
|
||||
.evt-recap .evt-lieu-lien { padding: 2px 0; margin: -2px 0; }
|
||||
.evt-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: var(--space-md) var(--space-lg);
|
||||
margin-top: var(--space-lg);
|
||||
}
|
||||
|
||||
/* ── Sections ── */
|
||||
.evt-section { margin-top: clamp(3rem, 10vw, 4.5rem); }
|
||||
.evt-h2 {
|
||||
font-size: clamp(1.55rem, 5.4vw, 2rem);
|
||||
line-height: 1.15;
|
||||
letter-spacing: -0.012em;
|
||||
margin: 0 0 var(--space-md);
|
||||
text-wrap: balance;
|
||||
}
|
||||
.evt-h3 { font-size: 1.15rem; line-height: 1.25; 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;
|
||||
box-shadow: 0 1px 0 rgb(26 34 56 / 0.18), 0 2px 6px rgb(26 34 56 / 0.08);
|
||||
transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
|
||||
}
|
||||
.evt a.evt-btn { color: var(--on-accent); text-decoration: none; }
|
||||
.evt-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 0 rgb(26 34 56 / 0.18), 0 6px 14px rgb(26 34 56 / 0.12); }
|
||||
.evt-btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
|
||||
|
||||
/* 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) : papier chaud, picto dans un cadre teinté ── */
|
||||
.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--large { grid-column: 1 / -1; }
|
||||
}
|
||||
.evt-carte {
|
||||
padding: var(--space-md);
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--evt-papier);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.evt-carte p:last-child { margin-bottom: 0; }
|
||||
.evt-carte__tete { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); }
|
||||
.evt-carte__tete .evt-h3 { margin: 0; }
|
||||
.evt-picto {
|
||||
flex: none;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 12px;
|
||||
background: color-mix(in srgb, var(--evt-teinte) 13%, var(--surface));
|
||||
color: var(--evt-teinte);
|
||||
}
|
||||
|
||||
/* ── Figures et photos (cadrées, légendées, comme dans le deck) ── */
|
||||
.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-photo img { border: 1px solid var(--border); }
|
||||
.evt-photo figcaption { font-style: italic; }
|
||||
.evt-pleine { margin-left: calc(-1 * var(--space-md)); margin-right: calc(-1 * var(--space-md)); }
|
||||
.evt-pleine img { border-radius: 0; border-left: 0; border-right: 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); border: 1px solid var(--border); }
|
||||
.evt-pleine figcaption { padding: 0; }
|
||||
}
|
||||
|
||||
/* ── Dépliables ── */
|
||||
.evt-details {
|
||||
margin-top: var(--space-md);
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--evt-papier);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.evt-details > summary {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-sm);
|
||||
min-height: 56px;
|
||||
padding: var(--space-sm) var(--space-md);
|
||||
font-family: var(--evt-titre);
|
||||
font-weight: 600;
|
||||
font-size: 1.12rem;
|
||||
cursor: pointer;
|
||||
list-style: none;
|
||||
}
|
||||
.evt-details > summary::-webkit-details-marker { display: none; }
|
||||
.evt-details > summary::after {
|
||||
content: '+';
|
||||
flex: none;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
border-radius: var(--radius-full);
|
||||
background: color-mix(in srgb, var(--evt-teinte) 13%, var(--surface));
|
||||
color: var(--evt-teinte);
|
||||
display: grid;
|
||||
place-items: center;
|
||||
font-family: var(--font-body);
|
||||
font-size: 1.15rem;
|
||||
line-height: 1;
|
||||
}
|
||||
.evt-details[open] > summary::after { content: '−'; }
|
||||
.evt-details > summary:hover::after { background: color-mix(in srgb, var(--evt-teinte) 24%, var(--surface)); }
|
||||
.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); }
|
||||
/* Le déroulé : des points safran reliés par un fil (plus de bordure épaisse) */
|
||||
.evt-deroule { margin: 0; padding: 0; list-style: none; }
|
||||
.evt-deroule li { position: relative; padding: 0 0 var(--space-lg) var(--space-xl); }
|
||||
.evt-deroule li::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 3px;
|
||||
top: 0.4em;
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
border-radius: var(--radius-full);
|
||||
background: var(--accent);
|
||||
box-shadow: 0 0 0 3px var(--bg);
|
||||
}
|
||||
.evt-deroule li::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 9px;
|
||||
top: 1.5em;
|
||||
bottom: 0.1em;
|
||||
width: 1px;
|
||||
background: var(--border-strong);
|
||||
}
|
||||
.evt-deroule li:last-child { padding-bottom: 0; }
|
||||
.evt-deroule li:last-child::after { display: none; }
|
||||
.evt-deroule strong { display: block; font-family: var(--evt-titre); font-weight: 600; font-size: 1.1rem; margin-bottom: 2px; }
|
||||
|
||||
/* ── 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); }
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.evt-btn, .evt-btn:hover { transition: none; transform: none; }
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,10 @@
|
||||
<template>
|
||||
<footer class="evt-pied">
|
||||
<slot />
|
||||
<p>Contact : <a :href="`mailto:${contact}`">{{ contact }}</a></p>
|
||||
</footer>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
defineProps<{ contact: string }>()
|
||||
</script>
|
||||
@@ -0,0 +1,139 @@
|
||||
<template>
|
||||
<!-- « Le sens de la semaine » : les trois échelles du deck e-codev du 23/10 (slides 07 à 09),
|
||||
redessinées pour la colonne de 640 px et le téléphone. Textes du deck, badges du site
|
||||
(components/EchelleTete.vue) pour qu'on reconnaisse les mêmes S / M / XL sur aep. -->
|
||||
<details class="evt-details sens">
|
||||
<summary>Le sens de la semaine</summary>
|
||||
<div class="evt-details__corps">
|
||||
<figure class="sens__fig">
|
||||
<svg viewBox="0 0 360 360" role="img" aria-labelledby="sens-titre sens-desc">
|
||||
<title id="sens-titre">Trois échelles, imbriquées</title>
|
||||
<desc id="sens-desc">
|
||||
Trois anneaux imbriqués : S, soi ; M, la communauté ; XL, la société. Entre S et M, ce qui sort :
|
||||
sortir de l'individualité ; ce qui revient : le groupe remet debout. Entre M et XL, ce qui sort :
|
||||
des centres qui s'emboîtent ; ce qui revient : des valeurs qui soutiennent.
|
||||
</desc>
|
||||
<circle cx="180" cy="180" r="176" class="sens__anneau sens__anneau--xl" />
|
||||
<circle cx="180" cy="180" r="120" class="sens__anneau sens__anneau--m" />
|
||||
<circle cx="180" cy="180" r="64" class="sens__anneau sens__anneau--s" />
|
||||
|
||||
<g v-for="b in BADGES" :key="b.id">
|
||||
<rect :x="180 - b.l / 2" :y="b.y" :width="b.l" height="21" rx="4" class="sens__badge-fond" />
|
||||
<text x="180" :y="b.y + 15" class="sens__badge-texte">{{ b.id }}</text>
|
||||
<text x="180" :y="b.yNom" class="sens__nom">{{ b.nom }}</text>
|
||||
</g>
|
||||
|
||||
<!-- Ce qui circule, sur le bas des anneaux : ↓ vers l'extérieur, ↑ vers le centre -->
|
||||
<path v-for="f in FLUX" :id="`sens-arc-${f.r}`" :key="`p${f.r}`" :d="arc(f.r)" fill="none" />
|
||||
<text v-for="f in FLUX" :key="`t${f.r}`" class="sens__flux" :class="`sens__flux--${f.sens}`">
|
||||
<textPath :href="`#sens-arc-${f.r}`" startOffset="50%">{{ f.sens === 'sort' ? '↓' : '↑' }} {{ f.texte }}</textPath>
|
||||
</text>
|
||||
</svg>
|
||||
<figcaption class="sens__legende">
|
||||
<span class="sens__flux--sort">↓ ce qui sort</span>
|
||||
<span class="sens__flux--revient">↑ ce qui revient</span>
|
||||
</figcaption>
|
||||
</figure>
|
||||
|
||||
<dl class="sens__echelles">
|
||||
<div><dt><span class="sens__badge">S</span>soi</dt><dd>sortir la tête de l'eau, s'émanciper de ce qu'on nous a appris</dd></div>
|
||||
<div><dt><span class="sens__badge">M</span>la communauté</dt><dd>celle qui manque pour se sentir épaulé, appartenir</dd></div>
|
||||
<div><dt><span class="sens__badge">XL</span>la société</dt><dd>un mode de vie soutenable pour le vivant dans son ensemble</dd></div>
|
||||
</dl>
|
||||
<p class="sens__boucle">Pas un escalier, une boucle : ça circule dans les deux sens, et on y repasse toute sa vie.</p>
|
||||
|
||||
<div class="sens__zoom">
|
||||
<h3 class="evt-h3"><span class="sens__badge">S</span>Partir de soi : sortir la tête de l'eau</h3>
|
||||
<ul class="sens__mots" role="list">
|
||||
<li v-for="m in MOTS_S" :key="m[0]" :class="`sens__mot--${m[1]}`">{{ m[0] }}</li>
|
||||
</ul>
|
||||
<p>
|
||||
C'est le gros du travail, et c'est celui qu'on fait seul par défaut : avoir assez d'air dans la semaine
|
||||
pour se poser la question du sens. Matériel et mutualisé : des ressources, des méthodes, des pairs qui
|
||||
vivent la même chose.
|
||||
</p>
|
||||
</div>
|
||||
<div class="sens__zoom">
|
||||
<h3 class="evt-h3"><span class="sens__badge">M</span>La communauté</h3>
|
||||
<ul class="sens__mots" role="list">
|
||||
<li v-for="m in MOTS_M" :key="m[0]" :class="`sens__mot--${m[1]}`">{{ m[0] }}</li>
|
||||
</ul>
|
||||
<p>
|
||||
Le chemin a des hauts et des bas. Trop gros pour y arriver seul : c'est le groupe qui remet un individu
|
||||
debout. L'affinité fait tenir, la confrontation fait avancer.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
/** Badges en haut de chaque anneau (y du badge, y du nom, largeur du badge). */
|
||||
const BADGES = [
|
||||
{ id: 'XL', nom: 'la société', y: 16, yNom: 54, l: 32 },
|
||||
{ id: 'M', nom: 'la communauté', y: 72, yNom: 109, l: 24 },
|
||||
{ id: 'S', nom: 'soi', y: 156, yNom: 196, l: 24 },
|
||||
]
|
||||
/** Deux flux par frontière, dans l'anneau extérieur : ce qui revient près du bord intérieur, ce qui sort au-delà. */
|
||||
const FLUX = [
|
||||
{ r: 84, sens: 'revient', texte: 'le groupe remet debout' },
|
||||
{ r: 108, sens: 'sort', texte: 'sortir de l\'individualité' },
|
||||
{ r: 136, sens: 'revient', texte: 'des valeurs qui soutiennent' },
|
||||
{ r: 162, sens: 'sort', texte: 'des centres qui s\'emboîtent' },
|
||||
]
|
||||
/** Demi-cercle du bas, de gauche à droite : le texte s'y lit droit. */
|
||||
const arc = (r: number) => `M ${180 - r} 180 A ${r} ${r} 0 0 0 ${180 + r} 180`
|
||||
|
||||
/** Nuages des slides 08 et 09 : 1 = mot fort, 3 = mot discret. */
|
||||
const MOTS_S: [string, number][] = [
|
||||
['gagner sa vie', 1], ['vendre, sans se trahir', 2], ['son temps', 2], ['quête de sens', 1],
|
||||
['santé mentale', 3], ['mener ses projets', 2], ['où habiter, avec qui', 3], ['les compétences psychosociales', 3],
|
||||
]
|
||||
const MOTS_M: [string, number][] = [
|
||||
['entraide', 1], ['être vu, soutenu', 2], ['appartenance', 1], ['mutualisation', 2],
|
||||
['traverser les creux', 3], ['accomplissement', 2], ['le codev', 3],
|
||||
]
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.sens__fig { margin: 0 calc(-1 * var(--space-sm)) var(--space-md); }
|
||||
.sens__fig svg { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; overflow: visible; }
|
||||
.sens__anneau { stroke-width: 2; }
|
||||
.sens__anneau--xl { fill: color-mix(in srgb, var(--accent) 7%, var(--surface)); stroke: var(--evt-ocre); }
|
||||
.sens__anneau--m { fill: color-mix(in srgb, var(--accent) 14%, var(--surface)); stroke: color-mix(in srgb, var(--evt-ocre) 70%, var(--accent)); }
|
||||
.sens__anneau--s { fill: color-mix(in srgb, var(--evt-sauge) 16%, var(--surface)); stroke: var(--evt-sauge); }
|
||||
.sens__badge-fond { fill: var(--accent); }
|
||||
.sens__badge-texte { font-size: 13px; font-weight: 700; text-anchor: middle; fill: var(--on-accent); letter-spacing: 0.04em; }
|
||||
.sens__nom { font-family: var(--evt-titre); font-size: 16px; font-weight: 600; text-anchor: middle; fill: var(--text); }
|
||||
.sens__flux { font-size: 14px; font-style: italic; font-weight: 600; text-anchor: middle; }
|
||||
.sens__flux--sort { fill: var(--evt-ocre); color: var(--evt-ocre); }
|
||||
.sens__flux--revient { fill: var(--evt-sauge); color: var(--evt-sauge); }
|
||||
.sens__legende { display: flex; justify-content: center; gap: var(--space-lg); margin-top: var(--space-xs); font-size: var(--fs-sm); font-style: italic; font-weight: var(--fw-semibold); }
|
||||
|
||||
.sens__badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 2rem;
|
||||
margin-right: var(--space-sm);
|
||||
padding: 0.1rem 0.5rem;
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--accent);
|
||||
color: var(--on-accent);
|
||||
font-weight: var(--fw-bold);
|
||||
font-size: var(--fs-sm);
|
||||
letter-spacing: 0.04em;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.sens__echelles { margin: 0 0 var(--space-md); display: grid; gap: var(--space-sm); }
|
||||
.sens__echelles dt { font-weight: var(--fw-bold); }
|
||||
.sens__echelles dd { margin: 2px 0 0; color: var(--evt-attenue); }
|
||||
.sens__boucle { font-family: var(--evt-titre); font-weight: 600; font-size: 1.3rem; line-height: 1.3; text-wrap: balance; }
|
||||
.sens__zoom { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--border); }
|
||||
.sens__zoom .evt-h3 { display: flex; align-items: baseline; font-size: var(--fs-lg); line-height: 1.3; }
|
||||
.sens__mots { list-style: none; margin: var(--space-sm) 0 var(--space-md); padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2xs) var(--space-md); }
|
||||
.sens__mot--1 { font-size: var(--fs-lg); font-weight: var(--fw-bold); }
|
||||
.sens__mot--1:first-child { color: var(--evt-ocre); }
|
||||
.sens__mot--2 { font-size: var(--fs-base); font-weight: var(--fw-semibold); }
|
||||
.sens__mot--3 { font-size: var(--fs-sm); color: var(--evt-attenue); }
|
||||
</style>
|
||||
@@ -0,0 +1,71 @@
|
||||
<template>
|
||||
<figure class="evt-figure strates">
|
||||
<svg viewBox="0 0 560 300" role="img" aria-labelledby="strates-titre strates-desc">
|
||||
<title id="strates-titre">Les étages de la forêt</title>
|
||||
<desc id="strates-desc">
|
||||
De haut en bas : la strate haute, les grands arbres ; la strate moyenne, les fruitiers ;
|
||||
la strate basse, les petits fruits et les boutures ; au sol, la consoude.
|
||||
</desc>
|
||||
<!-- repères d'étage -->
|
||||
<g class="strates__repere">
|
||||
<line x1="0" x2="560" y1="58" y2="58" />
|
||||
<line x1="0" x2="560" y1="138" y2="138" />
|
||||
<line x1="0" x2="560" y1="208" y2="208" />
|
||||
</g>
|
||||
<g class="strates__etiquette">
|
||||
<text x="4" y="50">haute</text>
|
||||
<text x="4" y="130">moyenne</text>
|
||||
<text x="4" y="200">basse</text>
|
||||
<text x="4" y="262">herbacée</text>
|
||||
</g>
|
||||
|
||||
<!-- sol -->
|
||||
<path class="strates__sol" d="M0 268 Q140 262 280 268 T560 266 V300 H0 Z" />
|
||||
|
||||
<!-- haute : grand arbre -->
|
||||
<g class="strates__arbre strates__arbre--haut">
|
||||
<line x1="440" y1="268" x2="440" y2="96" />
|
||||
<line x1="440" y1="150" x2="410" y2="118" /><line x1="440" y1="132" x2="472" y2="104" />
|
||||
<ellipse cx="440" cy="62" rx="76" ry="48" />
|
||||
</g>
|
||||
<!-- moyenne : fruitier -->
|
||||
<g class="strates__arbre strates__arbre--moyen">
|
||||
<line x1="300" y1="268" x2="300" y2="166" />
|
||||
<ellipse cx="300" cy="142" rx="54" ry="34" />
|
||||
<circle class="strates__fruit" cx="282" cy="150" r="5" /><circle class="strates__fruit" cx="318" cy="138" r="5" /><circle class="strates__fruit" cx="304" cy="158" r="5" />
|
||||
</g>
|
||||
<!-- basse : arbuste + bouture -->
|
||||
<g class="strates__arbre strates__arbre--bas">
|
||||
<line x1="190" y1="268" x2="190" y2="226" />
|
||||
<ellipse cx="190" cy="214" rx="36" ry="22" />
|
||||
<circle class="strates__fruit" cx="178" cy="220" r="4" /><circle class="strates__fruit" cx="198" cy="210" r="4" />
|
||||
<line class="strates__bouture" x1="244" y1="268" x2="248" y2="216" />
|
||||
<path class="strates__feuille" d="M248 222 q10 -6 14 -16 q-12 2 -14 16 Z M247 234 q-10 -4 -14 -14 q12 1 14 14 Z" />
|
||||
</g>
|
||||
<!-- herbacée : consoude -->
|
||||
<g class="strates__herbe" transform="translate(40 0)">
|
||||
<path d="M110 268 q-14 -18 -20 -34 q14 8 20 34 Z" />
|
||||
<path d="M112 268 q2 -24 10 -40 q4 18 -10 40 Z" />
|
||||
<path d="M116 268 q14 -14 28 -22 q-6 16 -28 22 Z" />
|
||||
</g>
|
||||
<!-- paille au sol -->
|
||||
<path class="strates__paille" d="M60 268 l18 -4 M150 267 l22 -3 M340 268 l20 -4 M500 267 l24 -3" />
|
||||
</svg>
|
||||
</figure>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.strates svg { background: var(--surface); border: 1px solid var(--border); }
|
||||
.strates__repere line { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 4 6; }
|
||||
.strates__etiquette text { font-size: 20px; font-weight: 700; fill: var(--evt-attenue); }
|
||||
.strates__sol { fill: var(--bg-alt); }
|
||||
.strates__arbre line, .strates__bouture { stroke: var(--text); stroke-width: 4; stroke-linecap: round; }
|
||||
.strates__arbre ellipse { stroke: var(--text); stroke-width: 2; }
|
||||
.strates__arbre--haut ellipse { fill: color-mix(in srgb, var(--nav-primary-solid) 30%, var(--surface)); }
|
||||
.strates__arbre--moyen ellipse { fill: color-mix(in srgb, var(--nav-primary-solid) 18%, var(--surface)); }
|
||||
.strates__arbre--bas ellipse { fill: color-mix(in srgb, var(--nav-primary-solid) 10%, var(--surface)); }
|
||||
.strates__fruit { fill: var(--accent); stroke: var(--text); stroke-width: 1; }
|
||||
.strates__feuille, .strates__herbe path { fill: color-mix(in srgb, var(--nav-primary-solid) 22%, var(--surface)); stroke: var(--text); stroke-width: 1.5; }
|
||||
.strates__bouture { stroke-width: 3; }
|
||||
.strates__paille { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
|
||||
</style>
|
||||
Reference in New Issue
Block a user