@hypersocial/decks-cli 0.9.23 → 0.9.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/skills/hyperdecks/SKILL.md +113 -67
- package/skills/hyperdecks/chat.md +11 -8
- package/skills/hyperdecks/terminal.md +82 -0
- package/src/bars.mjs +268 -0
- package/src/brand.mjs +51 -8
- package/src/check.mjs +311 -15
- package/src/checkRules.mjs +616 -27
- package/src/commands.mjs +157 -28
- package/src/deckSlug.mjs +41 -0
- package/src/export-video.mjs +20 -3
- package/src/files.mjs +35 -0
- package/src/guide.mjs +91 -13
- package/src/hosted.mjs +18 -8
- package/src/iconAliasNames.mjs +70 -0
- package/src/iconChoice.mjs +97 -0
- package/src/iconSets.mjs +89 -0
- package/src/iconSlots.mjs +48 -0
- package/src/icons.mjs +285 -45
- package/src/iconsCli.mjs +76 -0
- package/src/layoutRoutes.mjs +92 -0
- package/src/layouts.mjs +4 -4
- package/src/mediaPreviews.mjs +3 -1
- package/src/narrate.mjs +31 -4
- package/src/opening.mjs +9 -3
- package/src/ops.mjs +49 -0
- package/src/photosGuide.mjs +47 -0
- package/src/picturesGuide.mjs +53 -0
- package/src/play.mjs +3 -2
- package/src/presenter.mjs +3 -1
- package/src/release.mjs +13 -5
- package/src/runtime.mjs +9 -2
- package/src/scaffold.mjs +73 -13
- package/src/source.mjs +86 -14
- package/src/stockMedia.mjs +299 -0
- package/src/themeCli.mjs +41 -0
- package/src/themes.mjs +345 -0
- package/templates/icons/material.LICENSE +202 -0
- package/templates/icons/material.json.gz +0 -0
- package/templates/icons/phosphor.LICENSE +21 -0
- package/templates/icons/phosphor.json.gz +0 -0
- package/templates/icons/tabler.LICENSE +21 -0
- package/templates/icons/tabler.json.gz +0 -0
- package/templates/layouts/_deck.html +177 -36
- package/templates/layouts/bento.html +75 -0
- package/templates/layouts/chart.html +6 -4
- package/templates/layouts/closer.html +10 -3
- package/templates/layouts/compare.html +13 -4
- package/templates/layouts/cover-band.html +10 -8
- package/templates/layouts/cover-frame.html +9 -7
- package/templates/layouts/cover-poster.html +8 -5
- package/templates/layouts/cover-split.html +7 -6
- package/templates/layouts/cover-type.html +1 -0
- package/templates/layouts/features.html +9 -7
- package/templates/layouts/funnel.html +60 -0
- package/templates/layouts/hero.html +40 -22
- package/templates/layouts/lanes.html +63 -0
- package/templates/layouts/loop.html +81 -0
- package/templates/layouts/number.html +2 -1
- package/templates/layouts/phone-stage.html +68 -0
- package/templates/layouts/phones.html +1 -0
- package/templates/layouts/picture-full.html +48 -0
- package/templates/layouts/portrait.html +45 -0
- package/templates/layouts/product.html +7 -6
- package/templates/layouts/quote.html +2 -1
- package/templates/layouts/rail.html +71 -0
- package/templates/layouts/scorecard.html +70 -0
- package/templates/layouts/screens.html +85 -0
- package/templates/layouts/sentence.html +39 -0
- package/templates/layouts/split.html +22 -7
- package/templates/layouts/spotlight.html +77 -0
- package/templates/layouts/stack.html +83 -0
- package/templates/layouts/staircase.html +76 -0
- package/templates/layouts/strike.html +46 -0
- package/templates/layouts/tap-through.html +73 -0
- package/templates/layouts/team.html +3 -2
- package/templates/layouts/timeline.html +16 -6
- package/templates/layouts/two-bars.html +53 -0
- package/templates/layouts/two-by-two.html +71 -0
- package/templates/layouts/video-beats.html +66 -0
- package/templates/layouts/video-full.html +62 -0
- package/templates/layouts/wall.html +81 -0
- package/templates/layouts/zoom.html +144 -0
- package/templates/narrated-deck.html +12 -7
- package/templates/script.md +2 -2
- /package/templates/icons/{LICENSE → lucide.LICENSE} +0 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
layout: video-beats
|
|
3
|
+
summary: A screen recording beside the two to four moments that matter, each with its timestamp; each moment lights up as the narration reaches it, while the clip plays.
|
|
4
|
+
brief: A recording beside two to four timestamped moments, each lit on its cue.
|
|
5
|
+
says: watch it work
|
|
6
|
+
needs: 1 recording
|
|
7
|
+
use: a demo with a few moments to point at (it finds the file, it fixes it, it ships). Its .clip is a placeholder check fails on: put in the recording (upload_deck_asset / `hyperdecks asset add`) as <video class="clip" src="…" autoplay muted loop playsinline>; it plays with the slide, silent under the narration, and moves in an export. The moments light on the narration's [reveal] cues, not on the video's clock: a looping, buffering or paused clip would drift from its timestamps, while a cue always lands on its word (and Per step waits on each). Write each moment's time as it appears in the clip, and say it in the script at that moment. Two to four moments: add or remove a .beat and its cue.
|
|
8
|
+
slot: bottom-right
|
|
9
|
+
presenter: stage
|
|
10
|
+
nopresenter: The moments centre in the row instead of keeping clear of the bottom-right corner.
|
|
11
|
+
cues: [look: #__ID__-clip] as the narration turns to the recording; [reveal: #__ID__-b1], [reveal: #__ID__-b2], [reveal: #__ID__-b3] as it names each moment (each lights; the ones before stay lit).
|
|
12
|
+
script: Here it is, running for real. [look: #__ID__-clip] First [reveal: #__ID__-b1] it finds the file. Then [reveal: #__ID__-b2] it fixes the error. And [reveal: #__ID__-b3] it ships.
|
|
13
|
+
-->
|
|
14
|
+
<style>
|
|
15
|
+
.l-video-beats { display: grid; grid-template-columns: minmax(0, 1fr) 420px; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "head head" "clip beats"; column-gap: 48px; row-gap: 28px; }
|
|
16
|
+
.l-video-beats .head { grid-area: head; display: flex; flex-direction: column; gap: 10px; }
|
|
17
|
+
.l-video-beats .tt { font-size: var(--t-sub); line-height: 1.02; }
|
|
18
|
+
.l-video-beats .clip { grid-area: clip; align-self: start; display: block; width: 100%; height: auto; max-height: 100%; aspect-ratio: 16 / 9; object-fit: contain; border: calc(3 * var(--line)) solid var(--ink); --frame-min: 556px; --shot-corner: min(calc(18 * var(--round)), (var(--frame-min) - 2 * var(--mat)) / 16); background: var(--ink); box-shadow: calc(12 * var(--drop-x)) calc(12 * var(--drop-y)) calc(12 * var(--drop-blur)) color-mix(in srgb, var(--accent) var(--drop-mix), transparent); }
|
|
19
|
+
.l-video-beats video.clip { aspect-ratio: auto; }
|
|
20
|
+
.on-accent.l-video-beats .clip { box-shadow: calc(12 * var(--drop-x)) calc(12 * var(--drop-y)) calc(12 * var(--drop-blur)) color-mix(in srgb, var(--accent-ink) var(--drop-mix), transparent); }
|
|
21
|
+
.l-video-beats div.clip { background: color-mix(in srgb, var(--paper) 10%, var(--ink)) repeating-linear-gradient(135deg, color-mix(in srgb, var(--paper) 8%, transparent) 0 2px, transparent 2px 22px); }
|
|
22
|
+
.l-video-beats .beats { grid-area: beats; align-self: start; list-style: none; display: flex; flex-direction: column; gap: 22px; }
|
|
23
|
+
/* A moment waits dimmed (not hidden: a deck without narration still reads them) and lights on its cue. */
|
|
24
|
+
.l-video-beats .beat.reveal { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: baseline; opacity: .45; transform: none; font-size: var(--t-body); line-height: 1.3; font-weight: 600; }
|
|
25
|
+
.l-video-beats .beat.reveal.is-revealed { opacity: 1; }
|
|
26
|
+
.l-video-beats .beat time { padding: 4px 12px; border-radius: calc(999 * var(--round)); border: calc(2 * var(--line)) solid currentColor; font: 700 var(--t-label) var(--mono); transition: background .5s, color .5s, border-color .5s; }
|
|
27
|
+
.l-video-beats .beat.is-revealed time { background: var(--ink); border-color: var(--ink); color: var(--paper); }
|
|
28
|
+
.on-ink.l-video-beats .beat.is-revealed time { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
|
|
29
|
+
@media (max-width: 650px) {
|
|
30
|
+
.l-video-beats { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "clip" "beats"; row-gap: 14px; }
|
|
31
|
+
.l-video-beats .head { gap: 6px; }
|
|
32
|
+
.l-video-beats .clip { justify-self: center; width: auto; max-width: 100%; max-height: 300px; border-width: calc(2 * var(--line)); --frame-min: 188px; --shot-corner: min(calc(10 * var(--round)), (var(--frame-min) - 2 * var(--mat)) / 16); box-shadow: calc(5 * var(--drop-x)) calc(5 * var(--drop-y)) calc(5 * var(--drop-blur)) color-mix(in srgb, var(--accent) var(--drop-mix), transparent); }
|
|
33
|
+
.l-video-beats div.clip { width: 100%; }
|
|
34
|
+
.on-accent.l-video-beats .clip { box-shadow: calc(5 * var(--drop-x)) calc(5 * var(--drop-y)) calc(5 * var(--drop-blur)) color-mix(in srgb, var(--accent-ink) var(--drop-mix), transparent); }
|
|
35
|
+
.l-video-beats .beats { gap: 8px; }
|
|
36
|
+
.l-video-beats .beat.reveal { column-gap: 10px; }
|
|
37
|
+
.l-video-beats .beat time { padding: 2px 8px; border-width: calc(1.5 * var(--line)); }
|
|
38
|
+
}
|
|
39
|
+
/* On a mat (a round theme, _deck.html): the clip's content box keeps 16:9 and shrinks by the mat, so the frame stays the
|
|
40
|
+
column's width and the ink letterbox (a content-box layer) never shows a band on the mat. */
|
|
41
|
+
@container not style(--shot-mat: 0px) {
|
|
42
|
+
.l-video-beats .clip { box-sizing: content-box; width: calc(100% - 2 * var(--mat)); max-height: calc(100% - 2 * var(--mat)); background: linear-gradient(var(--ink) 0 0) content-box, var(--card); }
|
|
43
|
+
.l-video-beats div.clip { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--paper) 8%, transparent) 0 2px, transparent 2px 22px) content-box, linear-gradient(color-mix(in srgb, var(--paper) 10%, var(--ink)) 0 0) content-box, var(--card); }
|
|
44
|
+
@media (max-width: 650px) {
|
|
45
|
+
.l-video-beats .clip { width: auto; max-width: calc(100% - 2 * var(--mat)); max-height: calc(300px - 2 * var(--mat)); }
|
|
46
|
+
.l-video-beats div.clip { width: calc(100% - 2 * var(--mat)); }
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
50
|
+
@media (min-width: 651px) {
|
|
51
|
+
:root.hd-no-presenter .l-video-beats .beats { align-self: center; }
|
|
52
|
+
}
|
|
53
|
+
</style>
|
|
54
|
+
<section class="slide l-video-beats" id="__ID__" data-chapter="Demo" data-note="Recording: name what it shows, the build and the date it was recorded.">
|
|
55
|
+
<div class="head">
|
|
56
|
+
<div class="kicker">Demo · Three moments</div>
|
|
57
|
+
<h2 class="tt" data-title-mobile="It fixes it itself.">It finds the problem and fixes it on its own.</h2>
|
|
58
|
+
</div>
|
|
59
|
+
<div class="clip" id="__ID__-clip" role="img" aria-label="Screen recording placeholder"></div>
|
|
60
|
+
<ol class="beats">
|
|
61
|
+
<li class="beat reveal" id="__ID__-b1"><time>0:04</time><span>It finds the file</span></li>
|
|
62
|
+
<li class="beat reveal" id="__ID__-b2"><time>0:11</time><span>It fixes the error</span></li>
|
|
63
|
+
<li class="beat reveal" id="__ID__-b3"><time>0:19</time><span>It ships</span></li>
|
|
64
|
+
</ol>
|
|
65
|
+
<div class="narration-slot"></div>
|
|
66
|
+
</section>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
layout: video-full
|
|
3
|
+
summary: A screen recording fills the slide: a 16:9 clip runs the full width over a solid bar holding the title and a small presenter; a narrower clip stands beside the bar on the right. Nothing sits on the recording.
|
|
4
|
+
brief: A recording fills the slide, the title and a small presenter on a bar under it (beside it for a tall clip).
|
|
5
|
+
says: watch it work
|
|
6
|
+
needs: 1 recording
|
|
7
|
+
use: a demo that should simply be watched (a 16:9 screen recording of the product doing the job). Its .clip is a placeholder check fails on: put in the recording (upload_deck_asset / `hyperdecks asset add`) as <video class="clip" src="…" poster="…" autoplay muted loop playsinline> (src a video file, poster a still image of it). It plays with the slide, silent under the narration, pauses when the slide is left, and moves in an export. The recording is shown whole and as recorded (contain on the slide's ground: a clip of another shape gets bands, never a crop), no tint, no filter. A 16:9 clip runs the full width over a 146px bar; a 4:3, square or portrait one stands at its own shape (as tall as the slide, as wide as the room beside the bar allows) beside the bar, which takes the rest (480px at least; release reads its shape; before release the layout assumes 16:9). The presenter is very small on this slide (its CSS sets --hd-presenter-scale) and stands at the bar's right end, never on the recording; keep the title short and the script short, and let the clip talk.
|
|
8
|
+
slot: bottom-right
|
|
9
|
+
presenter: stage
|
|
10
|
+
nopresenter: The bar's title centres in its height.
|
|
11
|
+
cues: [look: #__ID__-clip] as the narration turns to the recording; [play: #__ID__-clip] to start it on a word (then add data-hd-manual to the video).
|
|
12
|
+
script: Watch it do the whole job. [look: #__ID__-clip] No cuts, no edits, start to finish.
|
|
13
|
+
-->
|
|
14
|
+
<style>
|
|
15
|
+
/* The recording chooses by its own shape (--hd-ar, which release stamps on it; 16:9 until then): wider than 1.65:1
|
|
16
|
+
(a 16:9 screen recording) it runs the slide's full width over a 146px bar at its foot; narrower (4:3, square,
|
|
17
|
+
portrait) it stands at its own shape (as tall as the slide, as wide as the room allows) beside a bar on the right
|
|
18
|
+
that takes the rest (480px at least), where it shows larger. --wide is 1 or 0. The bar wraps
|
|
19
|
+
under the clip or sits beside it (flex-wrap), takes the slide's own ground (on-ink by default) and holds the
|
|
20
|
+
title; the presenter, small on this slide (--hd-presenter-scale; check reads it too), stands at the bar's
|
|
21
|
+
right end, so neither sits on the recording. */
|
|
22
|
+
.l-video-full { --bar: 146px; --hd-presenter-scale: .27; display: flex; flex-flow: row wrap; align-content: space-between; gap: 0; padding: 0; overflow: hidden; }
|
|
23
|
+
/* Shown whole: contain on the slide's ground, so a clip of another shape gets bands, never a crop. */
|
|
24
|
+
.l-video-full .clip { --wide: clamp(0, (var(--hd-ar, 16 / 9) - 1.65) * 1000, 1); display: block; flex: none; width: calc(100% - 480px * (1 - var(--wide))); height: calc(100% - var(--bar) * var(--wide)); min-height: 0; object-fit: contain; background: transparent;
|
|
25
|
+
}
|
|
26
|
+
/* A narrower clip's box takes its shape (up to the room beside the bar), so it stands flush with the bar and no band
|
|
27
|
+
shows on one side only; the bar takes what it leaves. A 16:9 clip keeps the full width (min-width 100%). */
|
|
28
|
+
@media not all and (max-width: 650px) {
|
|
29
|
+
.l-video-full .clip { width: auto; aspect-ratio: var(--hd-ar, 16 / 9); min-width: calc(100% * var(--wide)); max-width: calc(100% - 480px * (1 - var(--wide))); }
|
|
30
|
+
}
|
|
31
|
+
.l-video-full div.clip { background: color-mix(in srgb, var(--paper) 10%, var(--ink)) repeating-linear-gradient(135deg, color-mix(in srgb, var(--paper) 8%, transparent) 0 2px, transparent 2px 22px); }
|
|
32
|
+
/* Under a 16:9 clip two lines of title fit the bar (a 60-character title takes two), so a long one wraps and is never cut off. */
|
|
33
|
+
.l-video-full .bar { --t-sub: calc(40px * var(--display-scale)); flex: 1 1 480px; min-height: var(--bar); container-type: inline-size; display: flex; flex-direction: column; gap: 10px; padding: 18px 40px 0 36px; }
|
|
34
|
+
.l-video-full .tt { font-size: var(--t-sub); line-height: 1.02; }
|
|
35
|
+
/* Under the clip: one row, the title on the left, the presenter's room on the right. */
|
|
36
|
+
@container (min-width: 800px) {
|
|
37
|
+
.l-video-full .bar > * { max-width: calc(100% - 520px); }
|
|
38
|
+
}
|
|
39
|
+
.l-video-full .narration-slot { right: 32px; bottom: 4px; }
|
|
40
|
+
@media (max-width: 650px) {
|
|
41
|
+
/* Phones: the recording at its own shape across the card (up to 420px tall), the bar directly under it, centred as one block. */
|
|
42
|
+
.l-video-full { --hd-presenter-scale: initial; flex-flow: column nowrap; justify-content: center; padding: 0 0 170px; }
|
|
43
|
+
.l-video-full .clip { width: auto; }
|
|
44
|
+
.l-video-full .clip { flex: none; height: auto; max-height: 420px; }
|
|
45
|
+
.l-video-full div.clip { aspect-ratio: 16 / 9; }
|
|
46
|
+
.l-video-full .bar { --t-sub: calc(28px * var(--display-scale)); flex: none; min-height: 0; padding: 14px 20px 16px; }
|
|
47
|
+
.l-video-full .tt { font-size: var(--t-sub); line-height: 1.02; }
|
|
48
|
+
.l-video-full .narration-slot { right: 12px; bottom: 64px; }
|
|
49
|
+
}
|
|
50
|
+
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
51
|
+
@media (min-width: 651px) {
|
|
52
|
+
:root.hd-no-presenter .l-video-full .bar { justify-content: center; padding-top: 0; }
|
|
53
|
+
}
|
|
54
|
+
</style>
|
|
55
|
+
<section class="slide on-ink l-video-full" id="__ID__" data-chapter="Demo" data-presenter-size="s" data-note="Recording: name what it shows, the build and the date it was recorded.">
|
|
56
|
+
<div class="clip" id="__ID__-clip" role="img" aria-label="Screen recording placeholder"></div>
|
|
57
|
+
<div class="bar">
|
|
58
|
+
<div class="kicker">Demo · Unedited</div>
|
|
59
|
+
<h2 class="tt" data-title-mobile="Watch it work.">Watch it do the whole job, start to finish.</h2>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="narration-slot"></div>
|
|
62
|
+
</section>
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
layout: wall
|
|
3
|
+
summary: A wall of three to five pictures, one large, and one solid tile beside them for the sentence; the presenter sits at the tile's foot.
|
|
4
|
+
brief: Three to five photos, one large, and a solid tile for the sentence.
|
|
5
|
+
says: this is real
|
|
6
|
+
needs: 3 to 5 photos
|
|
7
|
+
use: people, an event, places, a set of things made: proof it happened, many times over. Each .pic is a placeholder check fails on: put in photos (`hyperdecks asset add`, upload_deck_asset; found ones: `hyperdecks photos add <id> --for wall`, deck_guide topic photos) as <img class="pic" src="…" alt="…" width="…" height="…">, the strongest first (it takes the large cell). On a wide screen the wall's cells are its shape, so each photo fills its cell (cover). Pick the cells for the set: by default they stand upright (about square with three photos, taller with four or five), for upright photos; for square photos write <div class="pics square"> (about square cells); for landscape photos <div class="pics wide"> (the large one across the top, the rest in a row under it, each about 16:9). check --layout warns when a cell crops a third of its photo and names the class; keep subjects near the middle, or set object-position on one. check asks to trim a photo's flat ground only when the trimmed photo still suits its cell; otherwise the cell crops the ground away. On a phone the photos stand in two columns at their own shapes, so nothing is cut. Three to five: in the default cells five fill two columns of two beside the large one, three keep one column and four let the last stand tall (so four upright photos crop the last one hard: use three or five, or square cells); square cells stand four as the large one beside a column of three; wide cells put every photo after the first in one row under it. Real photos only, never generated or stock stand-ins for real people or events. A caption (optional, any theme): wrap the picture as <figure class="mount" data-caption="Where, when">…</figure>; short (about 40 characters), never the alt text.
|
|
8
|
+
slot: bottom-right
|
|
9
|
+
presenter: stage
|
|
10
|
+
nopresenter: The tile's sentence centres in its height instead of keeping clear of the presenter at its foot.
|
|
11
|
+
cues: [look: #__ID__-wall] as the narration turns to the pictures; [go: #__ID__-p1] for the large one if the script names it, then [go: slot].
|
|
12
|
+
script: This is what it looks like in real life. [look: #__ID__-wall] Every one of these happened. [go: #__ID__-p1] This one was the first. [go: slot]
|
|
13
|
+
-->
|
|
14
|
+
<style>
|
|
15
|
+
.l-wall { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: 20px; }
|
|
16
|
+
.l-wall .pics { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); grid-template-columns: minmax(0, 2fr); grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 20px; min-height: 0; }
|
|
17
|
+
.l-wall .pic { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; border: calc(3 * var(--line)) solid var(--ink); --frame-min: 163px; border-radius: min(calc(18 * var(--round)), var(--frame-min) / 8); background: var(--card); }
|
|
18
|
+
.l-wall .pics > :is(.pic, .mount):first-child { grid-row: 1 / -1; }
|
|
19
|
+
/* Four pictures: the last stands tall, so no cell is left empty. */
|
|
20
|
+
.l-wall .pics:has(> :is(.pic, .mount):nth-child(4):last-child) > :is(.pic, .mount):last-child { grid-row: 1 / -1; }
|
|
21
|
+
/* The cells' shape is the author's, for the set's shape (wide screens only; a phone shows each picture at its own shape).
|
|
22
|
+
Default: upright cells, for upright photos. .pics.square: about square cells for square photos (a centred band, the
|
|
23
|
+
large one beside two or four; four stand as the large one beside a column of three). .pics.wide: the large one across
|
|
24
|
+
the top and the rest in a row under it, each about 16:9, the band as wide as the height allows. check --layout
|
|
25
|
+
warns when a cell crops a third of its picture and names the class. */
|
|
26
|
+
@media not all and (max-width: 650px) {
|
|
27
|
+
.l-wall .pics.square { align-self: center; aspect-ratio: 2; }
|
|
28
|
+
.l-wall .pics.square:not(:has(> :nth-child(4))) { aspect-ratio: 1.49; }
|
|
29
|
+
.l-wall .pics.square:has(> :nth-child(4):last-child) { align-self: stretch; aspect-ratio: auto; grid-template-columns: minmax(0, 3fr); grid-template-rows: repeat(3, minmax(0, 1fr)); }
|
|
30
|
+
.l-wall .pics.square:has(> :nth-child(4):last-child) > :is(.pic, .mount):last-child { grid-row: auto; }
|
|
31
|
+
.l-wall .pics.wide { align-self: center; justify-self: center; height: 100%; max-width: 100%; aspect-ratio: 1.4; grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: minmax(0, 4fr) minmax(0, 1fr); }
|
|
32
|
+
.l-wall .pics.wide:not(:has(> :nth-child(4))) { aspect-ratio: 1.163; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 2.04fr) minmax(0, 1fr); }
|
|
33
|
+
.l-wall .pics.wide:has(> :nth-child(4):last-child) { aspect-ratio: 1.31; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(0, 3.1fr) minmax(0, 1fr); }
|
|
34
|
+
.l-wall .pics.wide > :is(.pic, .mount):first-child { grid-row: 1; grid-column: 1 / -1; }
|
|
35
|
+
.l-wall .pics.wide:has(> :nth-child(4):last-child) > :is(.pic, .mount):last-child { grid-row: auto; }
|
|
36
|
+
}
|
|
37
|
+
/* A captioned photo (figure.mount) is the cell; the picture fills what its label leaves. */
|
|
38
|
+
.l-wall .pics > .mount { width: auto; }
|
|
39
|
+
.l-wall .mount > .pic { flex: 1 1 0; height: auto; }
|
|
40
|
+
.l-wall div.pic { background: color-mix(in srgb, var(--ink) 6%, var(--paper)) repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 10%, transparent) 0 2px, transparent 2px 22px); }
|
|
41
|
+
/* The tile: a solid ground for the words, its foot left to the presenter. */
|
|
42
|
+
.l-wall .tile { display: flex; flex-direction: column; gap: 16px; padding: 36px 32px; border-radius: calc(18 * var(--round)); background: var(--ink-ground); color: var(--ink-text); }
|
|
43
|
+
.on-ink.l-wall .tile { background: var(--accent); color: var(--accent-ink); }
|
|
44
|
+
.l-wall .tt { font-size: var(--t-sub); line-height: 1.02; }
|
|
45
|
+
.l-wall .lead { font-size: var(--t-body); }
|
|
46
|
+
@media (max-width: 650px) {
|
|
47
|
+
/* Phones: the tile's words first, then the photos. */
|
|
48
|
+
.l-wall { display: flex; flex-direction: column; gap: 12px; }
|
|
49
|
+
.l-wall .tile { order: -1; gap: 8px; padding: 0; border-radius: 0; background: none; color: inherit; }
|
|
50
|
+
.on-ink.l-wall .tile { background: none; color: inherit; }
|
|
51
|
+
/* Two columns (three for five photos), each photo at its own shape, the strongest first, at most two to a column
|
|
52
|
+
and 210px tall so the wall fits above the presenter: nothing is cut but a very tall one. It keeps its own height
|
|
53
|
+
(never squeezed into a third column off the card); the words sit directly above it. */
|
|
54
|
+
.l-wall .pics { flex: none; display: block; columns: 2; column-gap: 8px; }
|
|
55
|
+
.l-wall .pics:has(> :is(.pic, .mount):nth-child(5)) { columns: 3; }
|
|
56
|
+
.l-wall .pics > :is(.pic, .mount) { width: 100%; margin-bottom: 8px; break-inside: avoid; }
|
|
57
|
+
.l-wall .pic { height: auto; max-height: 210px; border-width: calc(2 * var(--line)); --frame-min: 41px; border-radius: min(calc(10 * var(--round)), var(--frame-min) / 8); }
|
|
58
|
+
.l-wall .mount > .pic { flex: none; }
|
|
59
|
+
.l-wall div.pic { aspect-ratio: 4 / 3; }
|
|
60
|
+
.l-wall div.pic:first-child { aspect-ratio: 1; }
|
|
61
|
+
}
|
|
62
|
+
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
63
|
+
@media (min-width: 651px) {
|
|
64
|
+
:root.hd-no-presenter .l-wall .tile { justify-content: center; }
|
|
65
|
+
}
|
|
66
|
+
</style>
|
|
67
|
+
<section class="slide l-wall" id="__ID__" data-chapter="In real life" data-note="Photos: say who took them, where and when, and that you may show the people in them.">
|
|
68
|
+
<div class="pics" id="__ID__-wall">
|
|
69
|
+
<div class="pic" id="__ID__-p1" role="img" aria-label="Photo placeholder: the strongest picture"></div>
|
|
70
|
+
<div class="pic" role="img" aria-label="Photo placeholder"></div>
|
|
71
|
+
<div class="pic" role="img" aria-label="Photo placeholder"></div>
|
|
72
|
+
<div class="pic" role="img" aria-label="Photo placeholder"></div>
|
|
73
|
+
<div class="pic" role="img" aria-label="Photo placeholder"></div>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="tile">
|
|
76
|
+
<div class="kicker">In real life</div>
|
|
77
|
+
<h2 class="tt" data-title-mobile="It happened.">Every one of these happened.</h2>
|
|
78
|
+
<p class="lead">One line on what the pictures prove.</p>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="narration-slot"></div>
|
|
81
|
+
</section>
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
layout: zoom
|
|
3
|
+
summary: A full screenshot with a magnifying lens held over the part that matters: the screenshot shows clean until its cue, then the lens appears on the spot and grows, showing it enlarged in its centre, its label just under the lens.
|
|
4
|
+
brief: A full screenshot with a magnifier over the part that matters.
|
|
5
|
+
says: look at this
|
|
6
|
+
needs: 1 screenshot
|
|
7
|
+
use: a detail too small to read in the whole screen (a number on a dashboard, a line in a settings page, a button on a phone screen). Both .shot elements are placeholders check fails on: put the same screenshot (capture_url / `hyperdecks screenshot <url>`) in both as <img class="shot" src="…" alt="…" width="…" height="…"> (the lens's copy with alt=""). Set the picture's shape on .pair as --ar (its width ÷ height, 1.6 by default; written as a decimal, so a phone screenshot under 1, like --ar: 0.46, stands beside the title) and aim the lens with three more: --zx and --zy, the spot's centre as percentages of the picture's width and height, and --zoom, how many times larger the lens shows it (2 to 4). The lens (360px across, most of the card's width on a phone) is centred on the spot, running past the picture's edge when the spot is near it or the picture is smaller than the lens, but never onto the title block above it (or, on a phone, the presenter's band below): there it moves down or up the least distance needed, the spot off-centre but inside it (keep the spot where the lens stays on the slide); its .pill (a few words) hangs just under it. Before its cue nothing is drawn on the screenshot; [go: lens] shows the lens there and grows it (a still, or reduced motion, shows it grown). On a silent deck (data-silent) there is no cue: the lens appears by itself a beat after the slide arrives. A landscape screenshot (a desktop page) shows largest; a phone screenshot works too. Capture at full resolution, at 2x for a desktop page: check warns when the lens would show the picture past 2.5 times its pixels on a 1440x900 retina screen.
|
|
8
|
+
slot: bottom-right
|
|
9
|
+
presenter: stage
|
|
10
|
+
nopresenter: The screenshot may run into the presenter's corner.
|
|
11
|
+
cues: [look: #__ID__-full] as the narration turns to the screen; [go: #__ID__-lens] when it names the detail, then [go: slot].
|
|
12
|
+
script: This is the whole dashboard. [look: #__ID__-full] But look closer, [go: #__ID__-lens] at the one number that moved. [go: slot]
|
|
13
|
+
-->
|
|
14
|
+
<style>
|
|
15
|
+
/* The title across the top; the screenshot under it, as large as its shape allows, keeping the presenter's corner
|
|
16
|
+
(bottom-right, 504px: the stage presenter's width and a gap) free. --lens: the magnifier's diameter. */
|
|
17
|
+
.l-zoom { --lens: 360px; display: flex; flex-direction: column; gap: 26px; }
|
|
18
|
+
.l-zoom .head { display: flex; flex-direction: column; gap: 10px; }
|
|
19
|
+
.l-zoom .tt { font-size: var(--t-sub); line-height: 1.02; }
|
|
20
|
+
.l-zoom .lead { font-size: var(--t-body); }
|
|
21
|
+
/* --fw: the screenshot's width as shown (the area's width, or its height at its shape --ar). */
|
|
22
|
+
.l-zoom .pair { --zx: 50%; --zy: 50%; --zoom: 3; --ar: 1.6; --fw: min(100cqw - 6px, (100cqh - 6px) * var(--ar)); flex: 1; min-height: 0; container-type: size; display: grid; grid-template-columns: minmax(0, 1fr); padding-right: 504px; align-items: start; }
|
|
23
|
+
/* The screenshot keeps its shape; .full is the lens's frame of reference (its percentages are the picture's). */
|
|
24
|
+
/* The screenshot fills .full: its shorter side is --fw, or --fw at its shape --ar, so its corner caps there (_deck.html), less both sides of a mat
|
|
25
|
+
(on a mat a landscape picture's shorter side is a little more than that: the cap errs small). */
|
|
26
|
+
.l-zoom .full { position: relative; justify-self: start; width: var(--fw); aspect-ratio: var(--ar); }
|
|
27
|
+
.l-zoom .full > .shot { display: block; width: 100%; height: 100%; border: calc(3 * var(--line)) solid var(--ink); --frame-min: min(var(--fw), var(--fw) / var(--ar)); --shot-corner: min(calc(16 * var(--round)), (var(--frame-min) - 2 * var(--mat)) / 16); object-fit: cover; background: var(--card); }
|
|
28
|
+
/* On a mat (a round theme, _deck.html): .full holds the mat in its padding, --fw across, so the screenshot and its mat
|
|
29
|
+
stay inside .full (and the slide's fit maths); the picture is .full's content box, the screenshot's shape, and the lens
|
|
30
|
+
lies over it alone (inset by the mat: its percentages are the picture's), showing the picture on the slide's ground,
|
|
31
|
+
not the mat. The screenshot's negative margin sets its mat over .full's padding: the round themes have no outline (--line: 0px).
|
|
32
|
+
Its corner takes split's cap as well as its own: a sixteenth of split's 300px frame, so a large zoom picture rounds no
|
|
33
|
+
more than split's (equal wherever that cap binds, as in Soft and Evening; a smaller picture caps at its own side). Split's drop sits under it. */
|
|
34
|
+
@container not style(--shot-mat: 0px) {
|
|
35
|
+
.l-zoom .pair { --fw: min(100cqw - 6px, (100cqh - 6px - 2 * var(--mat)) * var(--ar) + 2 * var(--mat)); }
|
|
36
|
+
.l-zoom .full { box-sizing: content-box; width: calc(var(--fw) - 2 * var(--mat)); padding: var(--mat); }
|
|
37
|
+
.l-zoom .full > .lens { inset: var(--mat); }
|
|
38
|
+
.l-zoom .full > .shot { box-sizing: content-box; margin: calc(-1 * var(--mat)); --shot-corner: min(calc(16 * var(--round)), (min(var(--frame-min), 300px) - 2 * var(--mat)) / 16); box-shadow: calc(14 * var(--drop-x)) calc(14 * var(--drop-y)) calc(14 * var(--drop-blur)) color-mix(in srgb, var(--accent) var(--drop-mix), transparent); }
|
|
39
|
+
.on-accent.l-zoom .full > .shot { box-shadow: calc(14 * var(--drop-x)) calc(14 * var(--drop-y)) calc(14 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
|
|
40
|
+
}
|
|
41
|
+
/* The ground the lens shows where it runs past the picture: the slide's own. */
|
|
42
|
+
.l-zoom { --ground: var(--paper); }
|
|
43
|
+
.on-accent.l-zoom { --ground: var(--accent-ground); }
|
|
44
|
+
.on-ink.l-zoom { --ground: var(--ink-ground); }
|
|
45
|
+
.on-tint.l-zoom { --ground: var(--tint-1); }
|
|
46
|
+
.on-tint-2.l-zoom { --ground: var(--tint-2); }
|
|
47
|
+
.on-tint-3.l-zoom { --ground: var(--tint-3); }
|
|
48
|
+
/* The lens lies over the whole picture (its percentages are the picture's), centred on the spot (--zx, --zy)
|
|
49
|
+
whatever the picture's shape: wherever the spot is nearer an edge than half the lens (always, on a picture
|
|
50
|
+
narrower or shorter than the lens), the lens runs past that edge, but never onto the words above the picture
|
|
51
|
+
or into the presenter's band on a phone. (--cx, --cy) is its centre: the spot, moved down or up the least
|
|
52
|
+
distance that keeps it off them (never more than half the lens), so the spot sits off-centre but inside the lens
|
|
53
|
+
and the enlarged view stays aligned to the spot. Above: the lens rises at most --rise past the picture's top (half
|
|
54
|
+
the gap under the title block). Below, on a phone: at most --sink past the picture's bottom. On a wide screen the
|
|
55
|
+
presenter stands in .pair's right padding; check --layout warns if the lens reaches it.
|
|
56
|
+
--L, its diameter. --rim, its outline: the theme's, never less than a fixed minimum (a theme with no outlines). */
|
|
57
|
+
.l-zoom { --rise: 13px; --sink: 10000px; }
|
|
58
|
+
.l-zoom .lens { --L: var(--lens); --rim: max(calc(5 * var(--line)), 3px);
|
|
59
|
+
--cx: var(--zx);
|
|
60
|
+
--cy: max(var(--L) / 2 - var(--rise), min(var(--zy), 100% + var(--sink) - var(--L) / 2));
|
|
61
|
+
position: absolute; inset: 0; pointer-events: none; transform-origin: var(--zx) var(--zy); scale: 1; transform: none; transition: scale .6s cubic-bezier(.16, 1, .3, 1), opacity .2s; }
|
|
62
|
+
/* The glass: the picture again, --zoom times larger about the spot, seen through a circle centred on the spot. Where
|
|
63
|
+
the enlarged picture ends inside the circle (a spot near an edge), the circle shows the slide's ground (the spread
|
|
64
|
+
shadow), never the slide behind or a blank card. */
|
|
65
|
+
.l-zoom .lens .glass { position: absolute; inset: 0; border-radius: calc(16 * var(--round)); background: var(--ground); box-shadow: 0 0 0 var(--L) var(--ground); clip-path: circle(calc(var(--L) / 2) at var(--cx) var(--cy)); }
|
|
66
|
+
.l-zoom .lens .glass > .shot { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom)); transform-origin: var(--zx) var(--zy); background: var(--card); }
|
|
67
|
+
/* The ring: the rim, and a lift under it, so the lens reads as a solid glass over the page in any theme. */
|
|
68
|
+
.l-zoom .lens .ring { position: absolute; left: var(--cx); top: var(--cy); width: var(--L); aspect-ratio: 1; translate: -50% -50%; border: var(--rim) solid var(--accent); border-radius: 50%; box-shadow: 0 0 0 calc(3 * var(--line)) var(--ink), 0 calc(10 * var(--lift)) calc(30 * var(--lift)) color-mix(in srgb, var(--ink) 28%, transparent), calc(12 * var(--drop-x)) calc(12 * var(--drop-y)) calc(12 * var(--drop-blur)) color-mix(in srgb, color-mix(in srgb, var(--ink) 30%, transparent) var(--drop-mix), transparent); }
|
|
69
|
+
.on-accent.l-zoom .lens .ring { border-color: var(--accent-ink); box-shadow: 0 0 0 calc(3 * var(--line)) var(--accent), 0 calc(10 * var(--lift)) calc(30 * var(--lift)) color-mix(in srgb, var(--ink) 28%, transparent), calc(12 * var(--drop-x)) calc(12 * var(--drop-y)) calc(12 * var(--drop-blur)) color-mix(in srgb, color-mix(in srgb, var(--ink) 30%, transparent) var(--drop-mix), transparent); }
|
|
70
|
+
/* The label hangs just under the lens's lower edge, outside it (never over what it magnifies), on one line where it
|
|
71
|
+
fits, lit with it (part of the cue's target). */
|
|
72
|
+
.l-zoom .lens .pill { position: absolute; left: var(--cx); top: calc(var(--cy) + var(--L) / 2 + 12px); translate: -50% 0; width: max-content; max-width: calc(var(--L) * 1.6); white-space: normal; text-align: center; transition: opacity .3s .25s; }
|
|
73
|
+
/* With the player at rest (before its [go]) nothing is drawn on the screenshot: the lens waits there, the spot's own
|
|
74
|
+
size and unseen. Its cue (.hd-focus) shows it and grows it there. A still shows it grown: no player, a thumbnail
|
|
75
|
+
([data-hyperdecks-thumb]), the print view ([data-hd-print-ready]) or print, and reduced motion. */
|
|
76
|
+
:root:not([data-hyperdecks-thumb], [data-hd-print-ready]) body[data-hd-ready] .l-zoom .lens:not(.hd-focus) { scale: calc(1 / var(--zoom)); opacity: 0; }
|
|
77
|
+
:root:not([data-hyperdecks-thumb], [data-hd-print-ready]) body[data-hd-ready] .l-zoom .lens:not(.hd-focus) .pill { opacity: 0; transition-delay: 0s; }
|
|
78
|
+
/* A silent deck (body.hd-silent: data-silent on the player script) has no cue to wait for: on the slide's arrival
|
|
79
|
+
(.is-active) the screenshot shows clean for a beat, then the lens appears there and grows, its label after it, as on
|
|
80
|
+
its cue. No transition on arrival (one would show the lens at once, over the beat). Reduced motion shows it at once. */
|
|
81
|
+
@keyframes l-zoom-lens-in { from { scale: calc(1 / var(--zoom)); opacity: 0; } }
|
|
82
|
+
@keyframes l-zoom-pill-in { from { opacity: 0; } }
|
|
83
|
+
:root:not([data-hyperdecks-thumb], [data-hd-print-ready]) body[data-hd-ready].hd-silent .l-zoom.is-active .lens:not(.hd-focus) { scale: 1; opacity: 1; transition: none; animation: l-zoom-lens-in .6s cubic-bezier(.16, 1, .3, 1) 1.2s backwards; }
|
|
84
|
+
:root:not([data-hyperdecks-thumb], [data-hd-print-ready]) body[data-hd-ready].hd-silent .l-zoom.is-active .lens:not(.hd-focus) .pill { opacity: 1; transition: none; animation: l-zoom-pill-in .3s 1.45s backwards; }
|
|
85
|
+
@media print {
|
|
86
|
+
.l-zoom .lens { scale: 1 !important; opacity: 1 !important; transition: none; }
|
|
87
|
+
.l-zoom .lens .pill { opacity: 1 !important; }
|
|
88
|
+
}
|
|
89
|
+
/* A portrait screenshot (--ar under 1, a phone screen): the title in a left column, the screenshot standing the
|
|
90
|
+
slide's full height beside it, so it is not a thin column under a wide title. */
|
|
91
|
+
.l-zoom:has(> .pair:is([style*="--ar: 0."], [style*="--ar:0."])) { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); column-gap: 56px; align-items: start; }
|
|
92
|
+
.l-zoom:has(> .pair:is([style*="--ar: 0."], [style*="--ar:0."])) .pair { height: 100%; }
|
|
93
|
+
.l-zoom div.shot { background:
|
|
94
|
+
linear-gradient(var(--accent) 0 0) 8% 10% / 30% 7% no-repeat,
|
|
95
|
+
linear-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 0 0) 8% 28% / 60% 3% no-repeat,
|
|
96
|
+
linear-gradient(var(--accent-2) 0 0) 50% 50% / 14% 14% no-repeat,
|
|
97
|
+
linear-gradient(color-mix(in srgb, var(--ink) 8%, transparent) 0 0) 8% 86% / 84% 20% no-repeat,
|
|
98
|
+
var(--paper); }
|
|
99
|
+
@media (prefers-reduced-motion: reduce) {
|
|
100
|
+
:root:not([data-hyperdecks-thumb], [data-hd-print-ready]) body[data-hd-ready] .l-zoom .lens:not(.hd-focus) { scale: 1; opacity: 1; }
|
|
101
|
+
:root:not([data-hyperdecks-thumb], [data-hd-print-ready]) body[data-hd-ready] .l-zoom .lens:not(.hd-focus) .pill { opacity: 1; }
|
|
102
|
+
:root:not([data-hyperdecks-thumb], [data-hd-print-ready]) body[data-hd-ready].hd-silent .l-zoom.is-active .lens:not(.hd-focus),
|
|
103
|
+
:root:not([data-hyperdecks-thumb], [data-hd-print-ready]) body[data-hd-ready].hd-silent .l-zoom.is-active .lens:not(.hd-focus) .pill { animation: none; }
|
|
104
|
+
}
|
|
105
|
+
@media (max-width: 650px) {
|
|
106
|
+
/* Phones: the title, then the screenshot across the card (a phone screenshot centred in it); the lens takes most
|
|
107
|
+
of the card's width (cqw: .pair's). */
|
|
108
|
+
.l-zoom, .l-zoom:has(> .pair:is([style*="--ar: 0."], [style*="--ar:0."])) { display: flex; align-items: stretch; gap: 12px; }
|
|
109
|
+
.l-zoom .pair, .l-zoom:has(> .pair:is([style*="--ar: 0."], [style*="--ar:0."])) .pair { height: auto; }
|
|
110
|
+
.l-zoom .head { gap: 6px; }
|
|
111
|
+
.l-zoom .pair { --fw: min(100cqw - 4px, 300px * var(--ar)); flex: none; container-type: inline-size; padding-right: 0; }
|
|
112
|
+
.l-zoom .pair:is([style*="--ar: 0."], [style*="--ar:0."]) { --fw: min(100cqw - 4px, 420px * var(--ar)); }
|
|
113
|
+
.l-zoom .full { justify-self: center; }
|
|
114
|
+
.l-zoom { --rise: 6px; --sink: 8px; }
|
|
115
|
+
.l-zoom .lens { --L: min(var(--lens), 60cqw); --rim: max(calc(3 * var(--line)), 2px); }
|
|
116
|
+
.l-zoom .full > .shot { border-width: calc(2 * var(--line)); --shot-corner: min(calc(8 * var(--round)), (var(--frame-min) - 2 * var(--mat)) / 16); }
|
|
117
|
+
.l-zoom .lens .ring { box-shadow: 0 0 0 calc(2 * var(--line)) var(--ink), 0 calc(4 * var(--lift)) calc(14 * var(--lift)) color-mix(in srgb, var(--ink) 28%, transparent), calc(5 * var(--drop-x)) calc(5 * var(--drop-y)) calc(5 * var(--drop-blur)) color-mix(in srgb, color-mix(in srgb, var(--ink) 30%, transparent) var(--drop-mix), transparent); }
|
|
118
|
+
.on-accent.l-zoom .lens .ring { box-shadow: 0 0 0 calc(2 * var(--line)) var(--accent), 0 calc(4 * var(--lift)) calc(14 * var(--lift)) color-mix(in srgb, var(--ink) 28%, transparent), calc(5 * var(--drop-x)) calc(5 * var(--drop-y)) calc(5 * var(--drop-blur)) color-mix(in srgb, color-mix(in srgb, var(--ink) 30%, transparent) var(--drop-mix), transparent); }
|
|
119
|
+
.l-zoom .lens .pill { top: calc(var(--cy) + var(--L) / 2 + 8px); }
|
|
120
|
+
/* On a mat, split's phone cap (its 167px frame) and drop. */
|
|
121
|
+
@container not style(--shot-mat: 0px) {
|
|
122
|
+
.l-zoom .full > .shot { --shot-corner: min(calc(8 * var(--round)), (min(var(--frame-min), 167px) - 2 * var(--mat)) / 16); box-shadow: calc(6 * var(--drop-x)) calc(6 * var(--drop-y)) calc(6 * var(--drop-blur)) color-mix(in srgb, var(--accent) var(--drop-mix), transparent); }
|
|
123
|
+
.on-accent.l-zoom .full > .shot { box-shadow: calc(6 * var(--drop-x)) calc(6 * var(--drop-y)) calc(6 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
127
|
+
@media (min-width: 651px) {
|
|
128
|
+
:root.hd-no-presenter .l-zoom .pair { padding-right: 0; }
|
|
129
|
+
}
|
|
130
|
+
</style>
|
|
131
|
+
<section class="slide l-zoom" id="__ID__" data-chapter="The product" data-note="Screenshot: name the page and the date it was captured.">
|
|
132
|
+
<div class="head">
|
|
133
|
+
<div class="kicker">The product · Up close</div>
|
|
134
|
+
<h2 class="tt" data-title-mobile="The number that moved.">One number on the page that moved.</h2>
|
|
135
|
+
<p class="lead">One line on why this part matters.</p>
|
|
136
|
+
</div>
|
|
137
|
+
<div class="pair" style="--ar: 1.6; --zx: 50%; --zy: 50%; --zoom: 3">
|
|
138
|
+
<div class="full" id="__ID__-full">
|
|
139
|
+
<div class="shot" role="img" aria-label="Screenshot placeholder"></div>
|
|
140
|
+
<div class="lens" id="__ID__-lens"><div class="glass"><div class="shot" role="img" aria-label="Screenshot placeholder, enlarged"></div></div><span class="ring" aria-hidden="true"></span><span class="pill">The part to read</span></div>
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
<div class="narration-slot"></div>
|
|
144
|
+
</section>
|
|
@@ -91,13 +91,15 @@ if(self!==top||/[?&](thumb|export)\b/.test(location.search))return;
|
|
|
91
91
|
function go(){if(d.readyState==="loading")return;d.removeEventListener("readystatechange",go);
|
|
92
92
|
var b=d.body,p=d.querySelector('script[src*="/player/v"][src*="/player.js"]');
|
|
93
93
|
if(!b||!p||d.getElementById("hd-open")||b.hasAttribute("data-hd-ready")||d.documentElement.hasAttribute("data-hyperdecks-thumb"))return;
|
|
94
|
-
var
|
|
94
|
+
var sv=p.getAttribute("data-silent"),mute=sv!==null&&!/^(false|0|no)$/i.test(sv)&&p.getAttribute("data-silent-presenter")==="hide"&&!p.getAttribute("data-manifest")&&!d.querySelector("section[data-clip]");
|
|
95
|
+
var o=d.createElement("div"),img=!mute&&p.getAttribute("data-presenter")!=="none"&&p.getAttribute("data-presenter-image");
|
|
95
96
|
o.id="hd-open";o.setAttribute("aria-hidden","true");
|
|
96
97
|
o.innerHTML='<div class="hdo-slide"></div><div class="hdo-card">'+(img?"<div class=\"hdo-buddy\"><div class=\"hdo-hop\"><div class=\"hdo-look\"><img src=\"\" alt=\"\"></div></div><div class=\"hdo-shadow\"></div><div class=\"hdo-think\"><i></i><i></i><i></i></div><span class=\"hdo-spark\" style=\"--x:-40px;--y:-30px\"></span><span class=\"hdo-spark\" style=\"--x:42px;--y:-34px\"></span><span class=\"hdo-spark\" style=\"--x:-30px;--y:10px\"></span><span class=\"hdo-spark\" style=\"--x:36px;--y:6px\"></span><span class=\"hdo-spark\" style=\"--x:0px;--y:-46px\"></span></div>":'')+'<div class="hdo-title"></div><div class="hdo-bar"><i></i></div><div class="hdo-step"></div></div>';
|
|
97
98
|
if(img){var i=o.querySelector(".hdo-buddy img");i.addEventListener("error",function(){var y=o.querySelector(".hdo-buddy");if(y)y.remove()});i.src=img}
|
|
98
99
|
o.querySelector(".hdo-title").textContent=(d.title||"").replace(/\s+/g," ").trim();
|
|
99
100
|
b.insertBefore(o,b.firstChild);(function(o){var b=document.body,d=document.documentElement;if(!o||!b)return;
|
|
100
101
|
if(self!==top||/[?&](thumb|export)\b/.test(location.search)||d.hasAttribute("data-hyperdecks-thumb")){o.remove();return}
|
|
102
|
+
var pic=o.querySelector(".hdo-slide img");if(pic){if(/^#(scene=|(?!1$)\d+$)/.test(location.hash||""))pic.remove();else pic.src=pic.getAttribute("data-src")}
|
|
101
103
|
var S={"page":[10,"Opening the deck…"],"player":[38,"Loading the player…"],"presenter":[62,"Waking up {name}…"],"narration":[84,"Getting the narration…"]},bar=o.querySelector(".hdo-bar i"),step=o.querySelector(".hdo-step"),who=o.getAttribute("data-name")||"the presenter",at=0,shown=false,done=false,mo;
|
|
102
104
|
var rm=window.matchMedia&&matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
103
105
|
function boot(){var s=S[b.getAttribute("data-hd-boot")];if(!s||s[0]<=at)return;at=s[0];bar.style.width=s[0]+"%";step.textContent=s[1].split("{name}").join(who)}
|
|
@@ -120,10 +122,11 @@ d.addEventListener("readystatechange",go);go()})();</script>
|
|
|
120
122
|
:root { --ink: #0b0b0f; --paper: #fafaf7; --accent: #ffda1b; --font: "Space Grotesk", system-ui, sans-serif; --mono: "Space Mono", ui-monospace, monospace;
|
|
121
123
|
--hd-ground: var(--accent); --hd-ground-ink: var(--ink); /* the loading state: the first slide's colours */ }
|
|
122
124
|
body { color: var(--ink); font-family: var(--font); --hd-font: var(--font); --hd-mono: var(--mono); }
|
|
123
|
-
|
|
124
|
-
.slide
|
|
125
|
+
/* A theme (hyperdecks theme list) sets the texture, the accent ground and the title style; these slides have no outlines or corners to reshape. */
|
|
126
|
+
.slide { display: flex; flex-direction: column; gap: 28px; padding: 64px 72px 56px; background: var(--texture, none), var(--paper); }
|
|
127
|
+
.slide.accent { background: var(--texture, none), var(--accent-ground, var(--accent)); color: var(--accent-ink, var(--ink)); }
|
|
125
128
|
.kicker { font: 18px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
|
|
126
|
-
.tt { font-family: var(--display, var(--font)); font-weight: var(--display-weight, 700); font-synthesis: none; font-size: 104px; line-height: .95; letter-spacing: var(--display-tracking, -.045em); margin: 0; text-wrap: balance; }
|
|
129
|
+
.tt { font-family: var(--display, var(--font)); font-weight: var(--display-weight, 700); font-style: var(--display-style, normal); text-transform: var(--display-case, none); font-synthesis: none; font-size: calc(104px * var(--display-scale, 1)); line-height: var(--display-leading, .95); letter-spacing: var(--display-tracking, -.045em); margin: 0; text-wrap: balance; }
|
|
127
130
|
.lead { font-size: 32px; line-height: 1.3; max-width: 30em; margin: 0; }
|
|
128
131
|
.content { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-right: 500px; }
|
|
129
132
|
/* The presenter glides to each slide's slot; slots alternate sides so the
|
|
@@ -135,7 +138,7 @@ d.addEventListener("readystatechange",go);go()})();</script>
|
|
|
135
138
|
.reveal.is-revealed { opacity: 1; }
|
|
136
139
|
@media (max-width: 650px) {
|
|
137
140
|
.slide { padding: 40px 20px 150px; }
|
|
138
|
-
.tt { font-size: 40px; }
|
|
141
|
+
.tt { font-size: calc(40px * var(--display-scale, 1)); }
|
|
139
142
|
.lead { font-size: 18px; }
|
|
140
143
|
.content, .slot-left .content { padding: 0; justify-content: flex-start; }
|
|
141
144
|
.narration-slot { right: 12px; left: 12px; bottom: 72px; }
|
|
@@ -153,7 +156,7 @@ d.addEventListener("readystatechange",go);go()})();</script>
|
|
|
153
156
|
over 28 characters. Every slide here carries one.
|
|
154
157
|
data-presenter-style: this slide's presenter (stage, bubble, glass, corner),
|
|
155
158
|
overriding the deck's on the player tag below. -->
|
|
156
|
-
<section class="slide accent" id="hello" data-chapter="Hello" data-intro="
|
|
159
|
+
<section class="slide accent" id="hello" data-chapter="Hello" data-intro="Welcome! Press play." data-note="Title slide: no facts.">
|
|
157
160
|
<div class="content">
|
|
158
161
|
<div class="kicker">__SLUG__</div>
|
|
159
162
|
<h1 class="tt" data-title-mobile="__TITLE__">__TITLE__</h1>
|
|
@@ -227,10 +230,12 @@ d.addEventListener("readystatechange",go);go()})();</script>
|
|
|
227
230
|
data-avatar), static (data-presenter-image) or none (captions only).
|
|
228
231
|
deck new, deck narrator and narrate write the narrator's face here
|
|
229
232
|
(data-presenter-from="narrator", so release follows a later narrator).
|
|
233
|
+
data-silent-presenter="hide": if this deck is made silent (data-silent),
|
|
234
|
+
it shows no presenter; set "show" to keep the face on a silent deck.
|
|
230
235
|
data-presenter-style: stage (large head, lower-third captions), bubble,
|
|
231
236
|
glass (frosted panel) or corner (small head, subtitles). -->
|
|
232
237
|
<script type="module" src="https://hyperdecks.ai/player/v1/player.js"
|
|
233
|
-
data-manifest="" data-stage="1600x900" data-presenter="none" data-presenter-style="__PRESENTER_STYLE__"></script>
|
|
238
|
+
data-manifest="" data-silent-presenter="hide" data-stage="1600x900" data-presenter="none" data-presenter-style="__PRESENTER_STYLE__"></script>
|
|
234
239
|
<!-- Slide controllers for anything the built-in cues don't cover:
|
|
235
240
|
<script type="module">
|
|
236
241
|
window.hyperdecks.register("point", {
|
package/templates/script.md
CHANGED
|
@@ -7,8 +7,8 @@ transition: drift
|
|
|
7
7
|
|
|
8
8
|
One `## <slide-id>` block per slide, in slide order; the id is the slide's
|
|
9
9
|
`<section id>` in index.html. Each sentence is one caption: keep it a short
|
|
10
|
-
phrase (4 to 85 characters, two lines in the bubble).
|
|
11
|
-
|
|
10
|
+
phrase (4 to 85 characters, two lines in the bubble). Keep the whole deck
|
|
11
|
+
under the 180 s cap above (about 10 to 25 s a slide). Holds: 0.4 s by default, `hold: 1.5` for a number, chart or reveal,
|
|
12
12
|
`hold: 2` on interactive slides. Stage tags become
|
|
13
13
|
cues at the word before them: [wave], [mood: excited], [reveal: #detail]
|
|
14
14
|
(replays from the start when the slide does; the head glances at it unless
|
|
File without changes
|