From f5db8fb5c490011b34b77ac33197e76fddb52e1e Mon Sep 17 00:00:00 2001 From: Jules Neny Date: Tue, 10 Nov 2026 12:28:06 +0100 Subject: [PATCH] =?UTF-8?q?feat(cerveau):=20onglets=20du=20haut=20au=20t?= =?UTF-8?q?=C3=A9l=C3=A9phone,=20=C3=A9criture=20=C2=B7=20architecture=20?= =?UTF-8?q?=C2=B7=20art?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Libellé de gauche dans une constante unique (veto possible : « communication »). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01PWGVmzmm9vJ8E3dhGaJhFT --- src/components/astro/MobileTabBar.astro | 50 ++++++++++++------------- 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/src/components/astro/MobileTabBar.astro b/src/components/astro/MobileTabBar.astro index afe7a05..eac8144 100644 --- a/src/components/astro/MobileTabBar.astro +++ b/src/components/astro/MobileTabBar.astro @@ -1,39 +1,37 @@ --- // MobileTabBar - indicateur de colonne active sur mobile (V1.1-D.1) // Ecoute l'event "swipe-position-change" emis par SwipeContainer.vue -// Affiche : Journal | Carte | Insta - colonne active surlignee +// Affiche : écriture | architecture | art (retouches du 09/11) - colonne active surlignee + +// Libellé du panneau gauche : défaut « écriture » (Jules hésitait avec « communication »). +// Pour changer, éditer cette seule ligne (libellé et aria-label suivent). +const LIBELLE_GAUCHE = 'écriture'; + +// Article élidé devant voyelle (« l'écriture »), sinon « la » (« la communication »). +const avecArticle = (mot: string) => (/^[aeéèêiouh]/i.test(mot) ? `l'${mot}` : `la ${mot}`); + +const onglets = [ + { libelle: LIBELLE_GAUCHE, aria: `Aller à ${avecArticle(LIBELLE_GAUCHE)}` }, + { libelle: 'architecture', aria: "Aller à l'architecture" }, + { libelle: 'art', aria: "Aller à l'art" }, +]; --- -