Add a speaker view with a next-slide preview and keep the live slide in view
- New /admin/{token}/speaker page for a second window: current slide, preview of
the next slide and the usual controls. It does not start the presentation.
- The presenter state gets `next` (labels only, no solutions).
- The dashboard scrolls the live slide into view when the presenter moves on.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8262411225
commit
66ed198f87
11 files changed
+264
-5
No files matched your search
@@ -678,6 +678,25 @@ body.present {
|
||||
--star: #d48500;
|
||||
--star-empty: #c3c8da;
|
||||
}
|
||||
/* Speaker view (second window): current slide left, preview of the next one right. */
|
||||
.stage--speaker { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-rows: auto 1fr auto; column-gap: 3vw; }
|
||||
.stage--speaker > .stage__top, .stage--speaker > .stage__controls { grid-column: 1 / -1; }
|
||||
.stage--speaker .stage__question { font-size: clamp(1.5rem, 3vw, 2.6rem); }
|
||||
.stage--speaker .stage__description { font-size: clamp(1rem, 1.5vw, 1.3rem); }
|
||||
.stage--speaker .stage__results { font-size: clamp(.9rem, 1.3vw, 1.2rem); }
|
||||
.stage__next { align-self: center; max-height: 100%; overflow: auto; padding: 2vh 2vw; border: 1px dashed rgba(var(--tint), .3); border-radius: 12px; background: rgba(var(--tint), .05); }
|
||||
.stage__next-label { text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; font-size: .85rem; margin: 0 0 .6em; }
|
||||
.stage__next-question { font-size: clamp(1.2rem, 2.2vw, 2rem); margin: 0 0 .4em; }
|
||||
.stage__next-description { color: var(--muted); font-size: clamp(.95rem, 1.3vw, 1.15rem); margin: 0 0 .8em; }
|
||||
.stage__next-description:empty, .stage__next-options:empty, .stage__next-note:empty { display: none; }
|
||||
.stage__next-options { margin: 0 0 .8em; padding-left: 1.2em; font-size: clamp(.95rem, 1.3vw, 1.15rem); }
|
||||
.stage__next-note { margin: 0; font-size: .9rem; }
|
||||
.stage__next--end .stage__next-question { color: var(--muted); font-weight: 400; }
|
||||
@media (max-width: 800px) {
|
||||
body.present:has(.stage--speaker) { overflow: auto; }
|
||||
.stage--speaker { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; height: auto; min-height: 100vh; }
|
||||
.stage__next { align-self: stretch; margin-bottom: 2vh; }
|
||||
}
|
||||
.stage__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: clamp(1rem, 1.6vw, 1.4rem); color: var(--muted); }
|
||||
.stage__top strong { color: var(--text); }
|
||||
.stage__code { letter-spacing: .12em; background: rgba(var(--tint), .1); padding: 2px 10px; border-radius: 8px; }
|
||||
|
||||
Reference in new issue
Block a user