Visitor sign in kiosk: multi-site, badge printing, WWCC expiry warnings, admin accounts with 2FA

This commit is contained in:
2026-09-01 15:24:03 +10:00
parent 9da7e88eb3
commit a7564b9033
7 changed files with 57 additions and 22 deletions
+18 -6
View File
@@ -14,6 +14,11 @@
* { box-sizing: border-box; }
/* The rules below set display on elements that are toggled with the hidden
attribute, and an author rule beats the browser's [hidden] { display: none }.
Without this the captured still renders underneath the live camera feed. */
[hidden] { display: none !important; }
html, body {
margin: 0;
min-height: 100%;
@@ -48,8 +53,9 @@ body {
.foot {
display: flex;
justify-content: space-between;
justify-content: flex-end;
gap: 16px;
min-height: 20px;
padding: 14px 22px 20px;
font-size: 12.5px;
color: var(--muted);
@@ -215,19 +221,25 @@ a:focus-visible {
.camera {
position: relative;
aspect-ratio: 4 / 3;
/* Square, matching the crop that is saved and the frame printed on the badge,
so the visitor sees exactly what ends up on their pass. */
aspect-ratio: 1 / 1;
width: 100%;
max-width: 380px;
margin: 0 auto 18px;
background: #0f1720;
border-radius: 3px;
overflow: hidden;
margin-bottom: 18px;
}
.camera video, .camera img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transform: scaleX(-1);
}
/* The live feed is mirrored because that is how people expect to see themselves.
The captured still is not: it shows what will actually print. */
.camera video { transform: scaleX(-1); }
.camera-error {
margin: -8px 0 18px;
padding: 14px;
@@ -250,7 +262,7 @@ a:focus-visible {
}
.review dt { color: var(--muted); }
.review dd { margin: 0; }
.review img { width: 78px; border-radius: 3px; display: block; }
.review img { width: 78px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 3px; display: block; }
/* ------------------------------------------------------------- done */
@@ -325,7 +337,7 @@ a:focus-visible {
.foot-link {
border: none;
background: none;
padding: 0 12px 0 0;
padding: 0;
color: var(--muted);
font: inherit;
font-size: 12.5px;