Home: two-window explainer, code settings tucked away; projector: light entrance and exit motion

This commit is contained in:
2026-11-17 01:46:18 +01:00
parent d4902da7c2
commit efa671a367
5 changed files with 119 additions and 49 deletions
+28 -22
View File
@@ -14,28 +14,13 @@
<section id="create" class="card">
<h1>Nouveau scrutin</h1>
<div class="duo">
<div><svg class="icon" viewBox="0 0 24 24" width="26" height="26" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M2 4h20"/><path d="M4 4v10h16V4"/><path d="M12 14v3"/><path d="M8.5 21l3.5-4 3.5 4"/></svg><p><b>Projecteur</b><span>Affiché à la salle</span></p></div>
<div><svg class="icon" viewBox="0 0 24 24" width="26" height="26" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 5h16v11H4z"/><path d="M2 19.5h20"/><path d="M8 9h8"/><path d="M8 12.5h5"/></svg><p><b>Administration</b><span>Sur votre écran</span></p></div>
</div>
<form id="form">
<label for="title">Titre</label>
<input id="title" type="text" required maxlength="200" placeholder="Assemblée générale 2026">
<div class="row">
<div>
<label for="interval">Rotation du code</label>
<select id="interval">
<option value="500">0,5 s</option>
<option value="700">0,7 s</option>
<option value="800" selected>0,8 s</option>
<option value="1000">1 s</option>
<option value="1500">1,5 s</option>
<option value="2000">2 s</option>
</select>
</div>
<div>
<label for="scans">Codes à scanner</label>
<input id="scans" type="number" min="2" max="20" value="5">
</div>
</div>
<p class="hint" id="duration-hint"></p>
<input id="title" type="text" required maxlength="200" placeholder="Conseil d'administration">
<div class="row">
<div>
@@ -55,6 +40,27 @@
<input id="codes" type="number" min="1" max="5000" value="50">
</div>
<details class="advanced">
<summary>Réglages du code</summary>
<div class="row">
<div>
<label for="interval">Rotation du code</label>
<select id="interval">
<option value="500">0,5 s</option>
<option value="700">0,7 s</option>
<option value="800" selected>0,8 s</option>
<option value="1000">1 s</option>
<option value="1500">1,5 s</option>
<option value="2000">2 s</option>
</select>
</div>
<div>
<label for="scans">Codes à scanner</label>
<input id="scans" type="number" min="2" max="20" value="5">
</div>
</div>
</details>
<div id="pw-box" hidden>
<label for="pw">Mot de passe de création</label>
<input id="pw" type="password" autocomplete="current-password">
@@ -68,9 +74,9 @@
<section id="done" class="card" hidden>
<h1>Scrutin créé</h1>
<div class="notice warn">Conservez le lien d'administration : il ne pourra pas être récupéré.</div>
<label>Lien d'administration</label>
<label class="with-icon"><svg class="icon" viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M4 5h16v11H4z"/><path d="M2 19.5h20"/><path d="M8 9h8"/><path d="M8 12.5h5"/></svg>Lien d'administration</label>
<div class="linkbox"><input id="admin-link" type="text" readonly><button id="copy-admin" class="small" type="button">Copier</button></div>
<label>Lien du projecteur</label>
<label class="with-icon"><svg class="icon" viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M2 4h20"/><path d="M4 4v10h16V4"/><path d="M12 14v3"/><path d="M8.5 21l3.5-4 3.5 4"/></svg>Lien du projecteur</label>
<div class="linkbox"><input id="screen-link" type="text" readonly><button id="copy-screen" class="small" type="button">Copier</button></div>
<p class="hint">Pour l'ordinateur du vidéoprojecteur. Ne pas diffuser.</p>
<div class="actions"><a id="go-admin" class="btn primary block" href="#">Ouvrir l'administration</a></div>