From 23a07fa9ebb32b1fb571069ff19eeca9d277454c Mon Sep 17 00:00:00 2001 From: Daniel Allaire Date: Tue, 10 Nov 2026 19:25:58 -0500 Subject: [PATCH] =?UTF-8?q?site=20web=20:=20l'habit=20de=20l'atlas=20c?= =?UTF-8?q?=C3=A9leste,=20le=20ciel=20de=20Chezlepro,=20le=20Qu=C3=A9bec?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Retour à l'habit des cartes célestes (IM Fell, Spectral, or sur nuit), préféré par Daniel, avec deux ajouts : le ciel étoilé animé et l'aurore du site de Chezlepro en arrière-plan, et sur la page Contact une tuile par membre (Chezlepro inc., membre fondateur ; TechnoLibre inc., membre partenaire), chacune vers sa propre page de contact. Le planisphère parle du Québec plutôt que de Montréal : treize régions, de Gatineau à Kuujjuaq, règlent sa latitude, donc l'horizon et le cercle des étoiles qui ne se couchent jamais. Québec par défaut ; le choix se garde dans le navigateur. L'accueil dit que la fibre rejoint presque toutes les régions. Le fond de html est retiré : il faisait peindre celui de body par-dessus le ciel, en z-index négatif. Co-Authored-By: Claude Opus 5.5 --- README.md | 18 +- outils/ajouts.css | 116 -- outils/construire.py | 71 +- outils/site.css | 391 ++++++ outils/theme.css | 633 ---------- outils/theme.js | 11 + pages/404.html | 30 +- pages/atelier.html | 157 +-- pages/constellation.html | 179 ++- pages/contact.html | 128 +- pages/faq.html | 257 ++-- pages/index.html | 199 ++- pages/label.html | 172 ++- pages/vision.html | 108 +- public/404.html | 74 +- public/atelier.html | 201 +-- public/constellation.html | 223 ++-- public/contact.html | 176 +-- public/css/site.css | 1095 ++++++----------- public/faq.html | 301 +++-- public/index.html | 255 ++-- public/js/planisphere.js | 99 +- public/js/site.js | 11 + public/label.html | 216 ++-- public/polices/LICENCES.md | 15 + public/polices/OFL-imfellenglish.txt | 93 ++ public/polices/OFL-imfellenglishsc.txt | 93 ++ public/polices/OFL-jetbrainsmono.txt | 93 ++ public/polices/OFL-spectral.txt | 93 ++ public/polices/imfellenglish-italic-400.woff2 | Bin 0 -> 57808 bytes public/polices/imfellenglishsc-400.woff2 | Bin 0 -> 56956 bytes public/polices/jetbrainsmono-400.woff2 | Bin 0 -> 21168 bytes public/polices/spectral-300.woff2 | Bin 0 -> 22480 bytes public/polices/spectral-400.woff2 | Bin 0 -> 21696 bytes public/polices/spectral-600.woff2 | Bin 0 -> 22936 bytes public/polices/spectral-italic-300.woff2 | Bin 0 -> 23732 bytes public/vision.html | 152 +-- 37 files changed, 2764 insertions(+), 2896 deletions(-) delete mode 100644 outils/ajouts.css create mode 100644 outils/site.css delete mode 100644 outils/theme.css create mode 100644 public/polices/LICENCES.md create mode 100644 public/polices/OFL-imfellenglish.txt create mode 100644 public/polices/OFL-imfellenglishsc.txt create mode 100644 public/polices/OFL-jetbrainsmono.txt create mode 100644 public/polices/OFL-spectral.txt create mode 100644 public/polices/imfellenglish-italic-400.woff2 create mode 100644 public/polices/imfellenglishsc-400.woff2 create mode 100644 public/polices/jetbrainsmono-400.woff2 create mode 100644 public/polices/spectral-300.woff2 create mode 100644 public/polices/spectral-400.woff2 create mode 100644 public/polices/spectral-600.woff2 create mode 100644 public/polices/spectral-italic-300.woff2 diff --git a/README.md b/README.md index 4f4e278..4eff654 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,10 @@ Le site public de l'**Alliance Boréale — souveraineté numérique**, servi sous **https://federation.alliance-boreale.ca**. Huit pages statiques, en français, sans témoin et sans -aucune ressource de tiers. Il porte le thème du site de Chezlepro (nuit boréale, ciel étoilé) et, -en pièce maîtresse, un **planisphère réel du ciel de Montréal** où les sites de l'Alliance -brillent sous leur étoile : Miram pour Chezlepro, Achird pour TechnoLibre. +aucune ressource de tiers. Il porte l'habit des cartes célestes de Set-OPS (atlas ancien : nuit, +or des astres, IM Fell et Spectral), sur le ciel étoilé animé du site de Chezlepro. En pièce +maîtresse, un **planisphère réel du ciel du Québec**, réglable par région, où les sites de +l'Alliance brillent sous leur étoile : Miram pour Chezlepro, Achird pour TechnoLibre. Le site est servi par Set-OPS selon la norme des applications clientes (`execution: statique`). @@ -15,11 +16,12 @@ Le site est servi par Set-OPS selon la norme des applications clientes (`executi | `setops-app.yml` | Le contrat Set-OPS : site statique, dossier servi `public/`, sonde `/sante.txt` | | `pages/*.html` | Les **corps** des pages (accueil, vision, label, constellation, atelier, questions, contact, 404) | | `outils/construire.py` | Le générateur : pose l'en-tête, le pied et l'enveloppe, assemble la feuille et le script | -| `outils/theme.css`, `outils/theme.js` | Le thème, **repris du site de Chezlepro** (`site-web-chezlepro`, commit `7079066`) : feuille complète ; ciel étoilé, apparitions et 404 du script | -| `outils/ajouts.css` | Les styles propres à l'Alliance : planisphère, registre des étoiles, anatomie d'un site, tuiles des membres | +| `outils/site.css` | La feuille de l'atlas : planisphère, registre des étoiles, anatomie d'un site, tuiles des membres ; le ciel de fond et l'aurore y sont ceux de Chezlepro | +| `outils/theme.js` | Le ciel étoilé animé, **repris du site de Chezlepro** (`site-web-chezlepro`, commit `7079066`), et le menu mobile | +| `public/polices/` | IM Fell English (SC et italique), Spectral, JetBrains Mono : libres (OFL), servies par le site | | `outils/ciel.py` | Régénère `public/js/ciel-donnees.js`, le ciel du planisphère | | `public/` | Ce que le serveur sert. `css/site.css`, `js/site.js` et les pages HTML y sont **générés** | -| `public/js/planisphere.js` | Le planisphère : projection stéréographique polaire, temps sidéral de Montréal, horizon réel | +| `public/js/planisphere.js` | Le planisphère : projection stéréographique polaire, temps sidéral, horizon réel ; treize régions, de Gatineau à Kuujjuaq | | `public/js/ciel-donnees.js` | 1 926 étoiles, 51 constellations, les 70 circumpolaires (généré) | ## Reconstruire les pages @@ -31,8 +33,8 @@ python3 outils/construire.py Le générateur refuse de sortir une page qui contiendrait un style ou un script en ligne, ou une ressource externe : le vhost pose `Content-Security-Policy: default-src 'self'`. -Pour suivre le thème de Chezlepro quand il change : recopier `site-web-chezlepro/public/css/site.css` -dans `outils/theme.css`, puis reconstruire. +Le fond n'a pas de couleur sur `html` : celle de `body` passe alors au canevas, sous le ciel +(`#sky`, en `z-index` négatif). Un fond sur `html` ferait peindre `body` par-dessus le ciel. ## Régénérer le ciel diff --git a/outils/ajouts.css b/outils/ajouts.css deleted file mode 100644 index 9e08820..0000000 --- a/outils/ajouts.css +++ /dev/null @@ -1,116 +0,0 @@ -/* =================================================================== - AJOUTS DU SITE DE L'ALLIANCE BORÉALE — après le thème de Chezlepro - (outils/theme.css, copie de site-web-chezlepro/public/css/site.css). - Le planisphère, le registre des étoiles, l'anatomie d'un site et les - tuiles des membres. Mêmes jetons : nuit, encre, aurore. - =================================================================== */ - -/* la marque : le logo de l'Alliance, un disque de nuit */ -.brand-logo { width: 38px; height: 38px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1px rgba(86,194,255,.35), 0 0 18px rgba(86,194,255,.35); } -.brand-sous { display: block; font-family: var(--mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim-2); font-weight: 500; margin-top: 2px; } -.brand .brand-nom { line-height: 1.1; } - -/* accueil : le texte à gauche, le ciel de Montréal à droite */ -.hero-ciel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center; } -.hero-ciel > div { min-width: 0; } -.p2 .hero-ciel h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); } -@media (max-width: 960px) { .hero-ciel { grid-template-columns: minmax(0, 1fr); } } -.compte { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 30px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: .8rem; color: var(--dim); } -.compte b { font-weight: 700; background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; } - -/* le planisphère */ -.planisphere { margin: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; } -.planisphere .disque { position: relative; width: 100%; max-width: 640px; aspect-ratio: 1 / 1; margin-inline: auto; } -.planisphere canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; } -.astre-membre { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; padding: 0; } -.commandes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; max-width: 640px; width: 100%; margin-inline: auto; } -.commandes label { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim-2); } -.commandes input[type="range"] { flex: 1 1 160px; min-width: 0; accent-color: var(--teal); } -.commandes output { font-family: var(--mono); font-size: .84rem; color: var(--teal); font-variant-numeric: tabular-nums; } -.commandes button { background: var(--panel); border: 1px solid var(--line); color: var(--ink); font: inherit; font-size: .86rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; } -.commandes button:hover, .commandes button[aria-pressed="true"] { border-color: var(--cyan); color: var(--cyan); } -.planisphere figcaption { max-width: 640px; width: 100%; margin-inline: auto; font-size: .92rem; color: var(--dim); } -.planisphere figcaption .credit { display: block; margin-top: 6px; font-family: var(--mono); font-size: .68rem; color: var(--dim-2); } -.membres-ciel { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; max-width: 640px; width: 100%; } -.membres-ciel button { width: 100%; text-align: left; cursor: pointer; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: baseline; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; color: var(--ink); font: inherit; } -.membres-ciel button:hover, .membres-ciel button[aria-pressed="true"] { border-color: rgba(79,227,193,.5); background: var(--panel); } -.membres-ciel .nom { grid-row: span 2; font-weight: 800; font-size: 1.15rem; background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; } -.membres-ciel .qui { font-size: .95rem; font-weight: 600; } -.membres-ciel .ou { font-family: var(--mono); font-size: .7rem; color: var(--dim-2); } - -/* la constellation : le ciel à gauche, les 70 noms à droite */ -.registre-ciel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; } -.registre-ciel > div { min-width: 0; } -@media (min-width: 961px) { .registre-ciel .planisphere { position: sticky; top: 84px; } } -@media (max-width: 960px) { .registre-ciel { grid-template-columns: minmax(0, 1fr); } } -.registre-ciel .sec-head { margin-bottom: 24px; } -.places { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 6px; } -.places li { min-width: 0; } -.places button { width: 100%; text-align: left; cursor: default; font: inherit; font-size: .9rem; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 9px; padding: 6px 9px; color: var(--dim-2); display: flex; justify-content: space-between; gap: 6px; align-items: baseline; } -.places button[data-place] { cursor: pointer; color: var(--dim); } -.places button[data-place]:hover, .places button[data-place]:focus-visible { color: var(--ink); border-color: rgba(86,194,255,.45); } -.places .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; } -.places .c { font-family: var(--mono); font-size: .66rem; flex: none; } -.places .prise button { background: var(--aurora); border-color: transparent; color: #04121a; } -.places .prise .c { color: #04121a; } -.legende-places { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; font-family: var(--mono); font-size: .72rem; color: var(--dim-2); } -.legende-places span::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 7px; transform: translateY(1px); border: 1px solid var(--line); background: var(--panel-2); } -.legende-places .l-prise::before { background: var(--aurora); border-color: transparent; } - -/* l'anatomie d'un site (schéma SVG) */ -.anatomie { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: rgba(5,6,15,.45); } -.anatomie svg { display: block; width: 100%; min-width: 740px; height: auto; } -.anatomie text { font-family: var(--sans); } -.anatomie .t-zone { font-size: 17px; font-weight: 700; fill: var(--ink); } -.anatomie .t-role { font-size: 13px; font-style: italic; fill: var(--dim); } -.anatomie .t-astre { font-size: 24px; font-weight: 800; fill: var(--ink); } -.anatomie .t-sous { font-size: 14px; font-style: italic; fill: var(--dim); } -.anatomie .t-mono { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; fill: var(--dim-2); } -.anatomie .neb { fill: rgba(10,13,36,.9); stroke-width: 1.2; } -.anatomie .rayon { fill: none; stroke: var(--cyan); stroke-width: 1; opacity: .3; } -.anatomie .horizon { fill: none; stroke: var(--dim-2); stroke-width: .8; stroke-dasharray: 2 6; } -.anatomie .maison { fill: rgba(5,6,15,.8); stroke-width: 1.2; } -.anatomie .releve { fill: rgba(5,6,15,.8); stroke: var(--violet); stroke-width: 1.2; stroke-dasharray: 4 5; } -.anatomie .lien { fill: none; stroke: var(--violet); stroke-width: 1.2; stroke-dasharray: 4 5; opacity: .8; } -.anatomie .astre-c { fill: #e9ecff; } -.anatomie .n-teal { stroke: var(--teal); } -.anatomie .n-cyan { stroke: var(--cyan); } -.anatomie .n-violet { stroke: var(--violet); } -.anatomie .n-ambre { stroke: var(--amber); } - -/* la citation de la réciprocité */ -.citation { margin: 0; font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 750; letter-spacing: -.015em; line-height: 1.2; max-width: 30ch; text-wrap: balance; } -.citation cite { display: block; margin-top: 16px; font-family: var(--mono); font-style: normal; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); font-weight: 600; } - -/* le Label : la liste des obligations dans chaque niveau */ -.p2 .lv ul.does { margin-top: 14px; } -.p2 .lv .who { margin-top: 16px; color: var(--teal); font-weight: 600; font-size: .92rem; } -.p2 .lv.n1::before, .p2 .lv.n2::before, .p2 .lv.n3::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: 16px 16px 0 0; } -.p2 .lv.n1::before { background: var(--teal); } -.p2 .lv.n2::before { background: var(--cyan); } -.p2 .lv.n3::before { background: var(--violet); } - -/* l'atelier : le schéma de la méta-classe */ -.planche-img { display: block; width: 100%; max-width: 900px; height: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--night); } - -/* les membres : une tuile promotionnelle par organisation */ -.membres-promo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 22px; } -.promo { position: relative; display: flex; flex-direction: column; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px; overflow: hidden; min-width: 0; } -.promo::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--aurora); } -.promo.cl { background: linear-gradient(160deg, rgba(6,60,65,.55), rgba(6,60,65,.12) 60%), var(--panel); border-color: rgba(79,227,193,.22); } -.promo.tl { background: linear-gradient(160deg, rgba(169,139,255,.16), rgba(86,194,255,.05) 60%), var(--panel); border-color: rgba(169,139,255,.25); } -.promo .tete { display: flex; align-items: center; gap: 18px; } -.promo .tuile { flex: none; width: 76px; height: 76px; border-radius: 18px; background: #EEF3F2; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1px rgba(79,227,193,.35); } -.promo .tuile img { width: 58px; height: 62px; object-fit: contain; } -.promo .tuile.sigle { background: linear-gradient(135deg, rgba(79,227,193,.25), rgba(169,139,255,.3)); box-shadow: 0 0 0 1px rgba(169,139,255,.4); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; color: var(--ink); } -.promo h3 { margin: 0; font-size: 1.45rem; font-weight: 780; letter-spacing: -.01em; } -.promo .statut { display: inline-block; margin-top: 6px; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-weight: 600; } -.promo.tl .statut { color: var(--violet); } -.promo p { margin: 0; color: var(--dim); } -.promo ul.does { margin: 0; } -.promo .etoile { font-family: var(--mono); font-size: .78rem; color: var(--dim-2); } -.promo .etoile b { color: var(--ink); font-weight: 600; } -.promo .cta-row { margin-top: auto; padding-top: 6px; } -.membre .tuile.sigle-tl { background: linear-gradient(135deg, rgba(79,227,193,.25), rgba(169,139,255,.3)); box-shadow: 0 0 0 1px rgba(169,139,255,.4); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; color: var(--ink); } -.nav .cta-mini { white-space: nowrap; } -@media (max-width: 440px) { .brand-sous { display: none; } .nav .wrap { gap: 12px; } } diff --git a/outils/construire.py b/outils/construire.py index 4890c99..45cf507 100644 --- a/outils/construire.py +++ b/outils/construire.py @@ -3,8 +3,8 @@ python3 outils/construire.py -Entrées : les corps de page dans pages/*.html ; le thème (outils/theme.css, outils/theme.js, -repris du site de Chezlepro) et les ajouts de l'Alliance (outils/ajouts.css). +Entrées : les corps de page dans pages/*.html ; la feuille de l'atlas (outils/site.css) ; le +script du ciel étoilé, repris du site de Chezlepro (outils/theme.js). Sorties dans public/ : les pages HTML, css/site.css, js/site.js. Le planisphère (js/planisphere.js) et ses données (js/ciel-donnees.js, régénérées par outils/ciel.py) y sont déjà, à la main. @@ -24,7 +24,7 @@ PAGES = [ ("index.html", "Alliance Boréale — souveraineté numérique", "Fédération québécoise d'artisans du numérique éthique. Chacun est une étoile ; reliés, ils " "forment une constellation qui ne se couche jamais. Logiciel libre, données au Québec, relève entre pairs.", - None, True), + "Accueil", True), ("vision.html", "Vision — Alliance Boréale", "La gouvernance numérique souveraine comme bien commun : responsabilité, traçabilité, portabilité, sobriété.", "Vision", False), @@ -39,10 +39,10 @@ PAGES = [ "L'atelier", False), ("faq.html", "Questions — Alliance Boréale", "Les questions qu'on nous pose le plus souvent, des professionnels du milieu aux décideurs publics.", - "Questions", False), - ("contact.html", "Nous joindre — Alliance Boréale", + "FAQ", False), + ("contact.html", "Contact — Alliance Boréale", "Les membres de l'Alliance Boréale : Chezlepro inc., membre fondateur, et TechnoLibre inc., membre partenaire.", - None, False), + "Contact", False), ("404.html", "Étoile introuvable — Alliance Boréale", "Cette page est tombée dans un trou noir.", None, False), ] @@ -50,24 +50,43 @@ PAGES = [ def entete(courante: str, pre: str) -> str: liens = "".join( - f'{nom}' + f'
  • {nom}
  • ' for f, _, _, nom, _ in PAGES if nom) - appel = ' aria-current="page"' if courante == "contact.html" else "" - return f''' + return f''' + -Aller au contenu -''' +''' def pied(pre: str) -> str: - return f'''