Display-Seiten: Gäste holen sich den Zugang selbst
Für Empfang, Lobby oder Tagungsraum lässt sich je Site eine öffentliche Seite anlegen (kiosk.php), die auf einem Bildschirm oder Tablet läuft: ein großer Knopf, ein Klick, ein Zugangscode mit QR-Code. Nach einer einstellbaren Anzeigedauer springt der Bildschirm zurück, damit der nächste Gast nicht den Code seines Vorgängers sieht. Verwaltung unter Administration → Display-Seiten: - Site und optionales Voucher-Profil (bestimmt Laufzeit, Geräte, QoS) - eigene Überschrift und Text für den Bildschirm - Codes pro Tag, Wartezeit zwischen zwei Codes, Anzeigedauer - geheimer Link zum Kopieren, als QR-Code anzeigbar und jederzeit erneuerbar (der alte Link gilt dann sofort nicht mehr) Absicherung: der Link ist der Zugang, deshalb Tageslimit und Wartezeit je Display, CSRF-Token am Formular, `noindex` im Kopf und ein Eintrag im Audit-Log für jeden ausgegebenen Code. Webhooks werden für Kiosk-Codes bewusst nicht ausgelöst – ein Empfangsdisplay würde den Kanal fluten. Technik: - neue Tabelle `kiosks`, `vouchers.kiosk_id` hält die Herkunft fest (Migration 0005, database.sql nachgezogen) - includes/Kiosk.php kapselt Token, Limits und Profil-Auflösung - includes/VoucherService.php bündelt die Voucher-Erstellung, die vorher in index.php lag und für den Kiosk ein zweites Mal nötig gewesen wäre - Startbildschirm zeigt zusätzlich einen QR auf sich selbst, damit Gäste die Seite am eigenen Handy öffnen können Tests: 9 neue Fälle für Token-Prüfung, Wartezeit, Tageslimit und Profil-Auflösung (38 Tests gesamt), PHPStan deckt Kiosk.php mit ab. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
5d72febadc
commit
61810eb050
30 changed files with 1360 additions and 29 deletions
|
|
@ -1610,6 +1610,128 @@ input.search-bar, .site-selector .search-bar { min-width: 240px; width: auto; fl
|
|||
}
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
16. KIOSK – öffentliche Display-Seite
|
||||
Große Typografie: der Code muss aus einigen Metern Entfernung lesbar sein.
|
||||
========================================================================= */
|
||||
.kiosk-body {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background:
|
||||
radial-gradient(900px 500px at 12% -10%, var(--accent-soft), transparent 62%),
|
||||
radial-gradient(700px 460px at 100% 0%, rgba(139,92,246,.10), transparent 64%),
|
||||
var(--bg-body);
|
||||
}
|
||||
.kiosk-stage {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 40px 24px;
|
||||
}
|
||||
.kiosk-card {
|
||||
width: 100%;
|
||||
max-width: 680px;
|
||||
padding: 48px 44px;
|
||||
text-align: center;
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: var(--r-xl);
|
||||
box-shadow: var(--shadow-xl);
|
||||
}
|
||||
.kiosk-logo { max-height: 84px; max-width: 320px; margin: 0 auto 26px; display: block; }
|
||||
.kiosk-mark { width: 62px; height: 62px; margin: 0 auto 26px; font-size: 26px; }
|
||||
.kiosk-headline {
|
||||
font-size: clamp(30px, 4.6vw, 46px);
|
||||
line-height: 1.15;
|
||||
letter-spacing: -0.03em;
|
||||
}
|
||||
.kiosk-subline {
|
||||
margin-top: 14px;
|
||||
font-size: clamp(16px, 1.8vw, 20px);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
.kiosk-alert { justify-content: center; margin: 24px 0 0; text-align: left; }
|
||||
.kiosk-button {
|
||||
width: 100%;
|
||||
margin-top: 34px;
|
||||
padding: 26px 32px;
|
||||
gap: 14px;
|
||||
font-size: clamp(20px, 2.4vw, 26px);
|
||||
font-weight: 620;
|
||||
border-radius: var(--r-lg);
|
||||
}
|
||||
.kiosk-button i { font-size: 0.95em; }
|
||||
.kiosk-phone {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 16px;
|
||||
margin-top: 34px;
|
||||
padding-top: 26px;
|
||||
border-top: 1px solid var(--border-color);
|
||||
color: var(--text-muted);
|
||||
font-size: 13.5px;
|
||||
}
|
||||
.kiosk-phone-qr { line-height: 0; }
|
||||
.kiosk-phone-qr img, .kiosk-phone-qr canvas { border-radius: var(--r-sm); }
|
||||
|
||||
.kiosk-result { max-width: 880px; }
|
||||
.kiosk-eyebrow {
|
||||
display: inline-flex; align-items: center; gap: 9px;
|
||||
padding: 6px 16px;
|
||||
border-radius: var(--r-pill);
|
||||
background: var(--success-soft);
|
||||
border: 1px solid var(--success-border);
|
||||
color: var(--success);
|
||||
font-size: 14px; font-weight: 600;
|
||||
}
|
||||
.kiosk-code {
|
||||
margin: 26px 0 18px;
|
||||
font-family: var(--font-mono);
|
||||
/* Muss aus einigen Metern lesbar sein, aber in einer Zeile bleiben. */
|
||||
font-size: clamp(38px, 7vw, 76px);
|
||||
font-weight: 700;
|
||||
letter-spacing: .06em;
|
||||
white-space: nowrap;
|
||||
line-height: 1.05;
|
||||
color: var(--text-primary);
|
||||
word-break: break-word;
|
||||
}
|
||||
.kiosk-meta {
|
||||
display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
|
||||
font-size: 15px; color: var(--text-secondary);
|
||||
}
|
||||
.kiosk-meta span {
|
||||
display: inline-flex; align-items: center; gap: 8px;
|
||||
padding: 6px 14px;
|
||||
background: var(--bg-subtle);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: var(--r-pill);
|
||||
}
|
||||
.kiosk-qr { margin: 30px 0 8px; }
|
||||
.kiosk-qr #qrcode {
|
||||
display: inline-block;
|
||||
padding: 16px;
|
||||
background: #fff;
|
||||
border-radius: var(--r-lg);
|
||||
box-shadow: var(--shadow-sm);
|
||||
line-height: 0;
|
||||
}
|
||||
.kiosk-qr-label { margin-top: 14px; font-size: 15px; color: var(--text-secondary); }
|
||||
.kiosk-countdown { margin: 18px 0 22px; font-size: 13.5px; color: var(--text-muted); }
|
||||
.kiosk-footer { padding: 0 24px 22px; text-align: center; }
|
||||
|
||||
/* Link-Zeile in der Kiosk-Verwaltung */
|
||||
.kiosk-link-row { display: flex; gap: 8px; align-items: center; }
|
||||
.kiosk-link-row .input { font-family: var(--font-mono); font-size: 12px; }
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.kiosk-card { padding: 32px 22px; }
|
||||
.kiosk-phone { flex-direction: column; }
|
||||
}
|
||||
|
||||
/* =========================================================================
|
||||
13. RESPONSIVE
|
||||
========================================================================= */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue