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" }, +]; --- -