From 0c764cd9ab47767251b3c071e269e21f160c5a23 Mon Sep 17 00:00:00 2001 From: s-FunIA Date: Sun, 18 Jan 2026 20:48:10 +0100 Subject: [PATCH] ui: propose modal intercept + readable buttons + open in new tab --- src/components/ProposeModal.astro | 91 +++++++++++++++++ src/layouts/EditionLayout.astro | 164 ++++++++++++++++++++++++++++++ 2 files changed, 255 insertions(+) create mode 100644 src/components/ProposeModal.astro create mode 100644 src/layouts/EditionLayout.astro diff --git a/src/components/ProposeModal.astro b/src/components/ProposeModal.astro new file mode 100644 index 0000000..475a028 --- /dev/null +++ b/src/components/ProposeModal.astro @@ -0,0 +1,91 @@ + +
+
+

Qualifier la proposition

+ +
+ +

+ Optionnel : choisis une intention (pour tri & traitement éditorial). Sinon, continue sans préciser. +

+ +
+ + + + + + +
+ +
+ Astuce : touche Esc pour fermer. +
+
+
+ + + + diff --git a/src/layouts/EditionLayout.astro b/src/layouts/EditionLayout.astro new file mode 100644 index 0000000..0095571 --- /dev/null +++ b/src/layouts/EditionLayout.astro @@ -0,0 +1,164 @@ +--- +import ProposeModal from "../components/ProposeModal.astro"; +import SiteNav from "../components/SiteNav.astro"; +import LevelToggle from "../components/LevelToggle.astro"; +import BuildStamp from "../components/BuildStamp.astro"; +import "../styles/global.css"; + +const { + title, + editionLabel, + editionKey, + statusLabel, + statusKey, + level, + version +} = Astro.props; + +const lvl = level ?? 1; + +const canonical = Astro.site + ? new URL(Astro.url.pathname, Astro.site).href + : Astro.url.href; + +// Cible Gitea (injectée au build) +const GITEA_BASE = import.meta.env.PUBLIC_GITEA_BASE ?? ""; +const GITEA_OWNER = import.meta.env.PUBLIC_GITEA_OWNER ?? ""; +const GITEA_REPO = import.meta.env.PUBLIC_GITEA_REPO ?? ""; +--- + + + + + + {title ? `${title} — Archicratie` : "Archicratie"} + + + + + + + + + + + + + + + +
+ +
+ Édition : {editionLabel} + Statut : {statusLabel} + Niveau : {lvl} + Version : {version} + +
+
+ +
+
+ + +
+
+ + + + + + +