Add embeddable slides and pause mode
Every slide gets an embed URL /e/{key}/{id} for presentation software
like Canva. The page goes live while it is visible, keeps itself live
with heartbeats and pauses when it disappears; stale embeds are paused
lazily. The embed key is separate from the admin token and only allows
showing, activating, pausing and voting controls of that slide.
Participants see a pause page while no slide is live. The presenter
can pause (P) and resume the paused slide with the arrow keys; the
dashboard has a pause button.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
58145e9753
commit
07a292d109
19 files changed
+1116
-68
No files matched your search
@@ -238,6 +238,11 @@ textarea { resize: vertical; }
|
||||
.slide-item__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .85rem; margin-bottom: 4px; }
|
||||
.slide-item__title { font-weight: 600; color: var(--text); text-decoration: none; word-break: break-word; }
|
||||
.slide-item__options { margin: 4px 0 0; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.slide-embed { margin-top: 6px; font-size: .85rem; }
|
||||
.slide-embed summary { cursor: pointer; color: var(--muted); width: max-content; }
|
||||
.slide-embed summary:hover { color: var(--text); }
|
||||
.slide-embed .copy-field { margin-top: 6px; }
|
||||
.slide-embed input { min-width: 0; flex: 1; }
|
||||
.slide-item__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
|
||||
@media (max-width: 700px) {
|
||||
.slide-item { grid-template-columns: auto minmax(0, 1fr); }
|
||||
@@ -530,6 +535,10 @@ body.present {
|
||||
@media (hover: none) and (pointer: coarse) {
|
||||
.ctrl__key { display: none; } /* touch devices usually have no keyboard */
|
||||
}
|
||||
.live-indicator { font-size: .8em; color: var(--muted); white-space: nowrap; }
|
||||
.live-indicator.is-live { color: var(--c1); font-weight: 700; }
|
||||
/* Embedded slides are smaller than a beamer: keep the controls visible, they are the only ones. */
|
||||
.stage--embed .stage__controls { opacity: .7; }
|
||||
.ctrl-counter { color: var(--muted); min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
|
||||
|
||||
.qr-overlay { position: fixed; inset: 0; background: var(--overlay-bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; cursor: zoom-out; z-index: 10; }
|
||||
|
||||
Reference in new issue
Block a user