@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.
- package/package.json +1 -1
- package/skills/hyperdecks/SKILL.md +124 -67
- package/skills/hyperdecks/chat.md +11 -8
- package/skills/hyperdecks/terminal.md +83 -0
- package/src/bars.mjs +268 -0
- package/src/brand.mjs +51 -8
- package/src/check.mjs +333 -20
- package/src/checkRules.mjs +677 -27
- package/src/commands.mjs +171 -31
- package/src/deckSlug.mjs +41 -0
- package/src/embedCapture.mjs +126 -0
- package/src/embedSources.mjs +252 -0
- package/src/embedsGuide.mjs +36 -0
- package/src/export-video.mjs +20 -3
- package/src/files.mjs +36 -0
- package/src/guide.mjs +93 -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 +97 -0
- package/src/layouts.mjs +9 -4
- package/src/mediaPreviews.mjs +3 -1
- package/src/narrate.mjs +31 -4
- package/src/opening.mjs +9 -3
- package/src/ops.mjs +125 -0
- package/src/photosGuide.mjs +47 -0
- package/src/picturesGuide.mjs +54 -0
- package/src/play.mjs +3 -2
- package/src/presenter.mjs +3 -1
- package/src/preview-capture.mjs +70 -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 +231 -41
- package/templates/layouts/bento.html +76 -0
- package/templates/layouts/chart.html +6 -4
- package/templates/layouts/closer.html +13 -4
- package/templates/layouts/compare.html +13 -4
- package/templates/layouts/cover-band.html +13 -9
- package/templates/layouts/cover-frame.html +13 -7
- package/templates/layouts/cover-poster.html +9 -5
- package/templates/layouts/cover-split.html +19 -7
- package/templates/layouts/cover-type.html +2 -1
- package/templates/layouts/embed.html +93 -0
- package/templates/layouts/features.html +18 -10
- package/templates/layouts/funnel.html +62 -0
- package/templates/layouts/hero.html +41 -23
- package/templates/layouts/lanes.html +63 -0
- package/templates/layouts/loop.html +81 -0
- package/templates/layouts/number.html +3 -2
- package/templates/layouts/phone-stage.html +78 -0
- package/templates/layouts/phones.html +1 -0
- package/templates/layouts/picture-full.html +58 -0
- package/templates/layouts/portrait.html +53 -0
- package/templates/layouts/product.html +7 -6
- package/templates/layouts/quote.html +5 -3
- package/templates/layouts/rail.html +74 -0
- package/templates/layouts/scorecard.html +71 -0
- package/templates/layouts/screens.html +85 -0
- package/templates/layouts/sentence.html +39 -0
- package/templates/layouts/split.html +35 -7
- package/templates/layouts/spotlight.html +80 -0
- package/templates/layouts/stack.html +84 -0
- package/templates/layouts/staircase.html +78 -0
- package/templates/layouts/strike.html +46 -0
- package/templates/layouts/tap-through.html +73 -0
- package/templates/layouts/team.html +21 -6
- package/templates/layouts/timeline.html +21 -8
- package/templates/layouts/two-bars.html +53 -0
- package/templates/layouts/two-by-two.html +75 -0
- package/templates/layouts/video-beats.html +66 -0
- package/templates/layouts/video-full.html +62 -0
- package/templates/layouts/wall.html +109 -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,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020-2026 Paweł Kuna
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
Binary file
|
|
@@ -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)}
|
|
@@ -123,27 +125,59 @@ d.addEventListener("readystatechange",go);go()})();</script>
|
|
|
123
125
|
--ink: #0b0b0f; --paper: #fafaf7; --accent: #ffda1b; --accent-2: #27ceff; --accent-3: #ff9ec7; --card: #ffffff;
|
|
124
126
|
--font: "Space Grotesk", system-ui, sans-serif; --mono: "Space Mono", ui-monospace, monospace;
|
|
125
127
|
/* The type scale: one display size per slide at most, then title, sub (a title beside a visual), lead, body, label. */
|
|
126
|
-
--t-display: 128px; --t-title: 84px; --t-sub: 56px; --t-lead: 30px; --t-body: 24px; --t-label: 17px;
|
|
128
|
+
--t-display: calc(128px * var(--display-scale)); --t-title: calc(84px * var(--display-scale)); --t-sub: calc(56px * var(--display-scale)); --t-lead: 30px; --t-body: 24px; --t-label: 17px;
|
|
127
129
|
/* The text colour on an accent ground. A brand with a dark accent sets it to its paper. */
|
|
128
130
|
--accent-ink: var(--ink);
|
|
129
131
|
--hd-ground: var(--accent); --hd-ground-ink: var(--ink); /* the loading state: the first slide's colours */
|
|
130
132
|
/* Soft grounds (on-tint, on-tint-2, on-tint-3): washes of the accents, so slide changes read without going loud. */
|
|
131
133
|
--tint-1: color-mix(in srgb, var(--accent) 18%, var(--paper)); --tint-2: color-mix(in srgb, var(--accent-2) 20%, var(--paper)); --tint-3: color-mix(in srgb, var(--accent-3, var(--accent)) 24%, var(--paper));
|
|
134
|
+
/* The theme (hyperdecks theme list; deck new --theme; theme set swaps these). Every layout
|
|
135
|
+
multiplies these units, so the values below (House) are the template's own look:
|
|
136
|
+
outlines (--line), corners (--round, --round-phone for phones), hard shadows (--drop-*:
|
|
137
|
+
x, y, blur and how much of the colour shows), soft lifts (--lift) and tilt (--tilt-k). */
|
|
138
|
+
--line: 1px; --round: 1px; --round-phone: 1px; --drop-x: 1px; --drop-y: 1px; --drop-blur: 0px; --drop-mix: 100%; --lift: 1px; --tilt-k: 1;
|
|
139
|
+
/* Titles: weight and tracking (above, from the brand), style, case, leading and a size factor on the display, title and sub sizes. */
|
|
140
|
+
--display-style: normal; --display-case: none; --display-leading: .95; --display-scale: 1;
|
|
141
|
+
/* Grounds: what .on-accent and .on-ink paint (a quiet theme maps the accent to a tint), and a texture under every slide. */
|
|
142
|
+
--accent-ground: var(--accent); --ink-ground: var(--ink); --texture: none;
|
|
143
|
+
/* Photos (img.pic, .art, .face, .avatar, .photo; never a .shot or a .clip): a filter and blend; a framed one's mount
|
|
144
|
+
(--photo-card, a border-image --photo-mount wide on the sides and --photo-mount-foot below) and alternating tilt;
|
|
145
|
+
an edge-to-edge one's mask (--photo-edge). Chart marks. The text on an on-ink ground. */
|
|
146
|
+
--photo-filter: none; --photo-blend: normal; --photo-mount: 0px; --photo-mount-foot: 0px; --photo-card: none; --photo-mounted: 0; --photo-window: 0px; --photo-tilt: none; --photo-tilt-2: none; --photo-edge: none;
|
|
147
|
+
/* A screenshot or clip's mat (screens and split's .shot.wide, video-beats' .clip, zoom's screenshot): its thickness, 0px for none. */
|
|
148
|
+
--shot-mat: 0px;
|
|
149
|
+
/* A moving film over the player's stage (Carousel's projector): --film 1 draws it; a grain tile, a dust layer, a flicker. */
|
|
150
|
+
--film: 0; --film-grain: none; --film-dust: none; --film-flicker: 0;
|
|
151
|
+
/* The room's sound (Carousel's projector, the player's sound.js): a click on each slide change and a whir under the narration, each its level (a gain, 0 for off). */
|
|
152
|
+
--projector-click: 0; --projector-whir: 0;
|
|
153
|
+
--bar-round: 10px; --grid: currentColor; --ink-text: var(--paper);
|
|
154
|
+
/* A photo's caption (figure.mount[data-caption]): placed under the picture (static) or on the mount's foot (absolute). */
|
|
155
|
+
--caption-at: static; --caption-gap: 10px; --caption-font: var(--mono); --caption-ink: inherit; --caption-align: start;
|
|
156
|
+
/* The presenter's speech bubble on each ground, its ink, and how much of the ink its outline is. */
|
|
157
|
+
--speech: #f3c9dc; --speech-on-accent: #ffffff; --speech-on-ink: #d9ccff; --speech-on-tint: #ffffff; --speech-ink: #0b0b0f; --speech-edge: 100%;
|
|
158
|
+
/* The player's buttons and end card. */
|
|
159
|
+
--hd-ink: #0b0b0f; --hd-paper: #ffffff; --hd-accent: #ffda1b;
|
|
160
|
+
/* Icons (.icon): the line's weight, the tile behind the icon and the icon's colour (transparent and currentColor:
|
|
161
|
+
a bare icon), the same two on an accent ground or card, the tile's padding (a share of the icon's side) and an
|
|
162
|
+
outline in --line units, a duotone icon's second tone (drawn at 20%), and how much larger features' tile is at the stage. */
|
|
163
|
+
--icon-stroke: 2; --icon-tile: var(--accent); --icon-ink: var(--accent-ink); --icon-tile-accent: var(--card); --icon-ink-accent: var(--ink); --icon-pad: .22; --icon-edge: 2; --icon-duo: currentColor; --icon-on-card: initial; --icon-scale: 1;
|
|
132
164
|
}
|
|
133
165
|
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
134
166
|
body { color: var(--ink); font-family: var(--font); font-weight: 500; -webkit-font-smoothing: antialiased; --hd-font: var(--font); --hd-mono: var(--mono); }
|
|
135
|
-
/* The caption bubble is
|
|
167
|
+
/* The caption bubble is the theme's light fill with dark ink (--speech*), so it reads whatever the
|
|
136
168
|
brand's --card or --ink (a dark brand's card is dark). A slide can still set its own. */
|
|
137
|
-
.slide { display: flex; flex-direction: column; gap: 24px; padding: 64px 72px 56px; background: var(--paper); color: var(--ink); --hd-speech:
|
|
138
|
-
.slide.on-accent { background: var(--accent); color: var(--accent-ink); --hd-speech:
|
|
139
|
-
.slide.on-ink { background: var(--ink); color: var(--
|
|
140
|
-
.slide.on-tint { background: var(--tint-1); --hd-speech:
|
|
141
|
-
.slide.on-tint-2 { background: var(--tint-2); --hd-speech:
|
|
142
|
-
.slide.on-tint-3 { background: var(--tint-3); --hd-speech:
|
|
169
|
+
.slide { display: flex; flex-direction: column; gap: 24px; padding: 64px 72px 56px; background: var(--texture), var(--paper); color: var(--ink); --hd-speech: var(--speech); --hd-speech-ink: var(--speech-ink); }
|
|
170
|
+
.slide.on-accent { background: var(--texture), var(--accent-ground); color: var(--accent-ink); --hd-speech: var(--speech-on-accent); }
|
|
171
|
+
.slide.on-ink { background: var(--texture), var(--ink-ground); color: var(--ink-text); --hd-speech: var(--speech-on-ink); }
|
|
172
|
+
.slide.on-tint { background: var(--texture), var(--tint-1); --hd-speech: var(--speech-on-tint); }
|
|
173
|
+
.slide.on-tint-2 { background: var(--texture), var(--tint-2); --hd-speech: var(--speech-on-tint); }
|
|
174
|
+
.slide.on-tint-3 { background: var(--texture), var(--tint-3); --hd-speech: var(--speech-on-tint); }
|
|
175
|
+
/* The bubble's outline: --speech-edge of its ink over its fill (100%: a hard ink edge; 0%: none). */
|
|
176
|
+
.hd-caption, .hd-guest-bubble { --hd-speech-edge: color-mix(in srgb, var(--hd-speech-text) var(--speech-edge), var(--hd-speech-fill)); }
|
|
143
177
|
.kicker { font: var(--t-label) var(--mono); letter-spacing: .16em; text-transform: uppercase; }
|
|
144
178
|
/* Titles take the display face's weight and tracking (brand.mjs sets them for a face the
|
|
145
179
|
template was not tuned for) and never fake a weight the face lacks. */
|
|
146
|
-
.tt { font-family: var(--display, var(--font)); font-weight: var(--display-weight, 700); font-synthesis: none; font-size: var(--t-title); line-height:
|
|
180
|
+
.tt { font-family: var(--display, var(--font)); font-weight: var(--display-weight, 700); font-style: var(--display-style); text-transform: var(--display-case); font-synthesis: none; font-size: var(--t-title); line-height: var(--display-leading); letter-spacing: var(--display-tracking, -.045em); text-wrap: balance; }
|
|
147
181
|
.lead { font-size: var(--t-lead); line-height: 1.3; max-width: 28em; text-wrap: pretty; }
|
|
148
182
|
.muted { opacity: .65; }
|
|
149
183
|
/* The presenter glides to each slide's slot: bottom-right by default,
|
|
@@ -151,12 +185,98 @@ d.addEventListener("readystatechange",go);go()})();</script>
|
|
|
151
185
|
.narration-slot { position: absolute; right: 56px; bottom: 64px; }
|
|
152
186
|
.slot-left .narration-slot { right: auto; left: 56px; }
|
|
153
187
|
.slot-top .narration-slot { top: 96px; bottom: auto; }
|
|
188
|
+
/* A flipped slide (data-flip, a side-panel layout mirrored) takes the other bottom corner, so the presenter follows
|
|
189
|
+
its panel. Wide screens only: a phone keeps the presenter at the foot. */
|
|
190
|
+
@media (min-width: 651px) {
|
|
191
|
+
.slide[data-flip]:not(.slot-left) .narration-slot { right: auto; left: 56px; }
|
|
192
|
+
.slide.slot-left[data-flip] .narration-slot { left: auto; right: 56px; }
|
|
193
|
+
}
|
|
154
194
|
/* No presenter (no face AND no captions, e.g. presenter none on a
|
|
155
195
|
data-silent deck; or forced off by setPresenterOff): the player puts
|
|
156
196
|
.hd-no-presenter on the root and hides the slot, each layout's
|
|
157
197
|
no-presenter variant (:root.hd-no-presenter .l-…) uses the corner, and on
|
|
158
|
-
phones the slide drops its
|
|
198
|
+
phones the slide drops its 200px bottom padding (below). Keep custom slides
|
|
159
199
|
compatible: leave the corner to .narration-slot, no hard-coded right gutter. */
|
|
200
|
+
/* Photos take the theme's treatment; a screenshot or a recording (.shot, .clip) never does. */
|
|
201
|
+
.slide { --mount-side: calc(var(--photo-mount) * var(--mount-k, 1)); --mount-foot: calc(var(--photo-mount-foot) * var(--mount-k, 1)); }
|
|
202
|
+
.slide :is(img.pic, img.art, img.face, img.avatar, img.photo):not(.shot, .clip, [data-as-is]) { filter: var(--photo-filter); mix-blend-mode: var(--photo-blend); }
|
|
203
|
+
/* A picture's corner never eats it: a frame that holds a photo or art rounds at most an eighth of its shorter side,
|
|
204
|
+
a screenshot or clip a sixteenth (its corners hold interface). CSS cannot read a frame's own shorter side for a
|
|
205
|
+
circle, so each layout names the shortest side it draws the frame at (--frame-min, for its ordinary pictures; a
|
|
206
|
+
wide variant such as .art.wide names its own) and caps the theme's corner there:
|
|
207
|
+
border-radius: min(calc(N * var(--round)), var(--frame-min) / 8) (/ 16 for a screenshot or clip). check --layout
|
|
208
|
+
warns past the limit. Phone screens keep a phone's corner; the laptop's screen (a small corner on a large frame) needs no cap. */
|
|
209
|
+
/* A screenshot or clip on a mat: where a theme has one (--shot-mat over 0px: the round themes), the frame is padded
|
|
210
|
+
--mat thick in the theme's card, the roundness on the mat and the screenshot keeping its own small corner (a replaced
|
|
211
|
+
element's content is clipped to its content-box curve), the two curves concentric. Each matted frame names its own
|
|
212
|
+
corner (--shot-corner, capped at a sixteenth of its --frame-min less both sides of the mat, so the cap holds on the screenshot)
|
|
213
|
+
and the mat's outer corner is the mat plus it. On a phone the mat is half as thick. Where --shot-mat is 0px (or the
|
|
214
|
+
browser has no style queries) the frame is as it was: no padding, its own corner. A clip and zoom's screenshot keep
|
|
215
|
+
their shape inside the mat (their layouts). product's browser frame is not matted: its bar is its mat. */
|
|
216
|
+
.slide :is(.l-screens .shot.wide, .l-split .shot.wide, .l-video-beats .clip, .l-zoom .full > .shot) { border-radius: var(--shot-corner); }
|
|
217
|
+
.slide { --mat: 0px; }
|
|
218
|
+
@container not style(--shot-mat: 0px) {
|
|
219
|
+
.slide { --mat: calc(var(--shot-mat, 0px) * var(--mount-k, 1)); }
|
|
220
|
+
.slide :is(.l-screens .shot.wide, .l-split .shot.wide, .l-video-beats .clip, .l-zoom .full > .shot) { padding: var(--mat); background-color: var(--card); border-radius: calc(var(--mat) + var(--shot-corner)); }
|
|
221
|
+
}
|
|
222
|
+
/* A framed photo sits in the theme's mount, inside its own box: the picture shrinks into its padding's window and a
|
|
223
|
+
border-image paints the card in that padding, the foot deeper; where a theme mounts photos (--photo-mounted: 1) the
|
|
224
|
+
picture's corners are rounded to --photo-window (a replaced element's content is clipped to its content-box curve),
|
|
225
|
+
showing the card's rounded window under them. So a mount never grows past the picture's frame into a neighbour or
|
|
226
|
+
the slide's padding. Its tilt alternates among sibling photos and from slide to slide (a figure.mount tilts in its place; portrait keeps its own; the wall, a grid, none). A photo that
|
|
227
|
+
runs to the slide's edge (picture-full and the cover-band, -split and -poster art) has no mount and no tilt:
|
|
228
|
+
--photo-edge masks it. data-as-is on a picture opts it out of the theme's treatment (an illustration whose colour matters). */
|
|
229
|
+
.slide:not(.l-picture-full, .l-cover-band, .l-cover-split, .l-cover-poster) :is(img.pic, img.art, img.photo):not(.shot, .clip, [data-as-is]) { padding: var(--mount-side) var(--mount-side) var(--mount-foot); border-image: var(--photo-card); border-image-width: calc(var(--mount-side) / .6) calc(var(--mount-side) / .6) calc(var(--mount-foot) / .8) calc(var(--mount-side) / .6); }
|
|
230
|
+
/* A frame that names no --frame-min keeps the mount's whole window. */
|
|
231
|
+
:where(.slide) :where(img.pic, img.art, img.photo) { --frame-min: 1600px; }
|
|
232
|
+
@container style(--photo-mounted: 1) {
|
|
233
|
+
.slide:not(.l-picture-full, .l-cover-band, .l-cover-split, .l-cover-poster) :is(img.pic, img.art, img.photo):not(.shot, .clip, [data-as-is]) { --window: min(var(--photo-window), var(--frame-min) / 8); border-radius: calc(var(--mount-side) + var(--window)) / calc(var(--mount-side) + var(--window)) calc(var(--mount-side) + var(--window)) calc(var(--mount-foot) + var(--window)) calc(var(--mount-foot) + var(--window)); }
|
|
234
|
+
}
|
|
235
|
+
.slide:is(.l-picture-full, .l-cover-band, .l-cover-split, .l-cover-poster) :is(img.pic, img.art):not(.shot, .clip, [data-as-is]) { -webkit-mask-image: var(--photo-edge); mask-image: var(--photo-edge); }
|
|
236
|
+
:where(.slide:not(.l-picture-full, .l-cover-band, .l-cover-split, .l-cover-poster, .l-portrait, .l-wall)) :is(img.pic, img.art, img.photo, figure.mount):not(.shot, .clip, [data-as-is], .mount > *) { rotate: var(--photo-tilt); }
|
|
237
|
+
:is(:where(.slide:nth-of-type(odd)) :nth-child(even of :is(img.pic, img.art, img.photo, figure.mount)), :where(.slide:nth-of-type(even)) :nth-child(odd of :is(img.pic, img.art, img.photo, figure.mount))):where(.slide:not(.l-picture-full, .l-cover-band, .l-cover-split, .l-cover-poster, .l-portrait, .l-wall) *):not(.shot, .clip, [data-as-is], .mount > *) { rotate: var(--photo-tilt-2); }
|
|
238
|
+
/* hd-film { (applyTheme carries this block, to the closing marker, into a deck that lacks it or has an older one) */
|
|
239
|
+
/* The film (--film: 1, Carousel's projector): grain and a faint flicker over the whole picture, every slide, its text
|
|
240
|
+
and pictures included, never in the way of a tap. One layer over the player's stage (.hd-stage, which clips it; in scroll mode, where the stage is the
|
|
241
|
+
whole column, each slide carries its own),
|
|
242
|
+
above the slides and their transitions and under the presenter, who is in the room, not on the film; so it runs on
|
|
243
|
+
unbroken through slide changes, as a projector's does. One small tile of grain (pixels, never a filter) jumps
|
|
244
|
+
about in steps, 16 a second, which reads as film, over a faint dark wash that wavers with it (at most
|
|
245
|
+
--film-flicker deep). It is a layer of its own, so a step redraws only the film, never the slides. Both move on
|
|
246
|
+
the page clock, so a video export's clock places every step; the -3.7ms start keeps every step's
|
|
247
|
+
edge at least .4ms from a 24, 30 or 60 fps frame, where a rounding error could pick either side. No script.
|
|
248
|
+
It holds still (grain only: the dust rests off the picture, and no flicker) for reduced motion and in a thumbnail, and in a video export until the recording starts (the
|
|
249
|
+
player puts .hd-rolling on the body at the recorder's go), so it starts on the same frame in every export. */
|
|
250
|
+
@container style(--film: 1) {
|
|
251
|
+
body:not(.hd-scroll) .hd-stage::after, .hd-scroll .hd-stage > .slide::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; will-change: transform; background: var(--film-grain) 0 0 / 128px 128px, var(--film-dust) 0 0 / 200% 200% no-repeat; animation: var(--film-motion, hd-film .5s steps(1, end) -3.7ms infinite); }
|
|
252
|
+
}
|
|
253
|
+
/* Where the film holds still (any mode, whichever element carries it). */
|
|
254
|
+
:is(.hd-thumb, .hd-export:not(.hd-rolling)) { --film-motion: none; }
|
|
255
|
+
@media (prefers-reduced-motion: reduce) { :root { --film-motion: none; } }
|
|
256
|
+
/* A printed deck (the print view, lib/printView.ts) is pages, not a projection: no film. */
|
|
257
|
+
html[data-hd-print] :is(.hd-stage, .hd-stage > .slide)::after { content: none; }
|
|
258
|
+
/* Where the grain lands, where the dust lands (on the picture on five of the eight steps), and the light, step by step.
|
|
259
|
+
The dust layer is twice the stage, its specks and scratch in its far quarter, so it is sized and moved in the stage's own
|
|
260
|
+
units (a step at 100% 100% puts them where they are drawn, 0 0 parks them off the picture): the same specks land on the
|
|
261
|
+
same spots at any stage size, a phone's included. Its resting place is 0 0, so a film that holds still is grain only. */
|
|
262
|
+
@keyframes hd-film {
|
|
263
|
+
0% { background-position: 0 0, 100% 100%; background-color: rgb(0 0 0 / var(--film-flicker)); }
|
|
264
|
+
12.5% { background-position: 97px 41px, 43.75% 66.667%; background-color: rgb(0 0 0 / calc(var(--film-flicker) * .7)); }
|
|
265
|
+
25% { background-position: 55px 104px, 0 0; background-color: rgb(0 0 0 / calc(var(--film-flicker) * .9)); }
|
|
266
|
+
37.5% { background-position: 21px 73px, 73.75% 32.222%; background-color: rgb(0 0 0 / calc(var(--film-flicker) * .6)); }
|
|
267
|
+
50% { background-position: 116px 12px, 0 0; background-color: rgb(0 0 0 / var(--film-flicker)); }
|
|
268
|
+
62.5% { background-position: 35px 17px, 25% 83.333%; background-color: rgb(0 0 0 / calc(var(--film-flicker) * .55)); }
|
|
269
|
+
75% { background-position: 68px 120px, 0 0; background-color: rgb(0 0 0 / calc(var(--film-flicker) * .85)); }
|
|
270
|
+
87.5% { background-position: 110px 66px, 83.75% 47.778%; background-color: rgb(0 0 0 / calc(var(--film-flicker) * .65)); }
|
|
271
|
+
}
|
|
272
|
+
/* } hd-film */
|
|
273
|
+
/* A caption, in any theme: wrap the photo as <figure class="mount" data-caption="Lake Tahoe, summer 1974"><img class="pic" …></figure>
|
|
274
|
+
(hero, portrait, picture-full, wall and split place the figure where the picture goes). It is a plain label under the picture, or typed
|
|
275
|
+
on the mount's foot (--caption-at: absolute). No data-caption, nothing is added; the alt text is never printed. */
|
|
276
|
+
.slide figure.mount { position: relative; display: flex; flex-direction: column; width: fit-content; max-width: 100%; min-width: 0; min-height: 0; }
|
|
277
|
+
.slide figure.mount[data-caption]::after { content: attr(data-caption); position: var(--caption-at); left: 0; right: 0; top: calc(100% - var(--mount-foot)); min-height: var(--mount-foot); display: flex; align-items: center; justify-content: var(--caption-align); margin-top: var(--caption-gap); padding: 0 var(--mount-side); font: 400 var(--t-label)/1.25 var(--caption-font); letter-spacing: .02em; color: var(--caption-ink); text-align: var(--caption-align); overflow-wrap: anywhere; }
|
|
278
|
+
/* A mount is thinner on a phone. */
|
|
279
|
+
@media (max-width: 650px) { .slide { --mount-k: .5; } }
|
|
160
280
|
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; }
|
|
161
281
|
.reveal.is-revealed { opacity: 1; transform: none; }
|
|
162
282
|
/* The phone card (product's .frame.card, the phones row): a frameless phone,
|
|
@@ -164,8 +284,8 @@ d.addEventListener("readystatechange",go);go()})();</script>
|
|
|
164
284
|
--shadow on the element (style="--tilt: 3deg; --shadow: var(--accent-2)");
|
|
165
285
|
put an <img class="shot"> or <video class="shot" autoplay muted loop
|
|
166
286
|
playsinline> in place of the placeholder div. */
|
|
167
|
-
.slide .frame.card { --tilt: -4deg; --shadow: var(--accent); position: relative; width: 320px; aspect-ratio: 9 / 19.5; padding: 9px; border:
|
|
168
|
-
.slide .frame.card > .shot { display: block; width: 100%; height: 100%; aspect-ratio: auto; border-radius:
|
|
287
|
+
.slide .frame.card { --tilt: -4deg; --shadow: var(--accent); position: relative; width: 320px; aspect-ratio: 9 / 19.5; padding: 9px; border: calc(3 * var(--line)) solid var(--ink); border-radius: calc(46 * var(--round-phone)); background: var(--card); box-shadow: calc(18 * var(--drop-x)) calc(18 * var(--drop-y)) calc(18 * var(--drop-blur)) color-mix(in srgb, var(--shadow) var(--drop-mix), transparent); transform: rotate(calc(var(--tilt) * var(--tilt-k))); overflow: visible; }
|
|
288
|
+
.slide .frame.card > .shot { display: block; width: 100%; height: 100%; aspect-ratio: auto; border-radius: calc(36 * var(--round-phone)); border: calc(2 * var(--line)) solid color-mix(in srgb, var(--ink) 20%, transparent); object-fit: cover; }
|
|
169
289
|
.slide .frame.card > div.shot { background:
|
|
170
290
|
linear-gradient(color-mix(in srgb, var(--ink) 16%, transparent) 0 0) 50% 5% / 36% 2.2% no-repeat,
|
|
171
291
|
linear-gradient(var(--accent-2) 0 0) 50% 30% / 84% 40% no-repeat,
|
|
@@ -178,7 +298,7 @@ d.addEventListener("readystatechange",go);go()})();</script>
|
|
|
178
298
|
behind the slide's content. */
|
|
179
299
|
.slide:has(> .deco) { isolation: isolate; }
|
|
180
300
|
.slide > .deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
|
|
181
|
-
.slide > .deco > span { position: absolute; display: grid; place-items: center; width: 80px; height: 80px; border:
|
|
301
|
+
.slide > .deco > span { position: absolute; display: grid; place-items: center; width: 80px; height: 80px; border: calc(3 * var(--line)) solid var(--ink); border-radius: calc(20 * var(--round)); background: var(--card); box-shadow: calc(8 * var(--drop-x)) calc(8 * var(--drop-y)) calc(8 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); color: var(--ink); font: 700 34px var(--font); }
|
|
182
302
|
/* Backgrounds (deck_guide topic look). Four classes on the section, tokens only, each painted
|
|
183
303
|
behind the content (a ::before at z-index -1 in an isolated slide) and confined to the object
|
|
184
304
|
it backs, never under the text. Each carries its own per-layout rules (.l-<layout>.bg-<name>),
|
|
@@ -210,61 +330,129 @@ d.addEventListener("readystatechange",go);go()})();</script>
|
|
|
210
330
|
-webkit-mask-image: radial-gradient(circle at 100% 0, #000 45%, rgba(0,0,0,.4) 100%); mask-image: radial-gradient(circle at 100% 0, #000 45%, rgba(0,0,0,.4) 100%); }
|
|
211
331
|
.l-closer.bg-corner::before { --corner-r: 460px; }
|
|
212
332
|
.on-ink.bg-corner::before { --corner-a: 22%; }
|
|
213
|
-
:is(.l-split, .l-product, .l-chart, .l-quote, .l-number, .l-features, .l-team, .l-timeline, .l-compare, .l-cover-band, .l-cover-poster, .l-cover-split).bg-corner::before { content: none; }
|
|
333
|
+
:is(.l-split, .l-product, .l-chart, .l-quote, .l-number, .l-features, .l-team, .l-timeline, .l-compare, .l-cover-band, .l-cover-poster, .l-cover-split, .l-phone-stage, .l-tap-through, .l-screens, .l-zoom, .l-video-full, .l-video-beats, .l-picture-full, .l-wall, .l-portrait, .l-embed, .l-sentence, .l-strike, .l-spotlight, .l-funnel, .l-scorecard, .l-bento, .l-two-by-two, .l-staircase, .l-rail, .l-loop, .l-lanes, .l-two-bars, .l-stack).bg-corner::before { content: none; }
|
|
214
334
|
/* bg-stage: a rounded dot plate exactly the picture's column plus 32px, so the frame or the phones stand on it; on the hero a tile behind the stickers. */
|
|
215
|
-
.slide.bg-stage::before { inset: auto; background: radial-gradient(color-mix(in srgb, currentColor var(--stage-a, 24%), transparent) 2.4px, transparent 2.9px) 0 0 / 22px 22px; border-radius:
|
|
335
|
+
.slide.bg-stage::before { inset: auto; background: radial-gradient(color-mix(in srgb, currentColor var(--stage-a, 24%), transparent) 2.4px, transparent 2.9px) 0 0 / 22px 22px; border-radius: calc(40 * var(--round)); }
|
|
216
336
|
.l-product.bg-stage::before { position: relative; grid-area: frame; align-self: stretch; margin: var(--stage-m, -32px -24px -32px -40px); }
|
|
217
337
|
.l-phones.bg-stage::before { position: relative; grid-area: row; align-self: stretch; margin: var(--stage-m, -32px); }
|
|
218
338
|
.l-hero.bg-stage::before { right: 110px; top: 110px; width: 410px; height: 350px; }
|
|
219
|
-
:is(.l-split, .l-chart, .l-quote, .l-closer, .l-number, .l-features, .l-team, .l-timeline, .l-compare, .l-cover-band, .l-cover-poster, .l-cover-split, .l-cover-type, .l-cover-frame).bg-stage::before { content: none; }
|
|
339
|
+
:is(.l-split, .l-chart, .l-quote, .l-closer, .l-number, .l-features, .l-team, .l-timeline, .l-compare, .l-cover-band, .l-cover-poster, .l-cover-split, .l-cover-type, .l-cover-frame, .l-phone-stage, .l-tap-through, .l-screens, .l-zoom, .l-video-full, .l-video-beats, .l-picture-full, .l-wall, .l-portrait, .l-embed, .l-sentence, .l-strike, .l-spotlight, .l-funnel, .l-scorecard, .l-bento, .l-two-by-two, .l-staircase, .l-rail, .l-loop, .l-lanes, .l-two-bars, .l-stack).bg-stage::before { content: none; }
|
|
220
340
|
/* bg-mark: the slide number, set as style="--mark:'04'" on the section, huge in --display, faint,
|
|
221
341
|
cropped by the top edge; right on the hero, in the indent on slot-left slides. A signature: cover, an opener, closer. */
|
|
222
342
|
.slide.bg-mark::before { content: var(--mark, ""); inset: auto; right: 24px; top: -.26em; font: var(--display-weight, 700) var(--mark-size, 560px)/1 var(--display, var(--font)); font-synthesis: none; letter-spacing: var(--display-tracking, -.05em); white-space: nowrap;
|
|
223
343
|
color: color-mix(in srgb, currentColor var(--mark-a, 8%), transparent); }
|
|
224
344
|
.slide.on-ink.bg-mark::before { --mark-a: 6%; }
|
|
225
345
|
.slide.slot-left.bg-mark::before { right: auto; left: -.08em; font-size: var(--mark-size, 440px); } /* ends inside the 500px indent, clear of the title */
|
|
226
|
-
:is(.l-split, .l-product, .l-chart, .l-phones, .l-number, .l-features, .l-team, .l-timeline, .l-compare, .l-cover-band, .l-cover-poster, .l-cover-split).bg-mark::before { content: none; }
|
|
346
|
+
:is(.l-split, .l-product, .l-chart, .l-phones, .l-number, .l-features, .l-team, .l-timeline, .l-compare, .l-cover-band, .l-cover-poster, .l-cover-split, .l-phone-stage, .l-tap-through, .l-screens, .l-zoom, .l-video-full, .l-video-beats, .l-picture-full, .l-wall, .l-portrait, .l-embed, .l-sentence, .l-strike, .l-spotlight, .l-funnel, .l-scorecard, .l-bento, .l-two-by-two, .l-staircase, .l-rail, .l-loop, .l-lanes, .l-two-bars, .l-stack).bg-mark::before { content: none; }
|
|
227
347
|
/* Pieces. .sticker: a logo or icon tile, tilted (--tilt), ink edge, hard offset
|
|
228
348
|
shadow (.sticker.photo for a face or an app icon that fills it). .ticks: a short
|
|
229
349
|
list with accent-square bullets. .panel: a quiet card. .pill: a small tag. */
|
|
230
|
-
.sticker { --tilt: -3deg; display: inline-grid; place-items: center; flex: none; width: 96px; height: 96px; padding: 18px; border:
|
|
350
|
+
.sticker { --tilt: -3deg; display: inline-grid; place-items: center; flex: none; width: 96px; height: 96px; padding: 18px; border: calc(4 * var(--line)) solid var(--ink); border-radius: calc(26 * var(--round)); background: var(--card); color: var(--ink); 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); transform: rotate(calc(var(--tilt) * var(--tilt-k))); }
|
|
231
351
|
.sticker > :is(img, svg) { width: 100%; height: 100%; object-fit: contain; }
|
|
352
|
+
/* Icons in a layout's icon slot (hyperdecks icons search <word> --for <layout>; search_icons { for }): one set a deck,
|
|
353
|
+
one library set and weight (an inline <svg class="icon"> in currentColor: line icons stroked, filled ones filled, a duotone's
|
|
354
|
+
second tone --icon-duo) or one generated set (<img class="icon">,
|
|
355
|
+
drawn as it comes, no tile). The layout places and sizes the slot (--icon: its side, a number of px); the theme
|
|
356
|
+
draws it (the --icon-* tokens above), its corner from --round. What is right behind a tile picks its pair: an item
|
|
357
|
+
painted in the accent, or a slot sitting on an on-accent slide's ground, sets --icon-fill and --icon-fg to the
|
|
358
|
+
-accent pair; everything else (a card, a tint, the paper, ink) takes the theme's tile. A sticker's icon is the sticker's. */
|
|
359
|
+
:where(.slide) .icon:where(:not(.sticker *)) { --icon-px: calc(var(--icon, 48) * 1px); box-sizing: border-box; flex: none; display: block; width: var(--icon-px); height: var(--icon-px); padding: calc(var(--icon-px) * var(--icon-pad, .22)); border-radius: calc(var(--icon, 48) * .28 * var(--round)); background: var(--icon-fill, var(--icon-tile, var(--accent))); color: var(--icon-fg, var(--icon-ink, var(--accent-ink))); stroke-width: var(--icon-stroke, 2); box-shadow: 0 0 0 calc(var(--icon-edge, 0) * var(--line)) currentColor; object-fit: contain; }
|
|
360
|
+
:where(.slide) img.icon:where(:not(.sticker *)) { padding: 0; background: none; box-shadow: none; border-radius: 0; }
|
|
361
|
+
/* One tile a theme: a sticker that holds an icon (split's) is painted as an icon tile is, over its card (a bare theme's
|
|
362
|
+
transparent tile leaves the card), the icon in the theme's ink and line weight. A sticker with a logo keeps its card.
|
|
363
|
+
A bare theme (--icon-on-card) draws it in the card's own ink, as rail's dot on the paper: the slide's text colour, light on
|
|
364
|
+
an ink or accent slide, would vanish on the light card. */
|
|
365
|
+
.sticker:has(> svg.icon) { background: linear-gradient(var(--icon-fill, var(--icon-tile, var(--card))), var(--icon-fill, var(--icon-tile, var(--card)))), var(--card); color: var(--icon-on-card, var(--icon-fg, var(--icon-ink, var(--ink)))); }
|
|
366
|
+
.on-accent .sticker:has(> svg.icon) { --icon-fill: var(--icon-tile-accent, var(--card)); --icon-fg: var(--icon-ink-accent, var(--ink)); }
|
|
367
|
+
.sticker > svg.icon { stroke-width: var(--icon-stroke, 2); }
|
|
232
368
|
.sticker.photo { padding: 0; overflow: hidden; }
|
|
233
369
|
.sticker.photo > img { object-fit: cover; }
|
|
234
370
|
.ticks { list-style: none; display: flex; flex-direction: column; gap: 14px; }
|
|
235
371
|
.ticks li { position: relative; padding-left: 34px; font-size: var(--t-body); line-height: 1.3; font-weight: 600; }
|
|
236
|
-
.ticks li::before { content: ""; position: absolute; left: 0; top: .4em; width: 16px; height: 16px; border-radius:
|
|
372
|
+
.ticks li::before { content: ""; position: absolute; left: 0; top: .4em; width: 16px; height: 16px; border-radius: calc(5 * var(--round)); background: var(--accent); }
|
|
237
373
|
.on-accent .ticks li::before { background: var(--accent-ink); }
|
|
238
|
-
.panel { padding: 24px 28px; border-radius:
|
|
239
|
-
.pill { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 8px 16px; border-radius:
|
|
240
|
-
.on-accent .pill { box-shadow:
|
|
374
|
+
.panel { padding: 24px 28px; border-radius: calc(22 * var(--round)); background: color-mix(in srgb, currentColor 6%, transparent); }
|
|
375
|
+
.pill { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 8px 16px; border-radius: calc(999 * var(--round)); background: var(--card); color: var(--ink); font: 700 var(--t-label) var(--mono); letter-spacing: .08em; text-transform: uppercase; box-shadow: calc(4 * var(--drop-x)) calc(4 * var(--drop-y)) calc(4 * var(--drop-blur)) color-mix(in srgb, var(--accent) var(--drop-mix), transparent); }
|
|
376
|
+
.on-accent .pill { box-shadow: calc(4 * var(--drop-x)) calc(4 * var(--drop-y)) calc(4 * var(--drop-blur)) color-mix(in srgb, var(--accent-ink) var(--drop-mix), transparent); }
|
|
241
377
|
/* A laptop for a desktop screenshot or clip: a .frame.laptop holding an img.shot or video.shot. */
|
|
242
|
-
.slide .frame.laptop { position: relative; width: min(860px, 100%); padding: 14px 14px 22px; border-radius:
|
|
243
|
-
.slide .frame.laptop::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: -16px; height: 16px; border-radius: 0 0
|
|
244
|
-
.slide .frame.laptop > .shot { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius:
|
|
378
|
+
.slide .frame.laptop { position: relative; width: min(860px, 100%); padding: 14px 14px 22px; border-radius: calc(20 * var(--round)) calc(20 * var(--round)) calc(6 * var(--round)) calc(6 * var(--round)); background: #1a1a1d; box-shadow: 0 calc(30 * var(--lift)) calc(70 * var(--lift)) color-mix(in srgb, var(--ink) 22%, transparent); }
|
|
379
|
+
.slide .frame.laptop::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: -16px; height: 16px; border-radius: 0 0 calc(16 * var(--round)) calc(16 * var(--round)); background: linear-gradient(#d9d9de, #a9a9b0); }
|
|
380
|
+
.slide .frame.laptop > .shot { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: calc(6 * var(--round)); object-fit: cover; object-position: top; background: var(--paper); }
|
|
245
381
|
/* Phones: the slide is the 374×736 card; the presenter is a small head in
|
|
246
|
-
the corner, so keep the bottom
|
|
382
|
+
the corner, so keep the bottom 200px clear. */
|
|
247
383
|
@media (max-width: 650px) {
|
|
248
|
-
:root { --t-display: 54px; --t-title: 38px; --t-sub: 28px; --t-lead: 17px; --t-body: 15px; --t-label:
|
|
249
|
-
.slide { padding: 28px 20px
|
|
250
|
-
|
|
384
|
+
:root { --t-display: calc(54px * var(--display-scale)); --t-title: calc(38px * var(--display-scale)); --t-sub: calc(28px * var(--display-scale)); --t-lead: 17px; --t-body: 15px; --t-label: 14px; }
|
|
385
|
+
.slide { padding: 28px 20px 200px; gap: 14px; }
|
|
386
|
+
/* phone rhythm start */
|
|
387
|
+
/* One anchor for every slide on a phone (docs/roadmap/phone-slides-content-starts-at-one-height-and-uses-the-scree.md):
|
|
388
|
+
the content block starts under the card's top margin, kicker and title first, so flipping through, nothing
|
|
389
|
+
jumps. --hd-phone-anchor is the one switch: `safe center` centres each slide's block instead, and a layout's own phone
|
|
390
|
+
rules use the token. The full-bleed layouts (cover-band, cover-split, cover-poster, picture-full) keep their
|
|
391
|
+
picture at the card's top edge whatever the token says. */
|
|
392
|
+
:root { --hd-phone-anchor: start; }
|
|
393
|
+
.slide { justify-content: var(--hd-phone-anchor); align-content: var(--hd-phone-anchor); }
|
|
394
|
+
/* A slide's content is one block: its media grows into the height above the presenter (each layout's phone rules
|
|
395
|
+
let it, at its own shape), and the words follow it directly, never a hole between them. Text-only slides
|
|
396
|
+
(no picture but a sticker or logo) step their type up a notch; :where() keeps that at a class's weight. */
|
|
397
|
+
.slide:where(:not(:has(:is(img, video, .shot, .pic, .clip, .art):not(.sticker *, .brand-logo, .brand-logo *, .icon)))) { --t-title: 44px; --t-sub: 32px; --t-lead: 19px; --t-body: 17px; }
|
|
398
|
+
/* phone rhythm end */
|
|
399
|
+
.narration-slot, .slot-left .narration-slot { right: 12px; left: 12px; bottom: 12px; }
|
|
251
400
|
:root.hd-no-presenter .slide { padding-bottom: 28px; }
|
|
252
|
-
|
|
253
|
-
|
|
401
|
+
/* 1 while the presenter's foot is kept, 0 without a presenter: a layout's phone rules trim by it (calc(18px - 6px *
|
|
402
|
+
var(--hd-phone-presenter))) where the 200px foot leaves too little height, so silent decks keep their room. */
|
|
403
|
+
:root { --hd-phone-presenter: 1; }
|
|
404
|
+
:root.hd-no-presenter { --hd-phone-presenter: 0; }
|
|
405
|
+
/* The presenter on a phone, in the 200px foot every slide keeps clear for it: a 200px face box in every presenter
|
|
406
|
+
style (bubble's --hd-face-size; corner's --hd-corner-head, which stage and glass become on a phone), not the
|
|
407
|
+
player's 96px and 128px. The live head fills about 73% of its box's width and its top 80%, so it shows about
|
|
408
|
+
146×156px; the box sits 20% of itself low, so the head's chin is about 12px above the card's bottom and its top
|
|
409
|
+
about 170px above it. body.hd-compact outranks the player's .hd-compact, so released decks, which carry their
|
|
410
|
+
own CSS, keep theirs. */
|
|
411
|
+
body.hd-compact { --hd-face-size: 200px; --hd-corner-head: 200px; --hd-bubble-width: min(240px, calc(100vw - 230px)); --hd-caption-lines: 5; }
|
|
412
|
+
body.hd-compact .hd-style-bubble .hd-face { bottom: calc(-.2 * var(--hd-face)); }
|
|
413
|
+
body.hd-compact .hd-style-corner .hd-face { bottom: calc(12px - .2 * var(--hd-face) + var(--hd-band, 0px)); }
|
|
414
|
+
/* The head's emote bursts (the wave's stars and their glow) draw past the face box: on a phone the box is masked
|
|
415
|
+
with soft edges, so they fade out over its top (28px under the foot's top: never over text), its card side (the
|
|
416
|
+
box stands 12px inside the card) and, at the caption's tail tip, its caption side (bubble's caption starts .82
|
|
417
|
+
of the face plus 26px in, corner's ends .8 of the face plus 46px from the right; the tail reaches 10px). The
|
|
418
|
+
live head is drawn well inside those edges. A clip left the glow a box with hard sides. An ellipse round the head
|
|
419
|
+
(from 72% of 124×128px, past its 73px half-width and the 76px from its centre to its crown) fades what is left
|
|
420
|
+
of the glow, so on a dark ground it reads as light round the head, not a square patch. */
|
|
421
|
+
body.hd-compact .hd-style-bubble .hd-face { -webkit-mask-image: linear-gradient(transparent, #000 24px), radial-gradient(ellipse 62% 64% at 50% 58%, #000 72%, transparent), linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 28px), transparent calc(100% - 20px)); -webkit-mask-composite: source-in; mask-image: linear-gradient(transparent, #000 24px), radial-gradient(ellipse 62% 64% at 50% 58%, #000 72%, transparent), linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 28px), transparent calc(100% - 20px)); mask-composite: intersect; }
|
|
422
|
+
body.hd-compact .hd-style-corner .hd-face { -webkit-mask-image: linear-gradient(transparent, #000 24px), radial-gradient(ellipse 62% 64% at 50% 58%, #000 72%, transparent), linear-gradient(to right, transparent 4px, #000 16px, #000 calc(100% - 12px), transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(transparent, #000 24px), radial-gradient(ellipse 62% 64% at 50% 58%, #000 72%, transparent), linear-gradient(to right, transparent 4px, #000 16px, #000 calc(100% - 12px), transparent); mask-composite: intersect; }
|
|
423
|
+
/* Its caption stands beside the head, inside the foot, never above it over the slide: left of corner's head (the
|
|
424
|
+
tail pointing right at it), right of bubble's (the presenter as wide as head and bubble). About 155px wide, its
|
|
425
|
+
tail's tip a few px clear of the visible head (a live head is about 146px of its 200px box, centred), its bottom
|
|
426
|
+
a quarter of the head up, so it sits about 60px above the card's bottom. It holds five lines (--hd-caption-lines,
|
|
427
|
+
read by the player; released decks keep two), which still keep inside the foot, so a sentence of about 80
|
|
428
|
+
characters shows in one or two bubbles broken at a phrase, not three broken mid-phrase. */
|
|
429
|
+
body.hd-compact .hd-style-corner .hd-bubble { right: calc(46px + .8 * var(--hd-face)); bottom: calc(12px + var(--hd-band, 0px) + .25 * var(--hd-face)); width: calc(100% - 70px - .8 * var(--hd-face)); }
|
|
430
|
+
/* A held caption of four or five lines leaves no room in the foot for the paused aside under it ("Hit play when
|
|
431
|
+
you're ready" climbed 19px over the slide): it is left out there, and bubble's lift for it with it; the breathing
|
|
432
|
+
Resume still says paused. The idle beat's line, which uses the same span and shows alone, is kept. */
|
|
433
|
+
body.hd-compact .hd-presenter:not(.is-idle-line) .hd-caption:has(> .hd-caption-line:nth-of-type(4)) > .hd-caption-aside { display: none; }
|
|
434
|
+
body.hd-compact .hd-presenter.hd-style-bubble.has-aside .hd-bubble:has(> .hd-caption > .hd-caption-line:nth-of-type(4)) { translate: none; }
|
|
435
|
+
body.hd-compact .hd-style-corner .hd-caption::before { left: auto; right: -10px; top: auto; bottom: 16px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
|
|
436
|
+
body.hd-compact .hd-presenter.hd-style-bubble { width: calc(var(--hd-face) * .82 + 26px + var(--hd-bubble-width)); }
|
|
437
|
+
body.hd-compact .hd-style-bubble .hd-bubble { left: calc(.82 * var(--hd-face) + 26px); top: auto; bottom: calc(.25 * var(--hd-face)); }
|
|
438
|
+
.slide .frame.card { width: 160px; padding: 5px; border-width: calc(2 * var(--line)); border-radius: calc(24 * var(--round-phone)); box-shadow: calc(8 * var(--drop-x)) calc(8 * var(--drop-y)) calc(8 * var(--drop-blur)) color-mix(in srgb, var(--shadow) var(--drop-mix), transparent); }
|
|
439
|
+
.slide .frame.card > .shot { border-radius: calc(19 * var(--round-phone)); border-width: calc(1 * var(--line)); }
|
|
254
440
|
/* The text fills the card's width, so the backgrounds keep off it: the corner fades in
|
|
255
441
|
towards the bottom, under the presenter, at a finer pitch; the stage and the mark hide;
|
|
256
|
-
the pool (a soft light)
|
|
442
|
+
the pool (a soft light) moves to the foot; the tiles stay off. */
|
|
257
443
|
.slide.bg-corner::before { inset: 0; width: auto; height: auto; border-radius: 0; background-size: 14px 14px; background-image: radial-gradient(var(--corner-dot) 1.6px, transparent 2px); -webkit-mask-image: linear-gradient(180deg, transparent 40%, #000 90%); mask-image: linear-gradient(180deg, transparent 40%, #000 90%); }
|
|
258
444
|
.slide:is(.bg-stage, .bg-mark)::before { content: none; }
|
|
445
|
+
/* Nothing under a title on a phone: the pool's light gathers at the card's foot, under the presenter, below the words. */
|
|
446
|
+
.slide.bg-pool::before { background: radial-gradient(520px 420px at 85% 100%, var(--pool), transparent 70%); }
|
|
259
447
|
.slide > .deco { display: none; }
|
|
260
|
-
.sticker { width: 48px; height: 48px; padding: 9px; border-width:
|
|
448
|
+
.sticker { width: 48px; height: 48px; padding: 9px; border-width: calc(2 * var(--line)); border-radius: calc(13 * var(--round)); box-shadow: calc(3 * var(--drop-x)) calc(3 * var(--drop-y)) calc(3 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
|
|
261
449
|
.ticks { gap: 6px; }
|
|
262
450
|
.ticks li { padding-left: 18px; }
|
|
263
|
-
.ticks li::before { width: 9px; height: 9px; border-radius:
|
|
264
|
-
.panel { padding: 10px 12px; border-radius:
|
|
265
|
-
.pill { padding: 4px 10px; box-shadow:
|
|
266
|
-
.slide .frame.laptop { padding: 5px 5px 9px; border-radius:
|
|
267
|
-
.slide .frame.laptop::after { left: -3%; right: -3%; bottom: -7px; height: 7px; border-radius: 0 0
|
|
451
|
+
.ticks li::before { width: 9px; height: 9px; border-radius: calc(3 * var(--round)); }
|
|
452
|
+
.panel { padding: 10px 12px; border-radius: calc(12 * var(--round)); }
|
|
453
|
+
.pill { padding: 4px 10px; box-shadow: calc(2 * var(--drop-x)) calc(2 * var(--drop-y)) calc(2 * var(--drop-blur)) color-mix(in srgb, var(--accent) var(--drop-mix), transparent); }
|
|
454
|
+
.slide .frame.laptop { padding: 5px 5px 9px; border-radius: calc(10 * var(--round)) calc(10 * var(--round)) calc(3 * var(--round)) calc(3 * var(--round)); }
|
|
455
|
+
.slide .frame.laptop::after { left: -3%; right: -3%; bottom: -7px; height: 7px; border-radius: 0 0 calc(8 * var(--round)) calc(8 * var(--round)); }
|
|
268
456
|
}
|
|
269
457
|
</style>
|
|
270
458
|
<!-- LAYOUT STYLES -->
|
|
@@ -283,8 +471,10 @@ d.addEventListener("readystatechange",go);go()})();</script>
|
|
|
283
471
|
URL it writes. data-presenter: head (live Minimoji, needs data-avatar),
|
|
284
472
|
static (data-presenter-image) or none (captions only). deck new, deck
|
|
285
473
|
narrator and narrate write the narrator's face here
|
|
286
|
-
(data-presenter-from="narrator", so release follows a later narrator).
|
|
474
|
+
(data-presenter-from="narrator", so release follows a later narrator).
|
|
475
|
+
data-silent-presenter="hide": if this deck is made silent (data-silent),
|
|
476
|
+
it shows no presenter; set "show" to keep the face on a silent deck. -->
|
|
287
477
|
<script type="module" src="https://hyperdecks.ai/player/v1/player.js"
|
|
288
|
-
data-manifest="" data-stage="1600x900" data-presenter="none" data-presenter-style="__PRESENTER_STYLE__"></script>
|
|
478
|
+
data-manifest="" data-silent-presenter="hide" data-stage="1600x900" data-presenter="none" data-presenter-style="__PRESENTER_STYLE__"></script>
|
|
289
479
|
</body>
|
|
290
480
|
</html>
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
layout: bento
|
|
3
|
+
summary: One big tile for the main point and two small ones for what backs it up: the headline reason and its two supports.
|
|
4
|
+
brief: One big tile for the main point, two small ones backing it.
|
|
5
|
+
says: one above the rest
|
|
6
|
+
needs: 3 points, one of them the main one
|
|
7
|
+
use: the one reason above all, a headline feature and two more, a result and its two causes. The main point under about 30 characters (it is set large), each small tile's name a word or two and its line under about 40. For three equal things use features. A large presenter: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) narrows the tiles (the big one across the top at xl), clear of the presenter.
|
|
8
|
+
slot: bottom-right
|
|
9
|
+
presenter: stage
|
|
10
|
+
nopresenter: The tiles take the full width of the slide.
|
|
11
|
+
cues: [look: #__ID__-big] at the main point; [go: #__ID__-s1] and [go: #__ID__-s2] at the two that back it, then [go: slot].
|
|
12
|
+
script: One reason above all: [look: #__ID__-big] you see who watched. It also speaks [go: #__ID__-s1] in your voice, [go: #__ID__-s2] with your face. [go: slot]
|
|
13
|
+
-->
|
|
14
|
+
<style>
|
|
15
|
+
/* The tiles fill the height below the title, in a column that ends left of the presenter's corner (the stage presenter
|
|
16
|
+
at m reaches 1064px across): the big one down the left, the two small ones stacked beside it, each read from its top,
|
|
17
|
+
its name as large as the tile allows (cqi: the tile's width) while a word of about 14 letters still fits whole. */
|
|
18
|
+
.l-bento .tiles { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 20px; max-width: 980px; }
|
|
19
|
+
.l-bento .tiles > * { container-type: inline-size; display: flex; flex-direction: column; justify-content: flex-start; gap: 10px; min-height: 0; min-width: 0; padding: 28px 30px; border: calc(3 * var(--line)) solid var(--ink); border-radius: calc(24 * var(--round)); color: var(--ink); box-shadow: calc(8 * var(--drop-x)) calc(8 * var(--drop-y)) calc(8 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
|
|
20
|
+
.on-ink.l-bento .tiles > * { box-shadow: calc(8 * var(--drop-x)) calc(8 * var(--drop-y)) calc(8 * var(--drop-blur)) color-mix(in srgb, var(--accent-2) var(--drop-mix), transparent); }
|
|
21
|
+
.l-bento .big { grid-row: 1 / 3; background: var(--accent); color: var(--accent-ink); }
|
|
22
|
+
.l-bento .big .kicker { margin-bottom: 6px; }
|
|
23
|
+
.l-bento .big b { font-family: var(--display, var(--font)); font-weight: var(--display-weight, 700); font-style: var(--display-style); text-transform: var(--display-case); letter-spacing: var(--display-tracking, -.045em); font-size: min(var(--t-display), 11cqi); line-height: var(--display-leading); text-wrap: balance; }
|
|
24
|
+
.l-bento .big p { font-size: var(--t-lead); line-height: 1.25; }
|
|
25
|
+
.l-bento .small:nth-child(2) { background: var(--tint-2); }
|
|
26
|
+
.l-bento .small:nth-child(3) { background: var(--tint-3); }
|
|
27
|
+
.on-accent.l-bento .big { background: var(--card); color: var(--ink); }
|
|
28
|
+
.l-bento .small b { font-family: var(--display, var(--font)); font-weight: var(--display-weight, 700); letter-spacing: var(--display-tracking, -.045em); font-size: min(var(--t-sub), 11cqi); line-height: 1.02; }
|
|
29
|
+
.l-bento .small p { font-size: var(--t-lead); line-height: 1.25; }
|
|
30
|
+
@media (max-width: 650px) {
|
|
31
|
+
/* The tiles share the free height: the big one takes three parts, each row of small ones two (up to about 560px in all). */
|
|
32
|
+
.l-bento .tiles { flex: 1 1 0; min-height: auto; max-height: 560px; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(170px, 3fr); grid-auto-rows: minmax(min-content, 2fr); gap: 8px; max-width: none; }
|
|
33
|
+
.l-bento .tiles > * { gap: 3px; padding: 12px 14px; border-width: calc(2 * var(--line)); border-radius: calc(14 * var(--round)); box-shadow: calc(4 * var(--drop-x)) calc(4 * var(--drop-y)) calc(4 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
|
|
34
|
+
.l-bento .big { grid-row: auto; grid-column: 1 / 3; min-height: 170px; }
|
|
35
|
+
.l-bento .big p { font-size: var(--t-body); }
|
|
36
|
+
.l-bento .big b { font-size: var(--t-sub); }
|
|
37
|
+
.l-bento .small b { font-size: var(--t-body); }
|
|
38
|
+
.l-bento .small p { font-size: var(--t-label); }
|
|
39
|
+
}
|
|
40
|
+
/* A large presenter (data-presenter-size l or xl on this slide's section tag): narrower; at xl the big tile goes across the top. */
|
|
41
|
+
@media not all and (max-width: 650px) {
|
|
42
|
+
.l-bento[data-presenter-size="l"] :is(.tiles, .tt) { max-width: 830px; }
|
|
43
|
+
.l-bento[data-presenter-size="xl"] :is(.tiles, .tt) { max-width: 680px; }
|
|
44
|
+
.l-bento[data-presenter-size="xl"] .tiles { grid-template-columns: 1fr 1fr; grid-template-rows: 1.3fr 1fr; gap: 16px; }
|
|
45
|
+
.l-bento[data-presenter-size="xl"] .big { grid-row: auto; grid-column: 1 / 3; }
|
|
46
|
+
.l-bento[data-presenter-size="xl"] .tiles > * { padding: 20px 22px; }
|
|
47
|
+
.l-bento[data-presenter-size="xl"] .tiles { grid-template-rows: minmax(min-content, 1.3fr) minmax(min-content, 1fr); }
|
|
48
|
+
.l-bento[data-presenter-size="xl"] .big b { font-size: var(--t-sub); }
|
|
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-bento :is(.tiles, .tt) { max-width: none; }
|
|
53
|
+
}
|
|
54
|
+
/* Icon slot (optional): an icon at the top of each tile (hyperdecks icons search <word> --for bento). */
|
|
55
|
+
.l-bento .tiles > * { --icon: 56; }
|
|
56
|
+
.l-bento .big { --icon: 72; }
|
|
57
|
+
.l-bento:not(.on-accent) .big { --icon-fill: var(--icon-tile-accent, var(--card)); --icon-fg: var(--icon-ink-accent, var(--ink)); }
|
|
58
|
+
@media (max-width: 650px) {
|
|
59
|
+
.l-bento .tiles > * { --icon: 30; }
|
|
60
|
+
.l-bento .big { --icon: 40; }
|
|
61
|
+
.l-bento .tiles > * > .icon { margin-bottom: 4px; }
|
|
62
|
+
}
|
|
63
|
+
@media not all and (max-width: 650px) {
|
|
64
|
+
.l-bento[data-presenter-size="xl"] .tiles > * { --icon: 40; }
|
|
65
|
+
}
|
|
66
|
+
</style>
|
|
67
|
+
<section class="slide l-bento" id="__ID__" data-chapter="Why" data-note="Source: where each point is shown (the product, a study, the docs).">
|
|
68
|
+
<div class="kicker">Why send one</div>
|
|
69
|
+
<h2 class="tt" data-title-mobile="One reason above all.">One reason above all.</h2>
|
|
70
|
+
<div class="tiles">
|
|
71
|
+
<div class="big" id="__ID__-big"><span class="kicker">The main one</span><b>You see who watched.</b><p>Per person, per slide, how far they got.</p></div>
|
|
72
|
+
<div class="small" id="__ID__-s1"><b>Your voice</b><p>From a minute of audio.</p></div>
|
|
73
|
+
<div class="small" id="__ID__-s2"><b>Your face</b><p>An avatar, never a deepfake.</p></div>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="narration-slot"></div>
|
|
76
|
+
</section>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
layout: chart
|
|
3
3
|
summary: A chart of real numbers with its takeaway in one line; the presenter beside it.
|
|
4
|
+
brief: A chart of real numbers with its takeaway in one line.
|
|
4
5
|
use: a trend or a comparison in numbers. Its svg is a placeholder of made-up numbers check fails on: draw the real data with `hyperdecks chart` (render_chart; never a generated picture of a chart) as <img class="chart"> and name the data's source.
|
|
5
6
|
slot: bottom-right
|
|
6
7
|
presenter: stage
|
|
@@ -14,15 +15,16 @@ script: Here are the numbers. [look: #__ID__-chart] The last bar is the one to s
|
|
|
14
15
|
.l-chart .tt { font-size: var(--t-sub); line-height: 1.02; }
|
|
15
16
|
/* Swap the svg for an <img class="chart"> of your file (hyperdecks chart). */
|
|
16
17
|
.l-chart .chart { grid-column: 1; width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: left bottom; }
|
|
17
|
-
.l-chart .chart .bar { fill: color-mix(in srgb, var(--ink) 18%, transparent); }
|
|
18
|
-
.l-chart .chart
|
|
18
|
+
.l-chart .chart .bar { fill: color-mix(in srgb, var(--ink) 18%, transparent); rx: var(--bar-round); }
|
|
19
|
+
.l-chart .chart > line { stroke: var(--grid); }
|
|
20
|
+
.l-chart .chart .bar.hi { fill: var(--accent); stroke: var(--ink); stroke-width: calc(3 * var(--line)); }
|
|
19
21
|
.l-chart .chart text { font: 22px var(--mono); fill: currentColor; }
|
|
20
22
|
.l-chart .chart .v { font: 700 30px var(--font); }
|
|
21
|
-
.l-chart .takeaway { grid-column: 2; grid-row: 1 / 3; align-self: start; font-size: var(--t-lead); line-height: 1.25; font-weight: 700; padding-left: 20px; border-left:
|
|
23
|
+
.l-chart .takeaway { grid-column: 2; grid-row: 1 / 3; align-self: start; font-size: var(--t-lead); line-height: 1.25; font-weight: 700; padding-left: 20px; border-left: calc(6 * var(--line)) solid var(--accent); }
|
|
22
24
|
@media (max-width: 650px) {
|
|
23
25
|
.l-chart { display: flex; flex-direction: column; }
|
|
24
26
|
.l-chart .chart { height: 210px; flex: none; }
|
|
25
|
-
.l-chart .takeaway { padding-left: 12px; border-left-width:
|
|
27
|
+
.l-chart .takeaway { padding-left: 12px; border-left-width: calc(4 * var(--line)); }
|
|
26
28
|
}
|
|
27
29
|
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
28
30
|
@media (min-width: 651px) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
layout: closer
|
|
3
3
|
summary: The last slide. One line, the one action to take (a command, a link) and the presenter's goodbye.
|
|
4
|
-
|
|
4
|
+
brief: The last slide: one line, one action and the presenter's goodbye.
|
|
5
|
+
use: the end. One call to action, never three. A large presenter for the goodbye: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) moves the line and the action right of it. Label an ask that is not agreed as Proposed.
|
|
5
6
|
slot: bottom-left
|
|
6
7
|
presenter: stage
|
|
7
8
|
nopresenter: The line and the action drop the left gutter and re-centre in the full frame.
|
|
@@ -11,13 +12,21 @@ script: That's it. [go: #__ID__-cta] Here is the one thing to do next. Thanks [g
|
|
|
11
12
|
<style>
|
|
12
13
|
.l-closer .content { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 32px; padding-left: 500px; }
|
|
13
14
|
.l-closer .tt { font-size: var(--t-display); line-height: .9; }
|
|
14
|
-
.l-closer .cta { display: inline-flex; align-items: center; gap: 16px; width: fit-content; max-width: 100%; padding: 22px 34px; border-radius:
|
|
15
|
+
.l-closer .cta { display: inline-flex; align-items: center; gap: 16px; width: fit-content; max-width: 100%; padding: 22px 34px; border-radius: calc(22 * var(--round)); background: var(--accent); color: var(--accent-ink); font: 700 34px var(--mono); letter-spacing: -.01em; text-decoration: none; }
|
|
15
16
|
/* The arrow is an SVG, not "→": Space Mono's (and Space Grotesk's) web subsets have no U+2192, so the glyph fell back to another face and read as malformed. */
|
|
16
17
|
.l-closer .cta svg { flex: none; width: 1em; height: 1em; }
|
|
17
18
|
.l-closer .contact { font: var(--t-label) var(--mono); letter-spacing: .12em; text-transform: uppercase; }
|
|
18
19
|
@media (max-width: 650px) {
|
|
19
|
-
.l-closer .content { padding-left: 0; justify-content:
|
|
20
|
-
.l-closer .
|
|
20
|
+
.l-closer .content { padding-left: 0; justify-content: var(--hd-phone-anchor); gap: 22px; }
|
|
21
|
+
.l-closer .tt { font-size: calc(var(--t-display) * 1.3); }
|
|
22
|
+
.l-closer .lead { font-size: var(--t-lead); }
|
|
23
|
+
.l-closer .cta { padding: 16px 22px; border-radius: calc(16 * var(--round)); font-size: 18px; }
|
|
24
|
+
}
|
|
25
|
+
/* A large presenter (data-presenter-size l or xl on this slide's section tag): the line and the action move right of it, room for
|
|
26
|
+
a stage or glass presenter at that size, so no deck CSS is needed. */
|
|
27
|
+
@media not all and (max-width: 650px) {
|
|
28
|
+
.l-closer[data-presenter-size="l"] .content { padding-left: 700px; }
|
|
29
|
+
.l-closer[data-presenter-size="xl"] .content { padding-left: 860px; }
|
|
21
30
|
}
|
|
22
31
|
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
23
32
|
@media (min-width: 651px) {
|