@hypersocial/decks-cli 0.9.24 → 0.9.26
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 +74 -8
- package/skills/hyperdecks/chat.md +3 -3
- package/skills/hyperdecks/terminal.md +3 -2
- package/src/answersCsv.mjs +21 -0
- package/src/check.mjs +125 -19
- package/src/checkRules.mjs +273 -18
- package/src/commands.mjs +92 -4
- package/src/embedCapture.mjs +126 -0
- package/src/embedSources.mjs +252 -0
- package/src/embedsGuide.mjs +36 -0
- package/src/files.mjs +3 -0
- package/src/guide.mjs +16 -7
- package/src/layoutRoutes.mjs +7 -1
- package/src/layouts.mjs +8 -3
- package/src/ops.mjs +138 -1
- package/src/picturesGuide.mjs +1 -0
- package/src/preview-capture.mjs +70 -1
- package/src/questionFit.mjs +23 -0
- package/src/runtime.mjs +7 -2
- package/templates/layouts/_deck.html +61 -12
- package/templates/layouts/bento.html +8 -6
- package/templates/layouts/closer.html +4 -2
- package/templates/layouts/cover-band.html +3 -1
- package/templates/layouts/cover-frame.html +8 -2
- package/templates/layouts/cover-poster.html +8 -2
- package/templates/layouts/cover-split.html +13 -2
- package/templates/layouts/cover-type.html +6 -3
- package/templates/layouts/embed.html +93 -0
- package/templates/layouts/features.html +12 -6
- package/templates/layouts/funnel.html +24 -5
- package/templates/layouts/hero.html +2 -2
- package/templates/layouts/lanes.html +18 -6
- package/templates/layouts/number.html +6 -3
- package/templates/layouts/phone-stage.html +13 -3
- package/templates/layouts/picture-full.html +13 -3
- package/templates/layouts/portrait.html +8 -0
- package/templates/layouts/question-choice.html +126 -0
- package/templates/layouts/question-text.html +89 -0
- package/templates/layouts/quote.html +7 -3
- package/templates/layouts/rail.html +7 -4
- package/templates/layouts/scorecard.html +18 -5
- package/templates/layouts/sentence.html +2 -2
- package/templates/layouts/split.html +14 -1
- package/templates/layouts/spotlight.html +4 -1
- package/templates/layouts/stack.html +3 -2
- package/templates/layouts/staircase.html +34 -5
- package/templates/layouts/strike.html +8 -2
- package/templates/layouts/team.html +22 -5
- package/templates/layouts/timeline.html +5 -2
- package/templates/layouts/two-bars.html +10 -1
- package/templates/layouts/two-by-two.html +22 -4
- package/templates/layouts/video-full.html +5 -4
- package/templates/layouts/wall.html +39 -11
|
@@ -4,6 +4,7 @@ summary: A hard 50/50 cover: the title on the left half on a solid ground, the p
|
|
|
4
4
|
brief: A cover split 50/50: the title on one half, the picture filling the other.
|
|
5
5
|
use: the first slide when there is a strong picture that should be big (a product shot, a portrait, a scene) and a title that wants room of its own. Its .art is a placeholder check fails on: put in a picture of the real subject (a found photo: add_photo with for "cover-split", `hyperdecks photos add <id> --for cover-split`, deck_guide topic photos; or gen-image / generate_image, square or near it: the half is about 8:9) as <img class="art">; keep the subject in the top two thirds (the presenter stands on the half's bottom-right; on phones the picture is a wide strip). Never lay the title on the picture; a fade or a gradient over it makes the title hard to read (check warns). Other covers: cover-frame, hero, cover-band, cover-poster, cover-type.
|
|
6
6
|
slot: bottom-right
|
|
7
|
+
flip: data-flip on the section mirrors it: the picture on the left half, the title on the right; the presenter moves to bottom-left. Alternate it with a neighbouring cover-split slide.
|
|
7
8
|
presenter: stage
|
|
8
9
|
nopresenter: The picture crops on its centre instead of keeping its subject high above the presenter.
|
|
9
10
|
cues: [wave] at the hello, [look: h1] when the narration says the title, [look: .art] when it turns to the picture.
|
|
@@ -28,9 +29,12 @@ script: Hi, [wave] this is __TITLE__. [look: h1] One idea, in a few minutes.
|
|
|
28
29
|
@media (max-width: 650px) {
|
|
29
30
|
/* Phones: the picture across the top, edge to edge, the title below it on the ground. */
|
|
30
31
|
.l-cover-split { display: flex; flex-direction: column; justify-content: flex-start; gap: 0; }
|
|
31
|
-
|
|
32
|
+
/* The art takes the free height (at least 186px; up to 400px with a presenter, all of it on a silent deck):
|
|
33
|
+
cover art, cropped by design like cover-band's. A short strip keeps the picture's top, where a person's head is
|
|
34
|
+
(the subject stands in the top two thirds); an object-position on the art itself still wins. */
|
|
35
|
+
.l-cover-split .art { position: relative; inset: auto; flex: 1 1 186px; width: auto; height: auto; min-height: 186px; max-height: calc(400px + 400px * (1 - var(--hd-phone-presenter))); object-position: 50% 10%; margin: -28px -20px 0; border-left: 0; border-bottom: calc(2 * var(--line)) solid var(--ink); }
|
|
32
36
|
.on-ink.l-cover-split .art { border-bottom-color: var(--paper); }
|
|
33
|
-
.l-cover-split .content { align-self: stretch; gap: 12px; padding-top: 18px; }
|
|
37
|
+
.l-cover-split .content { flex: none; align-self: stretch; gap: 12px; padding-top: 18px; }
|
|
34
38
|
.l-cover-split .tt { font-size: var(--t-display); }
|
|
35
39
|
.l-cover-split:has(> .art) > .brand-logo { position: absolute; top: 12px; left: 20px; z-index: 1; }
|
|
36
40
|
.l-cover-split div.art::after { top: 50%; padding: 8px 14px; border-width: calc(2 * var(--line)); font-size: 13px; }
|
|
@@ -39,6 +43,13 @@ script: Hi, [wave] this is __TITLE__. [look: h1] One idea, in a few minutes.
|
|
|
39
43
|
@media (min-width: 651px) {
|
|
40
44
|
:root.hd-no-presenter .l-cover-split .art { object-position: 50% 50%; }
|
|
41
45
|
}
|
|
46
|
+
/* Flipped (data-flip on the section): the mirror image, for a neighbour of the same layout. Wide screens only; a phone
|
|
47
|
+
stacks the same either way. The presenter follows the panel (layouts/_deck.html). */
|
|
48
|
+
@media not all and (max-width: 650px) {
|
|
49
|
+
.l-cover-split[data-flip]:has(> .art) .content, .l-cover-split[data-flip]:has(> .art) > .brand-logo { grid-column: 2; }
|
|
50
|
+
.l-cover-split[data-flip] .art { right: auto; left: 0; border-left: 0; border-right: calc(4 * var(--line)) solid var(--ink); }
|
|
51
|
+
.on-ink.l-cover-split[data-flip] .art { border-right-color: var(--paper); }
|
|
52
|
+
}
|
|
42
53
|
</style>
|
|
43
54
|
<section class="slide l-cover-split" id="__ID__" data-chapter="Hello" data-note="Title slide: no facts.">
|
|
44
55
|
<div class="art" role="presentation"></div>
|
|
@@ -14,7 +14,10 @@ script: Hi, [wave] this is __TITLE__. [look: h1] One idea, in a few minutes.
|
|
|
14
14
|
.l-cover-type .tt { font-size: calc(var(--t-display) * 1.12); line-height: .88; letter-spacing: -.05em; }
|
|
15
15
|
.l-cover-type .lead { max-width: 24em; }
|
|
16
16
|
@media (max-width: 650px) {
|
|
17
|
-
.l-cover-type .content { justify-content:
|
|
17
|
+
.l-cover-type .content { justify-content: var(--hd-phone-anchor); gap: 16px; padding-top: 0; }
|
|
18
|
+
/* On a phone the player grows the text marked data-phone-fit into the free room (packages/player/phone-fit.js): the title up to twice,
|
|
19
|
+
the lead up to 2.2 times (1.3 times the sub size).
|
|
20
|
+
These sizes are its floor, and what check measures. */
|
|
18
21
|
.l-cover-type .tt { font-size: calc(var(--t-display) * 1.08); }
|
|
19
22
|
}
|
|
20
23
|
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
@@ -25,8 +28,8 @@ script: Hi, [wave] this is __TITLE__. [look: h1] One idea, in a few minutes.
|
|
|
25
28
|
<section class="slide on-ink l-cover-type bg-corner" id="__ID__" data-chapter="Hello" data-presenter-size="l" data-note="Title slide: no facts.">
|
|
26
29
|
<div class="content">
|
|
27
30
|
<div class="kicker">__SLUG__</div>
|
|
28
|
-
<h1 class="tt" data-title-mobile="__TITLE__">__TITLE__</h1>
|
|
29
|
-
<p class="lead">One sentence on what this deck is about.</p>
|
|
31
|
+
<h1 class="tt" data-phone-fit="2" data-phone-fit-words="2" data-title-mobile="__TITLE__">__TITLE__</h1>
|
|
32
|
+
<p class="lead" data-phone-fit="2.2">One sentence on what this deck is about.</p>
|
|
30
33
|
</div>
|
|
31
34
|
<div class="narration-slot"></div>
|
|
32
35
|
</section>
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
layout: embed
|
|
3
|
+
summary: A live map, video, Figma file or booking page the viewer can use: a captured still first, with one control in its corner named for the source (Open map, Play video, Open design, Book a time); a tap anywhere on the still loads the live frame over it, the narration pauses until it closes.
|
|
4
|
+
brief: A still of a map, video, Figma file or booking page that goes live on tap.
|
|
5
|
+
says: use this
|
|
6
|
+
needs: 1 embed link and its still
|
|
7
|
+
use: something the viewer will use, not just look at: a map of the venues, a booking page on the closer, a Figma prototype, a video that lives on YouTube, Vimeo or Loom (deck_guide topic embeds). Put the page's share link in data-embed on .embed and replace the placeholder .still with the captured still, <img class="still" src="…" alt="…" width="…" height="…"> (`hyperdecks screenshot <url> --embed --slug <deck>` / capture_url with embed=true and the slug returns the whole .embed markup: for a map or a page three stills, each shown at its own shape: the wide one (no presenter), still-mid (16:10, beside a presenter) and still-tall (a phone), the shapes as --ar, --ar-mid and --ar-phone on .embed; for a video one 16:9 poster). The frame takes the still's shape, so nothing is cropped. Live sources: Google Maps, YouTube, Vimeo, Loom, Figma (Calendly is a still whose tap opens the booking page in a new tab); any other https page shows its still with a link that opens it in a new tab. On a shared link only Google Maps plays inside the slide; the others open in a new tab. The control's words come from the source; data-embed-label="See the three venues" on .embed names it for what the viewer does. Nothing loads from the other site until the tap; the player pauses the narration while the frame is open and goes on when it closes (Close or Escape), only if it was playing. On a phone the open frame takes the whole card with its own Close. Exports, thumbnails and link previews show the still. Never write an <iframe> yourself.
|
|
8
|
+
slot: bottom-right
|
|
9
|
+
presenter: stage
|
|
10
|
+
nopresenter: The frame takes the presenter's corner.
|
|
11
|
+
cues: none needed; say in the script what to do before the slide asks it.
|
|
12
|
+
script: These are the three venues, ten minutes from every office. Tap the map to look around; I'll wait.
|
|
13
|
+
-->
|
|
14
|
+
<style>
|
|
15
|
+
/* The title across the top; the frame under it, as large as the area allows, keeping the presenter's corner
|
|
16
|
+
(bottom-right, 504px, as zoom keeps it) free. With no presenter the frame takes the width. */
|
|
17
|
+
.l-embed { display: flex; flex-direction: column; gap: 26px; }
|
|
18
|
+
.l-embed .head { display: flex; flex-direction: column; gap: 10px; }
|
|
19
|
+
.l-embed .tt { font-size: var(--t-sub); line-height: 1.02; }
|
|
20
|
+
.l-embed .lead { font-size: var(--t-body); }
|
|
21
|
+
/* The frame keeps its still's shape (--ar: 2.5:1, the wide still the capture makes, 1600x640; a video poster's
|
|
22
|
+
16:9), as large as the area allows, at the text's left edge: the still shows whole, never cropped. */
|
|
23
|
+
.l-embed .area { flex: 1; min-height: 0; display: flex; padding-right: 504px; container-type: size; }
|
|
24
|
+
.l-embed .embed { --ar: 2.5; --frame-min: 400px; position: relative; flex: none; align-self: flex-start; width: min(100cqw, 100cqh * var(--ar-shown, var(--ar))); aspect-ratio: var(--ar-shown, var(--ar)); overflow: hidden; border: calc(3 * var(--line)) solid var(--ink); border-radius: min(calc(16 * var(--round)), var(--frame-min) / 16); background: var(--card);
|
|
25
|
+
box-shadow: calc(10 * var(--drop-x)) calc(10 * var(--drop-y)) calc(10 * var(--drop-blur)) color-mix(in srgb, var(--accent) var(--drop-mix), transparent); }
|
|
26
|
+
/* A map or a page has three stills, each shown at its own shape: still-mid (16:10) beside a presenter on a wide
|
|
27
|
+
screen, spanning from the title's edge to the presenter; the wide one with no presenter (below); still-tall on a phone. */
|
|
28
|
+
.l-embed .embed > .still-tall { display: none; }
|
|
29
|
+
.l-embed .embed:has(> .still-mid) { --ar-shown: var(--ar-mid); }
|
|
30
|
+
.l-embed .embed:has(> .still-mid) > .still:not(.still-mid) { display: none; }
|
|
31
|
+
.on-accent.l-embed .embed { box-shadow: calc(10 * var(--drop-x)) calc(10 * var(--drop-y)) calc(10 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
|
|
32
|
+
/* The still fills the frame; the placeholder is a hatched stand-in check fails on. */
|
|
33
|
+
.l-embed .still { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease-out; }
|
|
34
|
+
.l-embed div.still { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 8%, transparent) 0 14px, transparent 14px 28px), var(--tint-2); }
|
|
35
|
+
/* The player's control (embed-frame.js): the whole still is the tap target, a quiet pill in its top corner (clear of
|
|
36
|
+
a map's attribution) says what it does. */
|
|
37
|
+
.l-embed .embed:is(.is-live, .is-link):not(.is-open) { cursor: pointer; }
|
|
38
|
+
.l-embed .embed:is(.is-live, .is-link):not(.is-open):hover .still { transform: scale(1.015); }
|
|
39
|
+
.l-embed .embed-go { position: absolute; right: 18px; top: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border: calc(2 * var(--line)) solid var(--ink); border-radius: calc(999 * var(--round)); background: var(--card); color: var(--ink); font-weight: 700; font-family: var(--font); font-size: var(--t-body); text-decoration: none; cursor: pointer;
|
|
40
|
+
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); transition: transform .15s ease-out, background .15s ease-out; }
|
|
41
|
+
.l-embed .embed-go:hover, .l-embed .embed:is(.is-live, .is-link):hover .embed-go { transform: translateY(-2px); background: var(--accent); color: var(--accent-ink); }
|
|
42
|
+
.l-embed .embed-go svg, .l-embed .embed-shut svg { flex: none; }
|
|
43
|
+
.l-embed .embed.is-live .embed-go::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); }
|
|
44
|
+
.l-embed .embed.is-open .embed-go { display: none; }
|
|
45
|
+
.l-embed .embed-live { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; background: var(--card); }
|
|
46
|
+
.l-embed .embed-shut { position: absolute; right: 14px; top: 14px; z-index: 4; display: none; align-items: center; gap: 8px; padding: 10px 16px; border: calc(2 * var(--line)) solid var(--ink); border-radius: calc(999 * var(--round)); background: var(--card); color: var(--ink); font-weight: 700; font-family: var(--font); font-size: var(--t-label); cursor: pointer; box-shadow: calc(4 * var(--drop-x)) calc(4 * var(--drop-y)) 0 var(--ink); }
|
|
47
|
+
.l-embed .embed.is-open .embed-shut { display: inline-flex; }
|
|
48
|
+
/* No presenter: the frame may use the presenter's corner, and a map or a page shows its wide still there. */
|
|
49
|
+
@media (min-width: 651px) {
|
|
50
|
+
:root.hd-no-presenter .l-embed .area { padding-right: 0; }
|
|
51
|
+
:root.hd-no-presenter .l-embed .embed:has(> .still-mid) { --ar-shown: var(--ar); }
|
|
52
|
+
:root.hd-no-presenter .l-embed .embed:has(> .still-mid) > .still:not(.still-mid, .still-tall) { display: block; }
|
|
53
|
+
:root.hd-no-presenter .l-embed .embed:has(> .still-mid) > .still-mid { display: none; }
|
|
54
|
+
}
|
|
55
|
+
@media (prefers-reduced-motion: reduce) { .l-embed .still, .l-embed .embed-go { transition: none; } .l-embed .embed:not(.is-open):hover .still { transform: none; } }
|
|
56
|
+
@media (max-width: 650px) {
|
|
57
|
+
/* The title at the top of the card (the shell's one phone anchor, --hd-phone-anchor) and the frame under it, as
|
|
58
|
+
large as its still's shape allows above the presenter's foot. */
|
|
59
|
+
.slide.l-embed { gap: 14px; }
|
|
60
|
+
/* On a phone the frame takes the portrait still's shape (--ar-phone; the <picture> shows that still there), as large
|
|
61
|
+
as the card's free height under the title allows; a video's one poster keeps its 16:9. */
|
|
62
|
+
.l-embed .area { flex: 1; min-height: 0; padding-right: 0; }
|
|
63
|
+
.l-embed .embed { --ar-p: var(--ar-phone, var(--ar)); width: min(100cqw, 100cqh * var(--ar-p)); aspect-ratio: var(--ar-p); border-width: calc(2 * var(--line)); border-radius: calc(12 * var(--round)); }
|
|
64
|
+
/* The portrait still on a phone, whatever the presenter. */
|
|
65
|
+
.l-embed .embed:has(> .still-tall) > .still:not(.still-tall) { display: none; }
|
|
66
|
+
.l-embed .embed:has(> .still-tall) > .still-tall:not(.still-mid) { display: block; }
|
|
67
|
+
/* A small pill on a phone: it covers as little of the still as it can; in a narrow frame (the presenter's foot
|
|
68
|
+
leaves less height, so the frame is narrower) the icon alone, its name kept for a screen reader. */
|
|
69
|
+
.l-embed .embed { container-type: inline-size; }
|
|
70
|
+
@container (max-width: 300px) { .l-embed .embed-go > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .l-embed .embed-go { padding: 6px; } .l-embed .embed.is-live .embed-go::before { display: none; } }
|
|
71
|
+
.l-embed .embed-go { right: 8px; top: 8px; font-size: var(--t-label); padding: 5px 10px 5px 8px; gap: 5px; border-width: calc(1.5 * var(--line)); }
|
|
72
|
+
.l-embed .embed-go svg { width: 15px; height: 15px; }
|
|
73
|
+
.l-embed .embed.is-live .embed-go::before { width: 7px; height: 7px; }
|
|
74
|
+
/* Open on a phone: the frame takes the whole card (the slide), over the title, with its own Close in the top
|
|
75
|
+
corner; the player hides the presenter and leaves the deck's swipe alone until it closes. */
|
|
76
|
+
/* (The area's size containment would hold the open frame inside it: it lets go while a frame is open.) */
|
|
77
|
+
.l-embed .area:has(> .embed.is-open) { container-type: normal; }
|
|
78
|
+
.l-embed .embed.is-open { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 20; border: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto; }
|
|
79
|
+
.l-embed .embed-shut { right: 10px; top: 10px; font-size: var(--t-body); padding: 9px 14px; }
|
|
80
|
+
}
|
|
81
|
+
</style>
|
|
82
|
+
<section class="slide l-embed" id="__ID__" data-chapter="Where" data-note="Embed: name the page and the date its still was captured.">
|
|
83
|
+
<div class="head">
|
|
84
|
+
<div class="kicker">Where we meet</div>
|
|
85
|
+
<h2 class="tt" data-title-mobile="Ten minutes away.">Three venues, ten minutes from every office.</h2>
|
|
86
|
+
</div>
|
|
87
|
+
<div class="area">
|
|
88
|
+
<div class="embed" id="__ID__-embed" data-kind="map" data-embed="https://www.google.com/maps/place/Ferry+Building+Marketplace">
|
|
89
|
+
<div class="still" role="img" aria-label="Embed still placeholder"></div>
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
<div class="narration-slot"></div>
|
|
93
|
+
</section>
|
|
@@ -18,12 +18,18 @@ script: It does three things. First, [go: #__ID__-f1] it writes. Then [go: #__ID
|
|
|
18
18
|
.l-features b { font-size: 32px; letter-spacing: -.02em; line-height: 1.05; }
|
|
19
19
|
.l-features p { font-size: 20px; line-height: 1.3; opacity: .7; }
|
|
20
20
|
@media (max-width: 650px) {
|
|
21
|
-
.l-features .cards {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
.l-features .
|
|
25
|
-
.l-features
|
|
26
|
-
.l-features
|
|
21
|
+
.l-features .cards { --k: 3; flex: 1 1 0; display: flex; flex-direction: column; gap: calc(12px - 4px * var(--hd-phone-presenter)); margin-top: 4px; max-height: calc(var(--k) * 182px - 12px); }
|
|
22
|
+
/* The cards share the free height, at most about 170px each (the list's cap counts them), never under their words:
|
|
23
|
+
the list keeps its content's height as its minimum, so a long card makes the slide run over where check sees it. */
|
|
24
|
+
.l-features .cards:not(:has(> :nth-child(3))) { --k: 2; }
|
|
25
|
+
.l-features .cards:has(> :nth-child(4)) { --k: 4; }
|
|
26
|
+
.l-features .cards:has(> :nth-child(5)) { --k: 5; }
|
|
27
|
+
.l-features .cards > .card { flex: 1 1 auto; }
|
|
28
|
+
.l-features .card { display: grid; grid-template-columns: 48px 1fr; align-content: center; column-gap: 14px; row-gap: 4px; padding: calc(16px - 4px * var(--hd-phone-presenter)) 16px; border-radius: calc(16 * var(--round)); }
|
|
29
|
+
.l-features .card { --icon: 48; }
|
|
30
|
+
.l-features .icon { grid-row: span 2; align-self: center; }
|
|
31
|
+
.l-features b { font-size: 21px; }
|
|
32
|
+
.l-features p { font-size: 15px; }
|
|
27
33
|
}
|
|
28
34
|
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
29
35
|
@media (min-width: 651px) {
|
|
@@ -4,8 +4,8 @@ summary: Three to five stages, each narrower than the last, a name and a number
|
|
|
4
4
|
brief: Three to five narrowing stages, a name and a number each.
|
|
5
5
|
says: how many make it
|
|
6
6
|
needs: 3 to 5 stages with a number each
|
|
7
|
-
use: a sign-up or sales funnel, who opens and who finishes, a pipeline. Real numbers only, each from its source in data-note; the widths are fixed steps, not drawn to scale, so the numbers carry the size. A large presenter: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) narrows the funnel, clear of the presenter.
|
|
8
|
-
slot: bottom-
|
|
7
|
+
use: a sign-up or sales funnel, who opens and who finishes, a pipeline. Real numbers only, each from its source in data-note; the widths are fixed steps, not drawn to scale, so the numbers carry the size. The presenter stands bottom-left, under the title's column: keep the title to three lines (about 35 characters; check --layout counts them). A large presenter: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) narrows the funnel, clear of the presenter.
|
|
8
|
+
slot: bottom-left
|
|
9
9
|
presenter: stage
|
|
10
10
|
nopresenter: The funnel takes the full width of the slide.
|
|
11
11
|
cues: [go: #__ID__-s1] at the first stage, [go: #__ID__-s4] at the last, then [go: slot].
|
|
@@ -26,9 +26,16 @@ script: Of every link sent, [go: #__ID__-s1] most are opened, and more than half
|
|
|
26
26
|
.on-accent.l-funnel .stages li:last-child { background: var(--ink); color: var(--paper); }
|
|
27
27
|
.on-ink.l-funnel .stages li { 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); }
|
|
28
28
|
@media (max-width: 650px) {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
/* The stages share the free height, at most 130px a stage, never under their words: the list keeps its
|
|
30
|
+
content's height as its minimum, so stages that do not fit run over where check sees it. */
|
|
31
|
+
.l-funnel .stages { flex: 1 1 0; min-height: auto; justify-content: flex-start; gap: calc(10px - 4px * var(--hd-phone-presenter)); max-width: none; }
|
|
32
|
+
.l-funnel .stages li { flex: 1 1 auto; min-height: 0; max-height: 130px; gap: 10px; padding: 12px 14px; border-width: calc(2 * var(--line)); border-radius: calc(12 * 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); font-size: var(--t-body); }
|
|
31
33
|
.l-funnel .stages li span { font-size: var(--t-lead); }
|
|
34
|
+
/* The player grows the words into the free room (--hd-phone-grow, 0 to 1: packages/player/phone-fit.js), all stages alike: each
|
|
35
|
+
count up to the sub size beside the presenter and the title size on a silent deck, its label up to the lead
|
|
36
|
+
size on a silent deck. At 0 these are the sizes above, which check measures. */
|
|
37
|
+
.l-funnel .stages li { font-size: calc(var(--t-body) + (var(--t-lead) - var(--t-body)) * (1 - var(--hd-phone-presenter)) * var(--hd-phone-grow, 0)); }
|
|
38
|
+
.l-funnel .stages li span { font-size: calc(var(--t-lead) + (var(--t-sub) - var(--t-lead) + (var(--t-title) - var(--t-sub)) * (1 - var(--hd-phone-presenter))) * var(--hd-phone-grow, 0)); }
|
|
32
39
|
.l-funnel .stages li:nth-child(2) { --w: .92; }
|
|
33
40
|
.l-funnel .stages li:nth-child(3) { --w: .84; }
|
|
34
41
|
.l-funnel .stages li:nth-child(4) { --w: .76; }
|
|
@@ -41,13 +48,25 @@ script: Of every link sent, [go: #__ID__-s1] most are opened, and more than half
|
|
|
41
48
|
.l-funnel[data-presenter-size="xl"] .stages li { padding: 14px 22px; }
|
|
42
49
|
.l-funnel[data-presenter-size="xl"] .stages li span { font-size: var(--t-lead); }
|
|
43
50
|
}
|
|
51
|
+
/* The presenter stands bottom-left (slot-left): the title in a column over it (380px, or its longest word), the stages down the
|
|
52
|
+
whole right side, from 536px (the stage presenter at m ends there). A large presenter: today's column, moved to the right.
|
|
53
|
+
Wide screens, with a presenter that is not corner (corner ignores its slot and
|
|
54
|
+
stands bottom-right, so it, a slide without slot-left, a silent deck and a phone keep the rules above). */
|
|
55
|
+
@media not all and (max-width: 650px) {
|
|
56
|
+
:root:not(.hd-no-presenter) .l-funnel.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) { display: grid; grid-template-columns: minmax(380px, min-content) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); column-gap: 84px; align-content: stretch; }
|
|
57
|
+
:root:not(.hd-no-presenter) .l-funnel.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) > :is(.kicker, .tt, .lead) { grid-column: 1; }
|
|
58
|
+
:root:not(.hd-no-presenter) .l-funnel.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) > .tt { font-size: var(--t-sub); line-height: 1.02; }
|
|
59
|
+
:root:not(.hd-no-presenter) .l-funnel.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) .stages { grid-column: 2; grid-row: 1 / -1; max-width: none; width: 100%; margin: 0; align-self: stretch; }
|
|
60
|
+
:root:not(.hd-no-presenter) .l-funnel.slot-left[data-presenter-size="l"]:not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) { padding-left: 698px; }
|
|
61
|
+
:root:not(.hd-no-presenter) .l-funnel.slot-left[data-presenter-size="xl"]:not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) { padding-left: 848px; }
|
|
62
|
+
}
|
|
44
63
|
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
45
64
|
@media (min-width: 651px) {
|
|
46
65
|
:root.hd-no-presenter .l-funnel :is(.stages, .tt) { max-width: none; }
|
|
47
66
|
:root.hd-no-presenter .l-funnel .stages { padding: 0 120px; }
|
|
48
67
|
}
|
|
49
68
|
</style>
|
|
50
|
-
<section class="slide l-funnel" id="__ID__" data-chapter="Who finishes" data-note="Source: name where each number comes from (analytics, a dashboard, the date range).">
|
|
69
|
+
<section class="slide l-funnel slot-left" data-dock-clear=".stages li" id="__ID__" data-chapter="Who finishes" data-phone-grow=".stages" data-note="Source: name where each number comes from (analytics, a dashboard, the date range).">
|
|
51
70
|
<div class="kicker">Last 30 days</div>
|
|
52
71
|
<h2 class="tt" data-title-mobile="Most who open, finish.">Most who open it, finish it.</h2>
|
|
53
72
|
<ol class="stages">
|
|
@@ -45,12 +45,12 @@ script: Hi, [wave] this is __TITLE__. [look: h1] One idea, in a few minutes.
|
|
|
45
45
|
(a portrait); the title directly below it on the ground. */
|
|
46
46
|
.l-hero:has(> .art, > .mount) { display: flex; }
|
|
47
47
|
.l-hero:has(> .art, > .mount) .tt { font-size: var(--t-display); }
|
|
48
|
-
.l-hero .content { flex: none; justify-content:
|
|
48
|
+
.l-hero .content { flex: none; justify-content: var(--hd-phone-anchor); gap: 16px; }
|
|
49
49
|
.l-hero .art { flex: none; width: auto; height: auto; max-width: 100%; max-height: 300px; min-width: 0; min-height: 0; margin-top: 0; border-width: calc(2 * var(--line)); --frame-min: 167px; border-radius: min(calc(16 * var(--round)), var(--frame-min) / 8); 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); }
|
|
50
50
|
.l-hero .art.wide { --frame-min: 83px; }
|
|
51
51
|
.on-ink.l-hero .art { 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); }
|
|
52
52
|
.l-hero div.art { width: 100%; height: 240px; }
|
|
53
|
-
.l-hero:has(> .art.wide) { justify-content:
|
|
53
|
+
.l-hero:has(> .art.wide) { justify-content: var(--hd-phone-anchor); }
|
|
54
54
|
.l-hero div.art::after { padding: 8px 14px; border-width: calc(2 * var(--line)); font-size: 13px; }
|
|
55
55
|
}
|
|
56
56
|
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
@@ -4,8 +4,8 @@ summary: Two or three actors in parallel rows over the same three to five steps,
|
|
|
4
4
|
brief: Two or three actors in parallel rows over the same steps: who does what.
|
|
5
5
|
says: who does what
|
|
6
6
|
needs: 2 to 3 actors and the steps they share
|
|
7
|
-
use: a handoff between people and a product, you and the agent and the viewer, a team's roles. Each .lane is a row: its .who, then one cell per step, a .chip where that actor acts and an empty <i></i> where they do not. Set the number of steps as --steps on .lanes (4 by default; 5 at most). Each actor a word, each chip two to four words. A large presenter: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) narrows the rows, clear of the presenter.
|
|
8
|
-
slot: bottom-
|
|
7
|
+
use: a handoff between people and a product, you and the agent and the viewer, a team's roles. Each .lane is a row: its .who, then one cell per step, a .chip where that actor acts and an empty <i></i> where they do not. Set the number of steps as --steps on .lanes (4 by default; 5 at most). Each actor a word, each chip two to four words. The presenter stands bottom-left, under the title's column: keep the title to three lines (about 35 characters; check --layout counts them). A large presenter: data-presenter-size="l" or "xl" on this slide's own section tag (not the player tag) narrows the rows, clear of the presenter.
|
|
8
|
+
slot: bottom-left
|
|
9
9
|
presenter: stage
|
|
10
10
|
nopresenter: The rows take the full width of the slide.
|
|
11
11
|
cues: [look: #__ID__-lanes] as the narration names the actors; [go: #__ID__-c1] at a step it names, then [go: slot].
|
|
@@ -26,11 +26,11 @@ script: You ask, [go: #__ID__-c1] the agent writes it and narrates it, [go: #__I
|
|
|
26
26
|
@media (max-width: 650px) {
|
|
27
27
|
/* A phone: one block per actor, its name across the top and its chips in order beside each other, wrapping; the
|
|
28
28
|
empty steps drop out. No column is too narrow for a word. */
|
|
29
|
-
.l-lanes .lanes { flex: none; display: flex; flex-direction: column; gap:
|
|
30
|
-
.l-lanes .lane { display: flex; flex-wrap: wrap; gap:
|
|
29
|
+
.l-lanes .lanes { flex: none; display: flex; flex-direction: column; gap: calc(22px - 8px * var(--hd-phone-presenter)); max-width: none; }
|
|
30
|
+
.l-lanes .lane { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
31
31
|
.l-lanes .lane > i { display: none; }
|
|
32
32
|
.l-lanes .who { flex-basis: 100%; padding: 0 0 2px; border-right: 0; border-bottom: calc(2 * var(--line)) solid currentColor; }
|
|
33
|
-
.l-lanes .chip { padding:
|
|
33
|
+
.l-lanes .chip { padding: calc(9px - 2px * var(--hd-phone-presenter)) 12px; border-width: calc(2 * var(--line)); border-radius: calc(10 * var(--round)); font-size: var(--t-body); 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); }
|
|
34
34
|
}
|
|
35
35
|
/* A large presenter (data-presenter-size l or xl on this slide's section tag). */
|
|
36
36
|
@media not all and (max-width: 650px) {
|
|
@@ -40,6 +40,18 @@ script: You ask, [go: #__ID__-c1] the agent writes it and narrates it, [go: #__I
|
|
|
40
40
|
.l-lanes:is([data-presenter-size="l"], [data-presenter-size="xl"]) .who { --icon: 48; }
|
|
41
41
|
.l-lanes[data-presenter-size="xl"] .chip { padding: 10px 10px; font-size: var(--t-label); }
|
|
42
42
|
}
|
|
43
|
+
/* The presenter stands bottom-left (slot-left): the title in a column over it (380px, or its longest word), the lanes down the
|
|
44
|
+
whole right side, from 536px (the stage presenter at m ends there). A large presenter: today's column, moved to the right.
|
|
45
|
+
Wide screens, with a presenter that is not corner (corner ignores its slot and
|
|
46
|
+
stands bottom-right, so it, a slide without slot-left, a silent deck and a phone keep the rules above). */
|
|
47
|
+
@media not all and (max-width: 650px) {
|
|
48
|
+
:root:not(.hd-no-presenter) .l-lanes.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) { display: grid; grid-template-columns: minmax(380px, min-content) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); column-gap: 84px; align-content: stretch; }
|
|
49
|
+
:root:not(.hd-no-presenter) .l-lanes.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) > :is(.kicker, .tt, .lead) { grid-column: 1; }
|
|
50
|
+
:root:not(.hd-no-presenter) .l-lanes.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) > .tt { font-size: var(--t-sub); line-height: 1.02; }
|
|
51
|
+
:root:not(.hd-no-presenter) .l-lanes.slot-left:not([data-presenter-size="l"], [data-presenter-size="xl"]):not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) .lanes { grid-column: 2; grid-row: 1 / -1; max-width: none; width: 100%; margin: 0; align-self: stretch; }
|
|
52
|
+
:root:not(.hd-no-presenter) .l-lanes.slot-left[data-presenter-size="l"]:not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) { padding-left: 698px; }
|
|
53
|
+
:root:not(.hd-no-presenter) .l-lanes.slot-left[data-presenter-size="xl"]:not([data-presenter-style="corner"], :root:has(script[data-presenter-style="corner"]) :not([data-presenter-style])) { padding-left: 848px; }
|
|
54
|
+
}
|
|
43
55
|
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
44
56
|
@media (min-width: 651px) {
|
|
45
57
|
:root.hd-no-presenter .l-lanes :is(.lanes, .tt) { max-width: none; }
|
|
@@ -51,7 +63,7 @@ script: You ask, [go: #__ID__-c1] the agent writes it and narrates it, [go: #__I
|
|
|
51
63
|
.l-lanes .who { --icon: 36; gap: 8px; }
|
|
52
64
|
}
|
|
53
65
|
</style>
|
|
54
|
-
<section class="slide l-lanes" id="__ID__" data-chapter="Who does what" data-note="Source: where each step is described (the docs, the product).">
|
|
66
|
+
<section class="slide l-lanes slot-left" data-dock-clear=".chip, .who" id="__ID__" data-chapter="Who does what" data-note="Source: where each step is described (the docs, the product).">
|
|
55
67
|
<div class="kicker">Who does what</div>
|
|
56
68
|
<h2 class="tt" data-title-mobile="You, the agent, them.">You ask. The agent works. They watch.</h2>
|
|
57
69
|
<div class="lanes" id="__ID__-lanes">
|
|
@@ -16,7 +16,10 @@ script: Here is the number that matters. [look: #__ID__-figure] Three times fast
|
|
|
16
16
|
.l-number .tt { font-size: var(--t-sub); line-height: 1.02; max-width: 15em; }
|
|
17
17
|
.l-number .source { font: var(--t-label)/1.4 var(--mono); }
|
|
18
18
|
@media (max-width: 650px) {
|
|
19
|
-
.l-number .content { justify-content:
|
|
19
|
+
.l-number .content { justify-content: var(--hd-phone-anchor); gap: 12px; }
|
|
20
|
+
/* On a phone the player grows the text marked data-phone-fit into the free room (packages/player/phone-fit.js): the figure up to 3.5 times
|
|
21
|
+
(a short one grows most; one that spans its column stays), the line under it up to 1.8 times (1.3 times a title's size).
|
|
22
|
+
These sizes are its floor, and what check measures. */
|
|
20
23
|
.l-number .figure { font-size: 120px; }
|
|
21
24
|
}
|
|
22
25
|
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
@@ -27,8 +30,8 @@ script: Here is the number that matters. [look: #__ID__-figure] Three times fast
|
|
|
27
30
|
<section class="slide on-ink l-number" id="__ID__" data-chapter="The number" data-note="Source: name the dashboard, report or email the number comes from, with its date.">
|
|
28
31
|
<div class="content">
|
|
29
32
|
<div class="kicker">Proof</div>
|
|
30
|
-
<div class="figure" id="__ID__-figure">3<small>×</small></div>
|
|
31
|
-
<h2 class="tt" data-title-mobile="What it measures.">What the number measures, in one line.</h2>
|
|
33
|
+
<div class="figure" id="__ID__-figure" data-phone-fit="3.5" data-phone-fit-line>3<small>×</small></div>
|
|
34
|
+
<h2 class="tt" data-phone-fit="1.8" data-phone-fit-words="off" data-title-mobile="What it measures.">What the number measures, in one line.</h2>
|
|
32
35
|
<p class="source muted" id="__ID__-source">Source: the report, with its date.</p>
|
|
33
36
|
</div>
|
|
34
37
|
<div class="narration-slot"></div>
|
|
@@ -38,13 +38,23 @@ script: This is the screen people live on. [look: #__ID__-phone] Up top, [go: #_
|
|
|
38
38
|
@media (max-width: 650px) {
|
|
39
39
|
.l-phone-stage .frame.card { padding: 3px; border-radius: calc(24 * var(--round-phone)); }
|
|
40
40
|
.l-phone-stage .frame.card > .shot { border-radius: calc(20 * var(--round-phone)); }
|
|
41
|
-
/* Phones: the title, then the phone on the left with every note stacked beside it.
|
|
42
|
-
|
|
41
|
+
/* Phones: the title, then the phone on the left with every note stacked beside it. With the presenter it does not
|
|
42
|
+
grow: a taller phone is a wider one, and the notes' column beside it (about 106px) would be too narrow to read. */
|
|
43
|
+
.l-phone-stage { grid-template-columns: calc(212px - 14px * var(--hd-phone-presenter)) minmax(0, 1fr); grid-template-rows: none; grid-template-areas: none; grid-auto-rows: min-content; column-gap: 16px; row-gap: 12px; }
|
|
43
44
|
.l-phone-stage .head { grid-area: auto; grid-column: 1 / -1; grid-row: 1; gap: 6px; }
|
|
44
|
-
.l-phone-stage .frame.card { grid-area: auto; grid-column: 1; grid-row: 2 / span 6; width: 212px; height: auto; align-self: start; }
|
|
45
|
+
.l-phone-stage .frame.card { grid-area: auto; grid-column: 1; grid-row: 2 / span 6; width: calc(212px - 14px * var(--hd-phone-presenter)); height: auto; align-self: start; }
|
|
45
46
|
.l-phone-stage .side { display: contents; }
|
|
46
47
|
.l-phone-stage .side .note { grid-column: 2; position: relative; top: auto; right: auto; left: auto; translate: none; gap: 2px; text-align: left; align-self: start; }
|
|
47
48
|
.l-phone-stage .side .note::after { content: none; }
|
|
49
|
+
/* A silent deck (no presenter's foot): the notes go under the phone, side by side, and the phone grows into the
|
|
50
|
+
free height at its own shape (up to the card's width). With the presenter the notes stay beside it: under it,
|
|
51
|
+
the phone would be shorter than it is now. A browser without style queries keeps the notes beside it. */
|
|
52
|
+
@container style(--hd-phone-presenter: 0) {
|
|
53
|
+
.l-phone-stage { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr); grid-auto-rows: auto; column-gap: 12px; row-gap: 14px; }
|
|
54
|
+
.l-phone-stage .frame.card { grid-column: 1 / -1; grid-row: 2; width: auto; height: 100%; max-width: 100%; justify-self: center; }
|
|
55
|
+
/* Auto-placed after the head and the phone (both placed by row), three to a row: four to six notes wrap. */
|
|
56
|
+
.l-phone-stage .side .note { grid-column: auto; grid-row: auto; }
|
|
57
|
+
}
|
|
48
58
|
}
|
|
49
59
|
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
50
60
|
@media (min-width: 651px) {
|
|
@@ -6,6 +6,7 @@ says: this is real
|
|
|
6
6
|
needs: 1 photo
|
|
7
7
|
use: a strong photo that is the point of the slide (the place, the object, the crowd, the moment) anywhere after the cover; for the first slide use cover-band. Its .pic is a placeholder check fails on: put in a wide photo (yours, or a found one: `hyperdecks photos add <id> --for picture-full`, deck_guide topic photos; 16:9 or wider; on a phone it shows whole at its own shape, so give it width and height) as <img class="pic" src="…" alt="…" width="…" height="…">. The slide is its frame, so the photo fills it (cover): the panel and the presenter keep to the left third, so keep the subject in the right two-thirds; set object-position on the img to move it. The panel grows with the words; never move them off the panel onto the picture. Never a generated or stock stand-in for a real event. A caption (optional, any theme): wrap the picture as <figure class="mount" data-caption="Where, when">…</figure>; short (about 40 characters), never the alt text.
|
|
8
8
|
slot: bottom-left
|
|
9
|
+
flip: data-flip on the section mirrors it: the panel and the presenter under it keep to the right third. Alternate it with a neighbouring picture-full slide.
|
|
9
10
|
presenter: stage
|
|
10
11
|
nopresenter: The panel may widen; the left third below it is free.
|
|
11
12
|
cues: [look: #__ID__-pic] as the narration turns to the picture.
|
|
@@ -23,19 +24,28 @@ script: This is where it happens. [look: #__ID__-pic] Every Saturday, all year r
|
|
|
23
24
|
.l-picture-full .tt { font-size: var(--t-sub); line-height: 1.02; }
|
|
24
25
|
.l-picture-full .lead { font-size: var(--t-body); }
|
|
25
26
|
@media (max-width: 650px) {
|
|
26
|
-
/* Phones: the picture across the top at its own shape (
|
|
27
|
+
/* Phones: the picture across the top, at its own shape (a portrait cropped to 400px tall), the panel directly under it
|
|
28
|
+
(never on it), its type a step up so the words use the height the picture leaves. The picture is never grown past its
|
|
29
|
+
shape: a wide one cropped to fill loses its sides, and the words in a screenshot with them. */
|
|
27
30
|
.l-picture-full { justify-content: flex-start; align-items: stretch; gap: 0; }
|
|
28
|
-
.l-picture-full .pic { position: relative; inset: auto; flex: none; width: auto; height: auto; max-height:
|
|
31
|
+
.l-picture-full .pic { position: relative; inset: auto; flex: none; width: auto; height: auto; max-height: 400px; margin: -28px -20px 0; }
|
|
29
32
|
.l-picture-full div.pic { aspect-ratio: 16 / 9; }
|
|
30
33
|
.slide.l-picture-full > .mount { position: relative; inset: auto; flex: none; margin: -28px -20px 0; }
|
|
31
34
|
.l-picture-full .mount > .pic { margin: 0; }
|
|
32
35
|
.l-picture-full .mount[data-caption]::after { right: 10px; bottom: 10px; padding: 3px 8px; }
|
|
33
|
-
.l-picture-full .panel { gap:
|
|
36
|
+
.l-picture-full .panel { gap: 12px; width: auto; min-width: 0; max-width: none; margin-top: 12px; padding: 20px 20px 22px; border-width: calc(2 * var(--line)); border-radius: calc(16 * var(--round)); 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); }
|
|
37
|
+
.l-picture-full .tt { font-size: var(--t-title); }
|
|
38
|
+
.l-picture-full .lead { font-size: var(--t-lead); }
|
|
34
39
|
}
|
|
35
40
|
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
36
41
|
@media (min-width: 651px) {
|
|
37
42
|
:root.hd-no-presenter .l-picture-full .panel { max-width: 720px; }
|
|
38
43
|
}
|
|
44
|
+
/* Flipped (data-flip on the section): the mirror image, for a neighbour of the same layout. Wide screens only; a phone
|
|
45
|
+
stacks the same either way. The presenter follows the panel (layouts/_deck.html). */
|
|
46
|
+
@media not all and (max-width: 650px) {
|
|
47
|
+
.l-picture-full[data-flip] { align-items: flex-end; }
|
|
48
|
+
}
|
|
39
49
|
</style>
|
|
40
50
|
<section class="slide l-picture-full slot-left" id="__ID__" data-chapter="In real life" data-note="Photo: say who took it, where and when.">
|
|
41
51
|
<div class="pic" id="__ID__-pic" role="img" aria-label="Photo placeholder"></div>
|
|
@@ -6,6 +6,7 @@ says: this is real
|
|
|
6
6
|
needs: 1 portrait photo
|
|
7
7
|
use: a person, a product held in the hand or a punchline told by a picture: one tall picture that earns the slide. Its .pic is a placeholder check fails on: put in a portrait photo (3:4 to 9:16; a found one: `hyperdecks photos add <id> --for portrait`, deck_guide topic photos) as <img class="pic" src="…" alt="…" width="…" height="…">; the card takes the picture's shape (up to the slide's height and 560px wide), so it is never cropped and never banded. A face only with permission; never a generated or stock stand-in for a real person. For a wide picture use picture-full. A caption (optional, any theme): wrap the picture as <figure class="mount" data-caption="Where, when">…</figure>; short (about 40 characters), never the alt text.
|
|
8
8
|
slot: bottom-left
|
|
9
|
+
flip: data-flip on the section mirrors it: the portrait on the left, tilted the other way, the words on the right with the presenter under them (bottom-right). Alternate it with a neighbouring portrait slide.
|
|
9
10
|
presenter: stage
|
|
10
11
|
nopresenter: The copy centres vertically beside the picture instead of leaving the bottom-left free.
|
|
11
12
|
cues: [look: #__ID__-pic] as the narration turns to the picture.
|
|
@@ -33,6 +34,13 @@ script: This is the person behind it. [look: #__ID__-pic] Every order, packed by
|
|
|
33
34
|
@media (min-width: 651px) {
|
|
34
35
|
:root.hd-no-presenter .l-portrait .text { align-self: center; padding-top: 0; }
|
|
35
36
|
}
|
|
37
|
+
/* Flipped (data-flip on the section): the mirror image, for a neighbour of the same layout. Wide screens only; a phone
|
|
38
|
+
stacks the same either way. The presenter follows the panel (layouts/_deck.html). */
|
|
39
|
+
@media not all and (max-width: 650px) {
|
|
40
|
+
.l-portrait[data-flip] { grid-template-columns: auto minmax(0, 1fr); }
|
|
41
|
+
.l-portrait[data-flip] .text { grid-column: 2; grid-row: 1; }
|
|
42
|
+
.l-portrait[data-flip] > :is(.pic, .mount) { grid-column: 1; grid-row: 1; margin-right: 0; margin-left: 24px; --tilt: -3deg; }
|
|
43
|
+
}
|
|
36
44
|
</style>
|
|
37
45
|
<section class="slide l-portrait slot-left" id="__ID__" data-chapter="The people" data-note="Photo: say who it is, who took it, when, and that they agreed to be shown.">
|
|
38
46
|
<div class="text">
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
layout: question-choice
|
|
3
|
+
summary: One question with two to four answer cards the viewer taps (or A to D). The deck waits for their answer or Skip, then moves on; you see who picked what.
|
|
4
|
+
brief: One question, two to four answer cards; the deck waits for a pick or Skip.
|
|
5
|
+
says: a question for the viewer
|
|
6
|
+
needs: 2 to 4 short answers
|
|
7
|
+
use: its styles are required (see Style). qualify a lead or tailor the follow-up (which plan, how big, when). Keep the title to 72 characters (data-title-mobile, what a phone shows, to 40), each answer (its <b>) to 24 and its line (the <span>) to 50: the type steps down to fit, and check warns past them. One question a slide, 20 a deck, never the first or last slide. Each answer is a <button data-option="id">: an id of its own (letters, digits, - or _), kept the same between releases with the slide's id (answers are stored under them). Letters run A, B, C, D: keys pick by the cards' order; Esc skips. Keep data-question="choice", Skip (data-answer-skip) and the status line (data-answer-status): it and the failed card are all a viewer sees when a save fails. A question is optional: the viewer answers or skips, and the first Next with no answer nudges them once. Add data-required to the slide only where the deck can't go on without the answer (a plan that picks the next slides, an email the sender must have): no Skip, and nothing passes it until it's answered; one or two a deck at most. data-answer-ui marks what a still (a thumbnail, an export, the PDF) leaves out. Recipient links store answers; QA links, previews and your own opens don't. Read them with `hyperdecks answers <slug>` (`deck_answers`): counts per option, written answers in full, a row per person with what they changed or skipped; `--share <token> --wait` (`wait`) waits until that link has answered. You get one email per person when they finish. The presenter asks it large (data-presenter-size="xl", answers two a row beside it; l does the same, m gives one row).
|
|
8
|
+
slot: bottom-left
|
|
9
|
+
presenter: stage
|
|
10
|
+
nopresenter: The question and its cards take the full width of the slide.
|
|
11
|
+
cues: [look: #__ID__-options] as the presenter reads out the answers.
|
|
12
|
+
script: One question for you. Which of these [look: #__ID__-options] fits your team best? Pick one, or skip it.
|
|
13
|
+
-->
|
|
14
|
+
<style>
|
|
15
|
+
/* fitQuestion (the player; check --layout) steps --q-title down, then --q-text, until all of it is inside the slide. */
|
|
16
|
+
.l-question-choice .ask { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; justify-content: safe center; gap: calc(26px * var(--q-text, 1)); padding-left: 400px; }
|
|
17
|
+
.l-question-choice .ask > * { flex-shrink: 0; }
|
|
18
|
+
.l-question-choice .tt { font-size: max(42px, var(--t-title) * var(--q-title, 1)); text-wrap: balance; }
|
|
19
|
+
.l-question-choice .options { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 20px; }
|
|
20
|
+
.l-question-choice .opt { position: relative; display: flex; flex-direction: column; gap: calc(10px * var(--q-text, 1)); min-width: 0; min-height: 180px; padding: calc(22px * var(--q-text, 1)) 24px; border: calc(3 * var(--line)) solid var(--ink); border-radius: calc(22 * var(--round)); background: var(--card); 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); font-family: var(--font); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .16s, opacity .16s, box-shadow .16s, transform .16s cubic-bezier(.2, .7, .3, 1); }
|
|
21
|
+
.l-question-choice .opt kbd { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: calc(2 * var(--line)) solid currentColor; border-radius: calc(9 * var(--round)); font: 700 var(--t-label) var(--mono); transition: background-color .16s, color .16s; }
|
|
22
|
+
.l-question-choice .opt b { margin-top: auto; font-size: max(28px, 34px * var(--q-text, 1)); line-height: 1.08; letter-spacing: -.02em; overflow-wrap: anywhere; }
|
|
23
|
+
.l-question-choice .opt span { font-size: max(23.5px, 25px * var(--q-text, 1)); line-height: 1.22; }
|
|
24
|
+
/* Saved, and only then: the accent, and the letter becomes a tick (drawn, so it needs no font's glyph). */
|
|
25
|
+
.l-question-choice .opt[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
|
|
26
|
+
.l-question-choice .opt[aria-pressed="true"] kbd { background: currentColor; font-size: 0; }
|
|
27
|
+
.l-question-choice .opt[aria-pressed="true"] kbd::after { content: ""; width: 20px; height: 16px; background: var(--accent); clip-path: polygon(14% 44%, 0 64%, 40% 100%, 100% 18%, 84% 0, 38% 62%); }
|
|
28
|
+
.l-question-choice.is-answered .opt[aria-pressed="false"] { opacity: .6; }
|
|
29
|
+
/* On its way: a wash, a dashed edge and the word. Not saved: the card as it was, and the word, in the letter's row. */
|
|
30
|
+
.l-question-choice .opt[data-answer]::after { content: "Saving…"; position: absolute; top: calc(24px * var(--q-text, 1)); right: 24px; height: 38px; display: flex; align-items: center; font: 700 24px var(--font); white-space: nowrap; }
|
|
31
|
+
.l-question-choice .opt[data-answer="failed"]::after { content: "Not saved"; padding: 0 12px; border-radius: calc(9 * var(--round)); background: #b3261e; color: #fff; }
|
|
32
|
+
/* Its reply was lost: it may be saved, so it isn't called unsaved. */
|
|
33
|
+
.l-question-choice .opt[data-answer="unsure"]::after { content: "Try again"; padding: 0 12px; border-radius: calc(9 * var(--round)); background: #7a4b00; color: #fff; }
|
|
34
|
+
.l-question-choice .opt[data-answer="pending"] { border-style: dashed; background: color-mix(in srgb, var(--accent) 22%, var(--card)); cursor: progress; }
|
|
35
|
+
.l-question-choice.is-answered .opt[data-answer] { opacity: 1; }
|
|
36
|
+
/* A mouse or trackpad over a card: it lifts, its shadow deepens, it takes a wash of the accent (so a theme without
|
|
37
|
+
shadows shows it too) and its letter fills; pressed, it sits back down. Never on touch, where a hover would stick. */
|
|
38
|
+
@media (hover: hover) and (pointer: fine) {
|
|
39
|
+
.l-question-choice .opt:hover { transform: translateY(-6px); box-shadow: calc(12 * var(--drop-x)) calc(14 * var(--drop-y)) calc(14 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
|
|
40
|
+
.l-question-choice .opt:not([aria-pressed="true"]):hover { background: color-mix(in srgb, var(--accent) 22%, var(--card)); opacity: 1; }
|
|
41
|
+
.l-question-choice .opt:not([aria-pressed="true"]):hover kbd { background: var(--ink); color: var(--card); }
|
|
42
|
+
.l-question-choice .opt:active { transform: none; 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); }
|
|
43
|
+
.l-question-choice .skip:hover { text-decoration-thickness: .16em; }
|
|
44
|
+
}
|
|
45
|
+
@media (prefers-reduced-motion: reduce) {
|
|
46
|
+
.l-question-choice :is(.opt, .opt kbd) { transition: none; }
|
|
47
|
+
.l-question-choice .opt:hover { transform: none; }
|
|
48
|
+
}
|
|
49
|
+
.l-question-choice .foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; }
|
|
50
|
+
.l-question-choice .foot button { font: 700 24px var(--font); color: inherit; cursor: pointer; }
|
|
51
|
+
.l-question-choice .skip { min-width: 74px; min-height: 74px; padding: 8px 4px; border: 0; background: none; text-align: left; text-decoration: underline; text-underline-offset: .2em; }
|
|
52
|
+
.l-question-choice .hint { font: 23.5px/1.2 var(--mono); letter-spacing: -.02em; opacity: .75; }
|
|
53
|
+
/* A row of its own, with room for the longest message (two lines) always kept, so none ever moves or cuts anything. */
|
|
54
|
+
.l-question-choice .status { flex: 1 0 100%; min-height: 2.5em; font-size: 23.5px; line-height: 1.25; }
|
|
55
|
+
.l-question-choice :is(button, textarea):focus-visible { outline: thick solid var(--accent-2); outline-offset: 4px; } /* never a theme unit: a theme without lines still shows the focus */
|
|
56
|
+
@media (max-width: 650px) {
|
|
57
|
+
/* From the top, and the cards share all the height: one to a row, its letter beside its words, so they read large. */
|
|
58
|
+
/* The band kept for the presenter is as tall as its head and its caption, no more; with captions only, as tall as they are. */
|
|
59
|
+
.slide.l-question-choice { padding-bottom: calc(28px + 122px * var(--hd-phone-presenter, 1)); }
|
|
60
|
+
:root:has(.hd-presenter[data-mode="none"]) .slide.l-question-choice { padding-bottom: calc(28px + 92px * var(--hd-phone-presenter, 1)); }
|
|
61
|
+
/* A silent deck never shows a caption: Skip and the messages stand beside the head, where one would be. */
|
|
62
|
+
.hd-silent .slide.l-question-choice { padding-bottom: 20px; }
|
|
63
|
+
.hd-silent .l-question-choice .foot { align-content: center; min-height: calc(128px * var(--hd-phone-presenter, 1)); padding-right: calc(160px * var(--hd-phone-presenter, 1)); }
|
|
64
|
+
.l-question-choice .tt { font-size: max(26px, var(--t-title) * var(--q-title, 1)); }
|
|
65
|
+
.l-question-choice .ask { justify-content: var(--hd-phone-anchor, start); gap: calc(14px * var(--q-text, 1) * var(--q-title, 1)); padding-left: 0; }
|
|
66
|
+
.l-question-choice .options { flex: 1 0 auto; grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(min-content, 1fr); gap: max(6px, 8px * var(--q-text, 1)); }
|
|
67
|
+
.l-question-choice .opt { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-auto-rows: min-content; align-content: center; gap: 2px 12px; min-height: 0; padding: calc(10px * var(--q-text, 1) * var(--q-title, 1)) 12px; 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); }
|
|
68
|
+
.l-question-choice .opt kbd { grid-row: span 2; align-self: center; width: 30px; height: 30px; border-radius: calc(7 * var(--round)); }
|
|
69
|
+
.l-question-choice .opt[aria-pressed="true"] kbd::after { width: 14px; height: 11px; }
|
|
70
|
+
.l-question-choice .opt b { margin: 0; font-size: max(16px, 20px * var(--q-text, 1)); }
|
|
71
|
+
.l-question-choice .opt span { font-size: max(14px, 16px * var(--q-text, 1)); }
|
|
72
|
+
/* What became of it takes its line's place, over nothing else. */
|
|
73
|
+
.l-question-choice .opt[data-answer] span { display: none; }
|
|
74
|
+
.l-question-choice .opt[data-answer]::after { position: static; grid-column: 2; height: auto; justify-self: start; padding: 2px 8px; font-size: 14px; line-height: 1.22; }
|
|
75
|
+
.l-question-choice .opt[data-answer="pending"]::after { padding: 2px 0; }
|
|
76
|
+
/* Skip and the messages share a row. */
|
|
77
|
+
.l-question-choice .foot { flex-wrap: nowrap; gap: 0 14px; min-height: 54px; }
|
|
78
|
+
.l-question-choice .foot button { font-size: 17px; }
|
|
79
|
+
.l-question-choice .skip { min-width: 48px; min-height: 44px; }
|
|
80
|
+
.l-question-choice .status { flex: 1 1 0; min-width: 0; min-height: 0; max-height: none; font-size: 14px; }
|
|
81
|
+
.l-question-choice .hint { display: none; }
|
|
82
|
+
/* Silent beside a presenter, the message has a row of its own above Skip (two lines kept, so Skip never moves). */
|
|
83
|
+
.hd-silent:has(.hd-presenter:not([data-mode="none"])) .l-question-choice .foot { flex-wrap: wrap; }
|
|
84
|
+
.hd-silent:has(.hd-presenter:not([data-mode="none"])) .l-question-choice .status { order: -1; flex: 1 0 100%; min-height: 2.5em; }
|
|
85
|
+
}
|
|
86
|
+
/* The question starts just past the presenter's head at each size (the layout's own, xl, is twice m here). The
|
|
87
|
+
presenter stands in the middle of the height. A live head fills about 70% of its box, so its box goes a little past the slide's
|
|
88
|
+
edge and under the question's; a still may fill it, so it stays whole, on the slide and clear of the question. */
|
|
89
|
+
@media not all and (max-width: 650px) {
|
|
90
|
+
.l-question-choice[data-presenter-size="xl"] { --hd-presenter-scale: 2; }
|
|
91
|
+
.l-question-choice[data-presenter-size="l"] .ask { padding-left: 440px; }
|
|
92
|
+
.l-question-choice[data-presenter-size="xl"] .ask { padding-left: 590px; }
|
|
93
|
+
.l-question-choice.slot-left .narration-slot { top: calc(50% - var(--hd-slot-h, 628px) * .6); bottom: auto; left: 24px; } /* the head, below its captions, in the middle */
|
|
94
|
+
:root:has(.hd-style-stage:is([data-mode="head"], [data-mode="loading"])) .l-question-choice[data-presenter-size="xl"] .ask { padding-left: 504px; }
|
|
95
|
+
.l-question-choice[data-presenter-size="xl"].slot-left .narration-slot { left: 0; }
|
|
96
|
+
:root:has(.hd-style-stage:is([data-mode="head"], [data-mode="loading"])) .l-question-choice[data-presenter-size="xl"].slot-left .narration-slot { left: calc(var(--hd-slot-w, 640px) * -.075); }
|
|
97
|
+
/* Two a row, as tall as the slide has room for. */
|
|
98
|
+
.l-question-choice:is([data-presenter-size="l"], [data-presenter-size="xl"]) .options { flex: 1 0 auto; grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(min-content, 1fr); }
|
|
99
|
+
.l-question-choice:is([data-presenter-size="l"], [data-presenter-size="xl"]) .opt { min-height: 0; }
|
|
100
|
+
.l-question-choice:is([data-presenter-size="l"], [data-presenter-size="xl"]) .options > :nth-child(3):last-child { grid-column: 1 / -1; }
|
|
101
|
+
}
|
|
102
|
+
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
103
|
+
@media (min-width: 651px) {
|
|
104
|
+
:root.hd-no-presenter .l-question-choice .ask { padding-left: 0 !important; } /* over the live head's, for one turned off */
|
|
105
|
+
:root.hd-no-presenter .l-question-choice:is([data-presenter-size]) .options { flex: none; max-height: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; grid-auto-rows: auto; }
|
|
106
|
+
:root.hd-no-presenter .l-question-choice:is([data-presenter-size]) .options > :nth-child(3):last-child { grid-column: auto; }
|
|
107
|
+
:root.hd-no-presenter .l-question-choice:is([data-presenter-size]) .opt { min-height: 300px; }
|
|
108
|
+
}
|
|
109
|
+
</style>
|
|
110
|
+
<section class="slide on-tint l-question-choice slot-left" id="__ID__" data-question="choice" data-interactive data-presenter-size="xl" data-chapter="A question" data-note="A question for the viewer: no facts.">
|
|
111
|
+
<div class="ask">
|
|
112
|
+
<div class="kicker">A question for you</div>
|
|
113
|
+
<h2 class="tt" id="__ID__-title" data-title-mobile="Which fits best?">Which fits your team?</h2>
|
|
114
|
+
<div class="options" id="__ID__-options" role="group" aria-labelledby="__ID__-title">
|
|
115
|
+
<button class="opt" type="button" data-option="starting"><kbd>A</kbd><b>Just starting</b><span>We have nothing yet.</span></button>
|
|
116
|
+
<button class="opt" type="button" data-option="growing"><kbd>B</kbd><b>Growing</b><span>It works. We need more.</span></button>
|
|
117
|
+
<button class="opt" type="button" data-option="switching"><kbd>C</kbd><b>Switching</b><span>We use something else.</span></button>
|
|
118
|
+
</div>
|
|
119
|
+
<div class="foot" data-answer-ui>
|
|
120
|
+
<button class="skip" type="button" data-answer-skip>Skip</button>
|
|
121
|
+
<span class="hint" data-answer-hint>Press a letter, or Esc to skip</span>
|
|
122
|
+
<p class="status" role="status" data-answer-status></p>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
<div class="narration-slot"></div>
|
|
126
|
+
</section>
|