@hypersocial/decks-cli 0.9.23 → 0.9.25

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.
Files changed (91) hide show
  1. package/package.json +1 -1
  2. package/skills/hyperdecks/SKILL.md +124 -67
  3. package/skills/hyperdecks/chat.md +11 -8
  4. package/skills/hyperdecks/terminal.md +83 -0
  5. package/src/bars.mjs +268 -0
  6. package/src/brand.mjs +51 -8
  7. package/src/check.mjs +333 -20
  8. package/src/checkRules.mjs +677 -27
  9. package/src/commands.mjs +171 -31
  10. package/src/deckSlug.mjs +41 -0
  11. package/src/embedCapture.mjs +126 -0
  12. package/src/embedSources.mjs +252 -0
  13. package/src/embedsGuide.mjs +36 -0
  14. package/src/export-video.mjs +20 -3
  15. package/src/files.mjs +36 -0
  16. package/src/guide.mjs +93 -13
  17. package/src/hosted.mjs +18 -8
  18. package/src/iconAliasNames.mjs +70 -0
  19. package/src/iconChoice.mjs +97 -0
  20. package/src/iconSets.mjs +89 -0
  21. package/src/iconSlots.mjs +48 -0
  22. package/src/icons.mjs +285 -45
  23. package/src/iconsCli.mjs +76 -0
  24. package/src/layoutRoutes.mjs +97 -0
  25. package/src/layouts.mjs +9 -4
  26. package/src/mediaPreviews.mjs +3 -1
  27. package/src/narrate.mjs +31 -4
  28. package/src/opening.mjs +9 -3
  29. package/src/ops.mjs +125 -0
  30. package/src/photosGuide.mjs +47 -0
  31. package/src/picturesGuide.mjs +54 -0
  32. package/src/play.mjs +3 -2
  33. package/src/presenter.mjs +3 -1
  34. package/src/preview-capture.mjs +70 -1
  35. package/src/release.mjs +13 -5
  36. package/src/runtime.mjs +9 -2
  37. package/src/scaffold.mjs +73 -13
  38. package/src/source.mjs +86 -14
  39. package/src/stockMedia.mjs +299 -0
  40. package/src/themeCli.mjs +41 -0
  41. package/src/themes.mjs +345 -0
  42. package/templates/icons/material.LICENSE +202 -0
  43. package/templates/icons/material.json.gz +0 -0
  44. package/templates/icons/phosphor.LICENSE +21 -0
  45. package/templates/icons/phosphor.json.gz +0 -0
  46. package/templates/icons/tabler.LICENSE +21 -0
  47. package/templates/icons/tabler.json.gz +0 -0
  48. package/templates/layouts/_deck.html +231 -41
  49. package/templates/layouts/bento.html +76 -0
  50. package/templates/layouts/chart.html +6 -4
  51. package/templates/layouts/closer.html +13 -4
  52. package/templates/layouts/compare.html +13 -4
  53. package/templates/layouts/cover-band.html +13 -9
  54. package/templates/layouts/cover-frame.html +13 -7
  55. package/templates/layouts/cover-poster.html +9 -5
  56. package/templates/layouts/cover-split.html +19 -7
  57. package/templates/layouts/cover-type.html +2 -1
  58. package/templates/layouts/embed.html +93 -0
  59. package/templates/layouts/features.html +18 -10
  60. package/templates/layouts/funnel.html +62 -0
  61. package/templates/layouts/hero.html +41 -23
  62. package/templates/layouts/lanes.html +63 -0
  63. package/templates/layouts/loop.html +81 -0
  64. package/templates/layouts/number.html +3 -2
  65. package/templates/layouts/phone-stage.html +78 -0
  66. package/templates/layouts/phones.html +1 -0
  67. package/templates/layouts/picture-full.html +58 -0
  68. package/templates/layouts/portrait.html +53 -0
  69. package/templates/layouts/product.html +7 -6
  70. package/templates/layouts/quote.html +5 -3
  71. package/templates/layouts/rail.html +74 -0
  72. package/templates/layouts/scorecard.html +71 -0
  73. package/templates/layouts/screens.html +85 -0
  74. package/templates/layouts/sentence.html +39 -0
  75. package/templates/layouts/split.html +35 -7
  76. package/templates/layouts/spotlight.html +80 -0
  77. package/templates/layouts/stack.html +84 -0
  78. package/templates/layouts/staircase.html +78 -0
  79. package/templates/layouts/strike.html +46 -0
  80. package/templates/layouts/tap-through.html +73 -0
  81. package/templates/layouts/team.html +21 -6
  82. package/templates/layouts/timeline.html +21 -8
  83. package/templates/layouts/two-bars.html +53 -0
  84. package/templates/layouts/two-by-two.html +75 -0
  85. package/templates/layouts/video-beats.html +66 -0
  86. package/templates/layouts/video-full.html +62 -0
  87. package/templates/layouts/wall.html +109 -0
  88. package/templates/layouts/zoom.html +144 -0
  89. package/templates/narrated-deck.html +12 -7
  90. package/templates/script.md +2 -2
  91. /package/templates/icons/{LICENSE → lucide.LICENSE} +0 -0
@@ -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 o=d.createElement("div"),img=p.getAttribute("data-presenter")!=="none"&&p.getAttribute("data-presenter-image");
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
- .slide { display: flex; flex-direction: column; gap: 28px; padding: 64px 72px 56px; background: var(--paper); }
124
- .slide.accent { background: var(--accent); }
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="Hi! Press play." data-note="Title slide: no facts.">
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", {
@@ -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). Aim for 150 to 180 s in
11
- all. Holds: 0.4 s by default, `hold: 1.5` for a number, chart or reveal,
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