Kiosk start, offline and setup pages in the InfoFlow display style
Dark grey background, name top left, date and clock top right, a flat panel with a blue top edge. The pages show the kiosk link (token masked) and the management address; the clock code is shared in kiosk.js. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
efc581e0ae
commit
19595aaf39
11 files changed
+169
-89
No files matched your search
+38
-24
@@ -1,26 +1,40 @@
|
||||
/* Local pages shown on the kiosk screen itself (file://). Large type, readable from a distance. */
|
||||
:root { color-scheme: dark; }
|
||||
/* Local pages shown on the kiosk screen itself (file://). Same look as the InfoFlow
|
||||
display (dark theme): flat dark grey, white type, panels with a blue top edge. */
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
--bg: #111827;
|
||||
--panel: rgba(0, 0, 0, .2);
|
||||
--line: rgba(255, 255, 255, .1);
|
||||
--accent: #2563eb;
|
||||
--muted: rgba(255, 255, 255, .7);
|
||||
--faint: rgba(255, 255, 255, .45);
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
html, body { margin: 0; height: 100%; overflow: hidden; cursor: none; user-select: none; }
|
||||
body {
|
||||
font-family: system-ui, "DejaVu Sans", "Liberation Sans", Arial, sans-serif;
|
||||
background: radial-gradient(ellipse at 30% 20%, #163a6b 0%, #0b2545 45%, #061529 100%);
|
||||
color: #eaf1fb;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
}
|
||||
.stage { text-align: center; padding: 4vh 6vw; max-width: 1400px; transition: transform 2s ease; }
|
||||
.logo { width: 9vmin; height: 9vmin; min-width: 64px; min-height: 64px; margin-bottom: 3vh; opacity: .95; }
|
||||
h1 { font-size: clamp(28px, 5vmin, 72px); margin: 0 0 2vh; font-weight: 700; letter-spacing: -.01em; }
|
||||
p { font-size: clamp(16px, 2.6vmin, 36px); margin: 0 0 1.5vh; color: #b9cbe4; }
|
||||
.device { font-size: clamp(14px, 2.2vmin, 28px); color: #7f9cc4; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 2vh; }
|
||||
.clock { font-size: clamp(48px, 12vmin, 180px); font-weight: 300; font-variant-numeric: tabular-nums; margin: 3vh 0 1vh; color: #fff; }
|
||||
.date { font-size: clamp(18px, 3vmin, 40px); color: #b9cbe4; }
|
||||
.status { display: inline-flex; align-items: center; gap: 1.2vmin; margin-top: 4vh; padding: 1.2vmin 2.4vmin; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: clamp(14px, 2.2vmin, 28px); color: #d6e2f3; }
|
||||
.dot { width: 1.6vmin; height: 1.6vmin; min-width: 10px; min-height: 10px; border-radius: 50%; background: #f0a020; animation: pulse 1.6s infinite; }
|
||||
.spinner { width: 7vmin; height: 7vmin; margin: 4vh auto 0; border-radius: 50%; border: .8vmin solid rgba(255, 255, 255, .15); border-top-color: #4f9cf9; animation: spin 1s linear infinite; }
|
||||
.code { display: inline-block; font-family: "DejaVu Sans Mono", ui-monospace, monospace; font-size: clamp(40px, 10vmin, 150px); font-weight: 700; letter-spacing: .12em; padding: 2vh 4vw; margin: 2vh 0 3vh; border-radius: 2vmin; background: rgba(255, 255, 255, .1); border: 2px solid rgba(79, 156, 249, .6); color: #fff; }
|
||||
.urls { list-style: none; padding: 0; margin: 1vh 0 3vh; }
|
||||
.urls li { font-family: "DejaVu Sans Mono", ui-monospace, monospace; font-size: clamp(18px, 3.4vmin, 48px); color: #fff; margin: .8vh 0; }
|
||||
.hint { font-size: clamp(14px, 2vmin, 26px); color: #7f9cc4; }
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
@keyframes pulse { 50% { opacity: .3; } }
|
||||
body { font-family: ui-sans-serif, system-ui, "DejaVu Sans", "Liberation Sans", Arial, sans-serif; background: var(--bg); color: #fff; }
|
||||
|
||||
.screen { display: flex; flex-direction: column; height: 100%; padding: 4vmin; transition: transform 2s ease; }
|
||||
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 4vmin; }
|
||||
.name { font-size: clamp(20px, 3.4vmin, 44px); font-weight: 600; }
|
||||
.when { text-align: right; }
|
||||
.date { font-size: clamp(18px, 3.6vmin, 44px); color: var(--muted); }
|
||||
.clock { font-size: clamp(36px, 8vmin, 110px); font-weight: 300; line-height: 1.1; font-variant-numeric: tabular-nums; }
|
||||
|
||||
.middle { flex: 1; display: flex; align-items: center; justify-content: center; padding: 3vmin 0; }
|
||||
.panel { width: min(100%, 1100px); background: var(--panel); border-top: 4px solid var(--accent); border-radius: 8px; padding: 4.5vmin 5vmin; }
|
||||
h1 { font-size: clamp(26px, 4.6vmin, 64px); font-weight: 600; margin: 0 0 1.5vmin; }
|
||||
p { font-size: clamp(16px, 2.6vmin, 34px); color: var(--muted); margin: 0 0 1vmin; }
|
||||
.link { margin-top: 3.5vmin; padding-top: 2.5vmin; border-top: 1px solid var(--line); font-size: clamp(14px, 2.2vmin, 28px); color: var(--muted); overflow-wrap: anywhere; }
|
||||
.link .url { font-family: "DejaVu Sans Mono", ui-monospace, monospace; color: #fff; }
|
||||
|
||||
.bottom { display: flex; justify-content: space-between; gap: 4vmin; font-size: clamp(12px, 1.9vmin, 24px); color: var(--faint); }
|
||||
|
||||
.progress { height: 4px; margin-top: 4vmin; background: var(--line); border-radius: 2px; overflow: hidden; }
|
||||
.progress span { display: block; width: 30%; height: 100%; background: var(--accent); animation: slide 1.8s ease-in-out infinite; }
|
||||
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
|
||||
|
||||
/* setup page */
|
||||
.urls { list-style: none; padding: 0; margin: 1.5vmin 0 3vmin; }
|
||||
.urls li { font-family: "DejaVu Sans Mono", ui-monospace, monospace; font-size: clamp(18px, 3.2vmin, 44px); margin: .8vmin 0; }
|
||||
.code { display: inline-block; font-family: "DejaVu Sans Mono", ui-monospace, monospace; font-size: clamp(40px, 9vmin, 130px); font-weight: 700; letter-spacing: .1em; padding: 1.5vmin 3vmin; margin: 1.5vmin 0 3vmin; border-radius: 8px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
|
||||
.hint { font-size: clamp(14px, 2vmin, 26px); color: var(--faint); }
|
||||
Reference in new issue
Block a user