Add YouTube video slide type
CI / Deploy / test (push) Successful in 46s
CI / Deploy / deploy (push) Skipped

Admins paste a YouTube link (watch, youtu.be, shorts, live, embed).
The link is checked via oEmbed on save and with a "check link" button
(not found / not embeddable is rejected, unreachable saves with a
warning). Start time can be entered or is taken from the link's
timecode; autoplay is optional. The presenter embeds the video via
youtube-nocookie.com; participants get the link plus a share button
(Web Share API, falls back to copying).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-07 15:08:12 +01:00
1 parent 93aeae1884
commit 1c509e31c2
14 files changed
+972 -24

No files matched your search

+15
View File
@@ -145,6 +145,7 @@ h3 { font-size: 1.05rem; margin-top: 1.6em; }
.badge--type-scale { background: #fdeed8; color: #9a5a00; }
.badge--type-content { background: #e3eefb; color: #1f6bb0; }
.badge--type-quiz { background: #f1e3fb; color: #7a2fb0; }
.badge--type-youtube { background: #fde4e1; color: #b3261e; }
.message { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; cursor: pointer; background: var(--surface-2); border-left: 4px solid var(--muted); }
.message.success { border-color: var(--ok); }
@@ -225,6 +226,17 @@ textarea { resize: vertical; }
.type-card--scale { border-top-color: var(--c3); }
.type-card--content { border-top-color: var(--c4); }
.type-card--quiz { border-top-color: var(--c5); }
.type-card--youtube { border-top-color: #d93025; }
/* ---------------------------------------------------------------- slide form: youtube */
.youtube-status { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }
.youtube-status:empty { display: none; }
.youtube-status.is-ok { color: var(--ok); }
.youtube-status.is-error { color: var(--danger); }
.youtube-preview { margin: 0 0 16px; }
.youtube-preview iframe, .stage__media iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 8px; background: #000; }
.video-link { margin: 16px 0 12px; }
.share-field input { min-width: 0; }
/* ---------------------------------------------------------------- slide form: quiz answers */
.quiz-options { border: 0; padding: 0; margin: 0 0 16px; }
@@ -390,6 +402,9 @@ body.present {
.stage__type { text-transform: uppercase; letter-spacing: .12em; color: var(--c1); font-weight: 700; margin: 0 0 .6em; }
.stage__question { font-size: clamp(2rem, 4.5vw, 4rem); margin-bottom: .3em; }
.stage__description { font-size: clamp(1.1rem, 2vw, 1.6rem); color: var(--muted); white-space: pre-line; margin-top: 0; }
.stage__media { width: min(100%, calc(62vh * 16 / 9)); margin: 1vh auto 0; }
.stage--video .stage__question { font-size: clamp(1.5rem, 3vw, 2.6rem); }
.stage--video .stage__description { font-size: clamp(1rem, 1.6vw, 1.3rem); }
.stage--content .stage__description { color: var(--text); font-size: clamp(1.3rem, 2.6vw, 2.2rem); }
.stage__results { font-size: clamp(1rem, 1.8vw, 1.5rem); margin-top: 2vh; }
.stage--closed .stage__type::after { content: " · Abstimmung geschlossen"; color: var(--muted); }