From 7bfc6dfb7c0d2b486f17ba2c16b425cf349367bc Mon Sep 17 00:00:00 2001 From: Showdown76py Date: Tue, 17 Nov 2026 01:47:45 +0100 Subject: [PATCH] Two-window explainer moves to the links page, with an open button for the projector --- static/css/app.css | 8 +++++--- static/index.html | 22 ++++++++++++---------- static/js/index.js | 2 ++ 3 files changed, 19 insertions(+), 13 deletions(-) diff --git a/static/css/app.css b/static/css/app.css index 560b517..69bb34e 100644 --- a/static/css/app.css +++ b/static/css/app.css @@ -163,13 +163,15 @@ button:disabled { opacity: .35; cursor: not-allowed; transform: none; } } .center { text-align: center; } -/* home: the two windows a poll opens */ +/* created poll: the two windows it opens */ .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 2px 0 6px; } -.duo > div { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: var(--r-field); padding: 12px 14px; } +.duo.stack { grid-template-columns: 1fr; margin-top: 12px; } +.duo .pane { display: grid; gap: 10px; background: var(--bg); border-radius: var(--r-field); padding: 14px; } +.duo .pane-head { display: flex; align-items: center; gap: 12px; } +.duo .pane .linkbox input { background: var(--surface); } .duo p { margin: 0; display: grid; gap: 1px; min-width: 0; } .duo b { font: 700 .92rem var(--round); } .duo span { font-size: .78rem; color: var(--ink-3); } -label.with-icon { display: flex; align-items: center; gap: 8px; } details.advanced { margin-top: 14px; } details.advanced summary { font-size: .82rem; color: var(--ink-3); cursor: pointer; width: fit-content; padding: 4px 0; } details.advanced summary:hover { color: var(--ink-2); } diff --git a/static/index.html b/static/index.html index ecb9ec5..d5371a0 100644 --- a/static/index.html +++ b/static/index.html @@ -14,10 +14,6 @@

Nouveau scrutin

-
-

ProjecteurAffiché à la salle

-

AdministrationSur votre écran

-
@@ -74,12 +70,18 @@ diff --git a/static/js/index.js b/static/js/index.js index ce65ff4..35a5915 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -26,7 +26,9 @@ $("#form").addEventListener("submit", async (e) => { $("#admin-link").value = admin; $("#screen-link").value = screen; $("#go-admin").href = admin; + $("#go-screen").href = screen; $("#create").hidden = true; + $("#try-link").hidden = true; $("#done").hidden = false; } catch (err) { toast(err.code === "bad_password" ? "Mot de passe incorrect" : `Erreur : ${err.message}`, "bad");