@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
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
layout: compare
|
|
3
3
|
summary: Before and after (or them and us) side by side, three short lines each.
|
|
4
|
-
|
|
4
|
+
brief: Before and after (or them and us) side by side, three short lines each.
|
|
5
|
+
use: the change your idea makes. Keep the rows parallel so each line has its counterpart. For a list of what is allowed and what is not (what goes in, what stays out), put the allowed items in the right-hand .is-after column, the highlighted one, the rest on the left, and label both ("Goes in", "Stays out"). For a single rule and the right way to do it, use strike.
|
|
5
6
|
slot: bottom-right
|
|
6
7
|
presenter: stage
|
|
7
8
|
nopresenter: The two columns widen to the full frame.
|
|
@@ -10,15 +11,15 @@ script: Today it looks like this. [look: #__ID__-before] With us, [go: #__ID__-a
|
|
|
10
11
|
-->
|
|
11
12
|
<style>
|
|
12
13
|
.l-compare .cols { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 960px; align-content: center; }
|
|
13
|
-
.l-compare .col { border-radius:
|
|
14
|
+
.l-compare .col { border-radius: calc(28 * var(--round)); padding: 32px 34px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
|
|
14
15
|
.l-compare .col.is-after { background: var(--ink); color: var(--paper); }
|
|
15
16
|
.l-compare .label { font: 700 var(--t-label) var(--mono); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; }
|
|
16
17
|
.l-compare .is-after .label { color: var(--accent); }
|
|
17
|
-
.l-compare li { list-style: none; font-size: var(--t-body); line-height: 1.3; padding: 14px 0; border-top:
|
|
18
|
+
.l-compare li { list-style: none; font-size: var(--t-body); line-height: 1.3; padding: 14px 0; border-top: calc(1 * var(--line)) solid color-mix(in srgb, currentColor 18%, transparent); }
|
|
18
19
|
.l-compare .tt { max-width: 11em; }
|
|
19
20
|
@media (max-width: 650px) {
|
|
20
21
|
.l-compare .cols { flex: none; grid-template-columns: 1fr; gap: 10px; }
|
|
21
|
-
.l-compare .col { border-radius:
|
|
22
|
+
.l-compare .col { border-radius: calc(16 * var(--round)); padding: 12px 16px; }
|
|
22
23
|
.l-compare .label { margin-bottom: 4px; }
|
|
23
24
|
.l-compare li { padding: 5px 0; }
|
|
24
25
|
}
|
|
@@ -26,6 +27,14 @@ script: Today it looks like this. [look: #__ID__-before] With us, [go: #__ID__-a
|
|
|
26
27
|
@media (min-width: 651px) {
|
|
27
28
|
:root.hd-no-presenter .l-compare .cols { max-width: none; }
|
|
28
29
|
}
|
|
30
|
+
/* Icon slot (optional): an icon before each side's label (hyperdecks icons search <word> --for compare). */
|
|
31
|
+
.l-compare .label { --icon: 40; }
|
|
32
|
+
.on-accent.l-compare .col:not(.is-after) { --icon-fill: var(--icon-tile-accent, var(--card)); --icon-fg: var(--icon-ink-accent, var(--ink)); }
|
|
33
|
+
.l-compare .label:has(> .icon) { display: flex; align-items: center; gap: 14px; }
|
|
34
|
+
@media (max-width: 650px) {
|
|
35
|
+
.l-compare .label { --icon: 24; }
|
|
36
|
+
.l-compare .label:has(> .icon) { gap: 8px; }
|
|
37
|
+
}
|
|
29
38
|
</style>
|
|
30
39
|
<section class="slide l-compare" id="__ID__" data-chapter="Before and after" data-note="Source: name where each side's facts come from.">
|
|
31
40
|
<div class="kicker">Before and after</div>
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
layout: cover-band
|
|
3
3
|
summary: A cover with the picture filling the slide and the title on a solid, inked panel of the theme's paper in the bottom-left, so the title's contrast never depends on the picture.
|
|
4
|
-
|
|
4
|
+
brief: A cover: the picture fills the slide, the title on a solid panel bottom-left.
|
|
5
|
+
use: the first slide when the picture is the story (a place, an object, a crowd) and wants the whole frame. Its .art is a placeholder check fails on: put in a wide picture of the real subject (a found photo: add_photo with for "cover-band", `hyperdecks photos add <id> --for cover-band`, deck_guide topic photos; or gen-image / generate_image, 16:9) as <img class="art">; keep the subject top or top-right: the panel covers the bottom-left and the presenter the bottom-right. The panel grows with the title; never move the title off the panel onto the picture. Without art the panel sits on the slide's ground.
|
|
5
6
|
slot: bottom-right
|
|
6
7
|
presenter: stage
|
|
7
|
-
nopresenter: The panel
|
|
8
|
+
nopresenter: The panel keeps its width, so the freed corner stays the picture's and no more of its subject is covered.
|
|
8
9
|
cues: [wave] at the hello, [look: h1] when the narration says the title.
|
|
9
10
|
script: Hi, [wave] this is __TITLE__. [look: h1] One idea, in a few minutes.
|
|
10
11
|
-->
|
|
@@ -15,22 +16,25 @@ script: Hi, [wave] this is __TITLE__. [look: h1] One idea, in a few minutes.
|
|
|
15
16
|
.l-cover-band:has(> .art) > .brand-logo { position: absolute; top: 28px; left: 72px; }
|
|
16
17
|
.l-cover-band .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
|
|
17
18
|
.l-cover-band div.art { background: color-mix(in srgb, var(--ink) 6%, var(--paper)) repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 10%, transparent) 0 2px, transparent 2px 22px); }
|
|
18
|
-
.l-cover-band div.art::after { content: "Art goes here"; position: absolute; left: 70%; top: 34%; transform: translate(-50%, -50%); padding: 14px 26px; border:
|
|
19
|
-
.l-cover-band .content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; max-width: 980px; padding: 36px 44px 40px; border:
|
|
19
|
+
.l-cover-band div.art::after { content: "Art goes here"; position: absolute; left: 70%; top: 34%; transform: translate(-50%, -50%); padding: 14px 26px; border: calc(3 * var(--line)) dashed var(--ink); border-radius: calc(16 * var(--round)); background: var(--paper); color: var(--ink); font: 700 24px var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
|
|
20
|
+
.l-cover-band .content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; max-width: 980px; padding: 36px 44px 40px; border: calc(4 * var(--line)) solid var(--ink); border-radius: calc(28 * var(--round)); background: var(--paper); color: var(--ink); box-shadow: calc(14 * var(--drop-x)) calc(14 * var(--drop-y)) calc(14 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
|
|
20
21
|
.l-cover-band .tt { font-size: min(var(--t-display), 96px); line-height: .92; }
|
|
21
22
|
.l-cover-band:not(:has(> .art)) { justify-content: center; }
|
|
22
23
|
@media (max-width: 650px) {
|
|
23
24
|
/* Phones: the picture across the top, the panel below it, down to the presenter's corner. */
|
|
24
25
|
.l-cover-band { justify-content: flex-start; align-items: stretch; gap: 0; }
|
|
25
|
-
.l-cover-band .art {
|
|
26
|
-
.l-cover-band
|
|
27
|
-
.l-cover-band .
|
|
26
|
+
.l-cover-band:not(:has(> .art)) { justify-content: var(--hd-phone-anchor); }
|
|
27
|
+
.l-cover-band:not(:has(> .art)) .content { margin-top: 0; }
|
|
28
|
+
.l-cover-band .art { position: relative; inset: auto; flex: 1 1 210px; width: auto; height: auto; min-height: 210px; max-height: 400px; margin: -28px -20px 0; }
|
|
29
|
+
.l-cover-band div.art::after { left: 50%; top: 50%; padding: 8px 14px; border-width: calc(2 * var(--line)); font-size: 13px; }
|
|
30
|
+
.l-cover-band .content { gap: 12px; margin-top: -36px; padding: 18px 18px 20px; 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); }
|
|
28
31
|
.l-cover-band .tt { font-size: var(--t-display); }
|
|
29
32
|
.l-cover-band:has(> .art) > .brand-logo { top: 12px; left: 20px; }
|
|
30
33
|
}
|
|
31
|
-
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free
|
|
34
|
+
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free, and it is the
|
|
35
|
+
picture's: the panel stays 980px wide (a wider one covered the subject). Phones keep this layout's rules. */
|
|
32
36
|
@media (min-width: 651px) {
|
|
33
|
-
:root.hd-no-presenter .l-cover-band .content { max-width:
|
|
37
|
+
:root.hd-no-presenter .l-cover-band .content { max-width: 980px; }
|
|
34
38
|
}
|
|
35
39
|
</style>
|
|
36
40
|
<section class="slide l-cover-band" id="__ID__" data-chapter="Hello" data-note="Title slide: no facts.">
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
layout: cover-frame
|
|
3
3
|
summary: A framed cover: the title across the top on the slide's own ground, the picture below it in a clean card (ink edge, rounded, a slight tilt) with a hard edge, never faded. The card takes whatever height the title leaves, so a long title shortens the card instead of covering it.
|
|
4
|
-
|
|
4
|
+
brief: A cover: the title across the top, a strong picture framed in a card below it.
|
|
5
|
+
use: the first slide when there is a strong picture (a product, a person, a place) that reads as an object you hold up. Its .art is a placeholder check fails on: put in a wide picture of the real subject (a found photo: add_photo with for "cover-frame", `hyperdecks photos add <id> --for cover-frame`, deck_guide topic photos; or gen-image / generate_image, 16:9 or 3:2) as <img class="art">; keep the subject in the middle, the card crops top and bottom. Never move the title onto the card; a fade or a gradient over the picture makes the title hard to read (check warns). Other covers: cover-split, hero, cover-band, cover-poster, cover-type.
|
|
5
6
|
slot: bottom-right
|
|
6
7
|
presenter: stage
|
|
7
8
|
nopresenter: The card runs nearly the slide's full width instead of stopping short of the corner.
|
|
@@ -13,21 +14,26 @@ script: Hi, [wave] this is __TITLE__. [look: h1] One idea, in a few minutes.
|
|
|
13
14
|
.l-cover-frame { gap: 40px; }
|
|
14
15
|
.l-cover-frame .content { flex: none; display: flex; flex-direction: column; gap: 18px; }
|
|
15
16
|
.l-cover-frame .tt { font-size: min(var(--t-display), 104px); line-height: .92; }
|
|
16
|
-
|
|
17
|
+
/* A long title shortens the card down to its 220px floor, so its corner caps there (_deck.html). */
|
|
18
|
+
.l-cover-frame .art { order: 1; display: block; flex: 1 1 0; min-height: 220px; width: calc(100% - 520px); margin: 0 0 14px 6px; border: calc(4 * var(--line)) solid var(--ink); --frame-min: 220px; border-radius: min(calc(28 * var(--round)), var(--frame-min) / 8); object-fit: cover; box-shadow: calc(14 * var(--drop-x)) calc(14 * var(--drop-y)) calc(14 * var(--drop-blur)) color-mix(in srgb, var(--accent) var(--drop-mix), transparent); transform: rotate(calc(-1.5deg * var(--tilt-k))); }
|
|
17
19
|
.on-ink.l-cover-frame .art { border-color: var(--paper); }
|
|
18
|
-
.on-accent.l-cover-frame .art { box-shadow:
|
|
20
|
+
.on-accent.l-cover-frame .art { box-shadow: calc(14 * var(--drop-x)) calc(14 * var(--drop-y)) calc(14 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
|
|
19
21
|
/* Until then a labelled, hatched stand-in, so it reads as a slot to fill; check fails while it is here. */
|
|
20
22
|
.l-cover-frame div.art { position: relative; background: var(--paper) repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 10%, transparent) 0 2px, transparent 2px 22px); }
|
|
21
|
-
.l-cover-frame div.art::after { content: "Art goes here"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 14px 26px; border:
|
|
23
|
+
.l-cover-frame div.art::after { content: "Art goes here"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 14px 26px; border: calc(3 * var(--line)) dashed var(--ink); border-radius: calc(16 * var(--round)); background: var(--paper); color: var(--ink); font: 700 24px var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
|
|
22
24
|
.l-cover-frame:not(:has(> .art)) .content { flex: 1; justify-content: center; }
|
|
23
25
|
@media (max-width: 650px) {
|
|
24
26
|
/* Phones: the title, then the card across the width below it. */
|
|
27
|
+
.l-cover-frame:not(:has(> .art)) .content { justify-content: var(--hd-phone-anchor); }
|
|
25
28
|
.l-cover-frame { gap: 14px; }
|
|
26
29
|
.l-cover-frame .content { gap: 12px; }
|
|
27
30
|
.l-cover-frame .tt { font-size: var(--t-display); }
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
/* The framed card grows into the free height up to about 4:3 of its width (250px): cover-frame suits a landscape
|
|
32
|
+
picture, and at 4:3 a 16:9 one loses about a quarter (check warns past a third, about 288px). Any room left below
|
|
33
|
+
is by design. */
|
|
34
|
+
.l-cover-frame .art { flex: 1 1 156px; height: auto; min-height: 156px; max-height: 250px; width: auto; margin: 0 6px 6px 2px; border-width: calc(2 * var(--line)); --frame-min: 156px; 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(--accent) var(--drop-mix), transparent); transform: rotate(calc(-1deg * var(--tilt-k))); }
|
|
35
|
+
.on-accent.l-cover-frame .art { 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); }
|
|
36
|
+
.l-cover-frame div.art::after { padding: 8px 14px; border-width: calc(2 * var(--line)); font-size: 13px; }
|
|
31
37
|
}
|
|
32
38
|
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
33
39
|
@media (min-width: 651px) {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
layout: cover-poster
|
|
3
3
|
summary: A poster cover: the picture across the top, edge to edge, and the title below it on the slide's ground. The picture takes whatever height the title leaves, so a long title shortens the picture instead of covering it.
|
|
4
|
-
|
|
4
|
+
brief: A cover: a wide picture across the top, edge to edge, the title below it.
|
|
5
|
+
use: the first slide when the picture is a scene or a landscape that crops well to a wide strip. Its .art is a placeholder check fails on: put in a wide picture of the real subject (a found photo: add_photo with for "cover-poster", `hyperdecks photos add <id> --for cover-poster`, deck_guide topic photos; or gen-image / generate_image, 16:9 or wider) as <img class="art">; keep the subject in the middle band, the strip crops top and bottom. Never move the title up onto the picture. Without art the title fills the slide.
|
|
5
6
|
slot: bottom-right
|
|
6
7
|
presenter: stage
|
|
7
8
|
nopresenter: The title and lead run the slide's full width instead of stopping short of the corner.
|
|
@@ -13,15 +14,18 @@ script: Hi, [wave] this is __TITLE__. [look: h1] One idea, in a few minutes.
|
|
|
13
14
|
.l-cover-poster { gap: 0; }
|
|
14
15
|
/* A brand logo (applyBrand puts it first in the slide) sits on the picture's top-left, out of the flow, so the strip still starts at the top edge. */
|
|
15
16
|
.l-cover-poster:has(> .art) > .brand-logo { position: absolute; top: 28px; left: 72px; }
|
|
16
|
-
.l-cover-poster .art { display: block; flex: 1 1 0; min-height: 240px; width: auto; margin: -64px -72px 0; object-fit: cover; border-bottom:
|
|
17
|
+
.l-cover-poster .art { display: block; flex: 1 1 0; min-height: 240px; width: auto; margin: -64px -72px 0; object-fit: cover; border-bottom: calc(4 * var(--line)) solid var(--ink); }
|
|
17
18
|
.l-cover-poster div.art { position: relative; background: color-mix(in srgb, var(--ink) 6%, var(--paper)) repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 10%, transparent) 0 2px, transparent 2px 22px); }
|
|
18
|
-
.l-cover-poster div.art::after { content: "Art goes here"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 14px 26px; border:
|
|
19
|
+
.l-cover-poster div.art::after { content: "Art goes here"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 14px 26px; border: calc(3 * var(--line)) dashed var(--ink); border-radius: calc(16 * var(--round)); background: var(--paper); color: var(--ink); font: 700 24px var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
|
|
19
20
|
.l-cover-poster .content { flex: none; display: flex; flex-direction: column; gap: 18px; padding: 40px 400px 0 0; }
|
|
20
21
|
.l-cover-poster .tt { font-size: min(var(--t-display), 104px); line-height: .92; }
|
|
21
22
|
.l-cover-poster:not(:has(> .art)) .content { flex: 1; justify-content: center; padding-top: 0; }
|
|
22
23
|
@media (max-width: 650px) {
|
|
23
|
-
|
|
24
|
-
.l-cover-poster
|
|
24
|
+
/* The picture across the top, edge to edge: the slide starts at the card's top edge. Without art the block starts at the phone anchor. */
|
|
25
|
+
.l-cover-poster:not(:has(> .art)) .content { justify-content: var(--hd-phone-anchor); }
|
|
26
|
+
.l-cover-poster:has(> .art) { justify-content: flex-start; }
|
|
27
|
+
.l-cover-poster .art { flex: none; height: 196px; min-height: 0; margin: -28px -20px 0; border-bottom-width: calc(2 * var(--line)); }
|
|
28
|
+
.l-cover-poster div.art::after { padding: 8px 14px; border-width: calc(2 * var(--line)); font-size: 13px; }
|
|
25
29
|
.l-cover-poster .content { gap: 12px; padding: 18px 0 0; }
|
|
26
30
|
.l-cover-poster:has(> .art) > .brand-logo { top: 12px; left: 20px; }
|
|
27
31
|
.l-cover-poster .tt { font-size: var(--t-display); }
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
layout: cover-split
|
|
3
3
|
summary: A hard 50/50 cover: the title on the left half on a solid ground, the picture filling the right half edge to edge, the two meeting on a straight ink line. No fade, no overlap: the picture never reaches the title's half.
|
|
4
|
-
|
|
4
|
+
brief: A cover split 50/50: the title on one half, the picture filling the other.
|
|
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.
|
|
5
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.
|
|
6
8
|
presenter: stage
|
|
7
9
|
nopresenter: The picture crops on its centre instead of keeping its subject high above the presenter.
|
|
8
10
|
cues: [wave] at the hello, [look: h1] when the narration says the title, [look: .art] when it turns to the picture.
|
|
@@ -14,7 +16,7 @@ script: Hi, [wave] this is __TITLE__. [look: h1] One idea, in a few minutes.
|
|
|
14
16
|
.l-cover-split .content { grid-column: 1; grid-row: 1; align-self: center; display: flex; flex-direction: column; gap: 22px; }
|
|
15
17
|
.l-cover-split .tt { font-size: min(var(--t-display), 96px); line-height: .92; }
|
|
16
18
|
/* The picture's half is the slide's own right half, out to its edges (a sized box: an absolute <img> never stretches to its insets). */
|
|
17
|
-
.l-cover-split .art { position: absolute; top: 0; right: 0; display: block; width: 50%; height: 100%; border-left:
|
|
19
|
+
.l-cover-split .art { position: absolute; top: 0; right: 0; display: block; width: 50%; height: 100%; border-left: calc(4 * var(--line)) solid var(--ink); object-fit: cover; object-position: 50% 30%; }
|
|
18
20
|
.on-ink.l-cover-split .art { border-left-color: var(--paper); }
|
|
19
21
|
/* A brand logo (applyBrand puts it first in the slide) heads the title's half. */
|
|
20
22
|
.l-cover-split:has(> .brand-logo) { grid-template-rows: auto minmax(0, 1fr); }
|
|
@@ -22,22 +24,32 @@ script: Hi, [wave] this is __TITLE__. [look: h1] One idea, in a few minutes.
|
|
|
22
24
|
.l-cover-split:has(> .brand-logo) .content { grid-row: 2; }
|
|
23
25
|
/* Until then a labelled, hatched stand-in, so it reads as a slot to fill; check fails while it is here. */
|
|
24
26
|
.l-cover-split div.art { background: color-mix(in srgb, var(--ink) 6%, var(--paper)) repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 10%, transparent) 0 2px, transparent 2px 22px); }
|
|
25
|
-
.l-cover-split div.art::after { content: "Art goes here"; position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); padding: 14px 26px; border:
|
|
27
|
+
.l-cover-split div.art::after { content: "Art goes here"; position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); padding: 14px 26px; border: calc(3 * var(--line)) dashed var(--ink); border-radius: calc(16 * var(--round)); background: var(--paper); color: var(--ink); font: 700 24px var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
|
|
26
28
|
.l-cover-split:not(:has(> .art)) { grid-template-columns: minmax(0, 1fr); }
|
|
27
29
|
@media (max-width: 650px) {
|
|
28
30
|
/* Phones: the picture across the top, edge to edge, the title below it on the ground. */
|
|
29
|
-
.l-cover-split { display: flex; flex-direction: column; gap: 0; }
|
|
30
|
-
|
|
31
|
+
.l-cover-split { display: flex; flex-direction: column; justify-content: flex-start; gap: 0; }
|
|
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); }
|
|
31
36
|
.on-ink.l-cover-split .art { border-bottom-color: var(--paper); }
|
|
32
|
-
.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; }
|
|
33
38
|
.l-cover-split .tt { font-size: var(--t-display); }
|
|
34
39
|
.l-cover-split:has(> .art) > .brand-logo { position: absolute; top: 12px; left: 20px; z-index: 1; }
|
|
35
|
-
.l-cover-split div.art::after { top: 50%; padding: 8px 14px; border-width:
|
|
40
|
+
.l-cover-split div.art::after { top: 50%; padding: 8px 14px; border-width: calc(2 * var(--line)); font-size: 13px; }
|
|
36
41
|
}
|
|
37
42
|
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
38
43
|
@media (min-width: 651px) {
|
|
39
44
|
:root.hd-no-presenter .l-cover-split .art { object-position: 50% 50%; }
|
|
40
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
|
+
}
|
|
41
53
|
</style>
|
|
42
54
|
<section class="slide l-cover-split" id="__ID__" data-chapter="Hello" data-note="Title slide: no facts.">
|
|
43
55
|
<div class="art" role="presentation"></div>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
layout: cover-type
|
|
3
3
|
summary: A type-only cover: the title, big, on the theme's own ground and texture, with the presenter large in the corner as the visual. No picture to fill.
|
|
4
|
+
brief: A type-only cover: a big title on the theme's ground, the presenter as the visual.
|
|
4
5
|
use: the first slide when there is no picture that shows the real subject yet, or the deck is about an idea more than a thing. Swap the ground (on-ink, on-accent, on-tint) and keep one signature texture (bg-corner or bg-mark) at most; the title stays clear of it. Nothing to fill: it passes check as scaffolded.
|
|
5
6
|
slot: bottom-right
|
|
6
7
|
presenter: stage
|
|
@@ -13,7 +14,7 @@ script: Hi, [wave] this is __TITLE__. [look: h1] One idea, in a few minutes.
|
|
|
13
14
|
.l-cover-type .tt { font-size: calc(var(--t-display) * 1.12); line-height: .88; letter-spacing: -.05em; }
|
|
14
15
|
.l-cover-type .lead { max-width: 24em; }
|
|
15
16
|
@media (max-width: 650px) {
|
|
16
|
-
.l-cover-type .content { justify-content:
|
|
17
|
+
.l-cover-type .content { justify-content: var(--hd-phone-anchor); gap: 16px; padding-top: 0; }
|
|
17
18
|
.l-cover-type .tt { font-size: calc(var(--t-display) * 1.08); }
|
|
18
19
|
}
|
|
19
20
|
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
@@ -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>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
layout: features
|
|
3
3
|
summary: Three features side by side, an icon, a name and one line each; the presenter flies under each card.
|
|
4
|
-
|
|
4
|
+
brief: Three features side by side, an icon, a name and one line each.
|
|
5
|
+
use: what it does, the three reasons, the three parts. Swap each icon for a real one: `hyperdecks icons search <word> --for features` (search_icons { for }) gives inline SVG in currentColor.
|
|
5
6
|
slot: bottom-right
|
|
6
7
|
presenter: stage
|
|
7
8
|
nopresenter: The title and cards centre vertically and the cards grow a little, instead of leaving a strip below for the presenter.
|
|
@@ -10,18 +11,25 @@ script: It does three things. First, [go: #__ID__-f1] it writes. Then [go: #__ID
|
|
|
10
11
|
-->
|
|
11
12
|
<style>
|
|
12
13
|
.l-features .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
|
|
13
|
-
.l-features .card { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 28px 30px; border-radius:
|
|
14
|
-
/*
|
|
15
|
-
|
|
16
|
-
.l-features .
|
|
14
|
+
.l-features .card { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 28px 30px; border-radius: calc(28 * var(--round)); background: var(--card); box-shadow: 0 0 0 calc(1 * var(--line)) color-mix(in srgb, var(--ink) 10%, transparent); }
|
|
15
|
+
/* Icon slot: an icon at the top of each card (hyperdecks icons search <word> --for features; search_icons { for }).
|
|
16
|
+
The theme draws it (layouts/_deck.html, .icon); an <img class="icon"> of a generated set works too. */
|
|
17
|
+
.l-features .card { --icon: calc(64 * var(--icon-scale, 1)); }
|
|
17
18
|
.l-features b { font-size: 32px; letter-spacing: -.02em; line-height: 1.05; }
|
|
18
19
|
.l-features p { font-size: 20px; line-height: 1.3; opacity: .7; }
|
|
19
20
|
@media (max-width: 650px) {
|
|
20
|
-
.l-features .cards {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
.l-features
|
|
24
|
-
.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; }
|
|
25
33
|
}
|
|
26
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. */
|
|
27
35
|
@media (min-width: 651px) {
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
layout: funnel
|
|
3
|
+
summary: Three to five stages, each narrower than the last, a name and a number on each: how many make it from one step to the next.
|
|
4
|
+
brief: Three to five narrowing stages, a name and a number each.
|
|
5
|
+
says: how many make it
|
|
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-right
|
|
9
|
+
presenter: stage
|
|
10
|
+
nopresenter: The funnel takes the full width of the slide.
|
|
11
|
+
cues: [go: #__ID__-s1] at the first stage, [go: #__ID__-s4] at the last, then [go: slot].
|
|
12
|
+
script: Of every link sent, [go: #__ID__-s1] most are opened, and more than half [go: #__ID__-s4] are watched to the end. [go: slot]
|
|
13
|
+
-->
|
|
14
|
+
<style>
|
|
15
|
+
/* The stages centre in a column that ends left of the presenter's corner (the stage presenter at m reaches 1064px across),
|
|
16
|
+
each a fixed step narrower than the one above it, the steps sharing the height below the title. */
|
|
17
|
+
.l-funnel .stages { list-style: none; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; max-width: 980px; }
|
|
18
|
+
.l-funnel .stages li { --w: 1; flex: 1 1 0; max-height: 132px; min-height: 0; width: calc(var(--w) * 100%); display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 32px; border: calc(3 * var(--line)) solid var(--ink); border-radius: calc(20 * 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-size: var(--t-lead); font-weight: 700; line-height: 1.1; }
|
|
19
|
+
/* The numbers in the theme's display face (not the mono: '1,240' should read as a number, not code), figures aligned. */
|
|
20
|
+
.l-funnel .stages li span { font-family: var(--display, var(--font)); font-weight: var(--display-weight, 700); font-variant-numeric: tabular-nums lining-nums; font-size: var(--t-sub); line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
|
|
21
|
+
.l-funnel .stages li:nth-child(2) { --w: .84; background: var(--tint-1); }
|
|
22
|
+
.l-funnel .stages li:nth-child(3) { --w: .68; background: var(--tint-2); }
|
|
23
|
+
.l-funnel .stages li:nth-child(4) { --w: .54; background: var(--tint-3); }
|
|
24
|
+
.l-funnel .stages li:nth-child(5) { --w: .44; }
|
|
25
|
+
.l-funnel .stages li:last-child { background: var(--accent); color: var(--accent-ink); }
|
|
26
|
+
.on-accent.l-funnel .stages li:last-child { background: var(--ink); color: var(--paper); }
|
|
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
|
+
@media (max-width: 650px) {
|
|
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); }
|
|
33
|
+
.l-funnel .stages li span { font-size: var(--t-lead); }
|
|
34
|
+
.l-funnel .stages li:nth-child(2) { --w: .92; }
|
|
35
|
+
.l-funnel .stages li:nth-child(3) { --w: .84; }
|
|
36
|
+
.l-funnel .stages li:nth-child(4) { --w: .76; }
|
|
37
|
+
.l-funnel .stages li:nth-child(5) { --w: .68; }
|
|
38
|
+
}
|
|
39
|
+
/* A large presenter (data-presenter-size l or xl on this slide's section tag). */
|
|
40
|
+
@media not all and (max-width: 650px) {
|
|
41
|
+
.l-funnel[data-presenter-size="l"] :is(.stages, .tt) { max-width: 830px; }
|
|
42
|
+
.l-funnel[data-presenter-size="xl"] :is(.stages, .tt) { max-width: 680px; }
|
|
43
|
+
.l-funnel[data-presenter-size="xl"] .stages li { padding: 14px 22px; }
|
|
44
|
+
.l-funnel[data-presenter-size="xl"] .stages li span { font-size: var(--t-lead); }
|
|
45
|
+
}
|
|
46
|
+
/* No presenter (:root.hd-no-presenter: no face and no captions, deck_guide look): the corner is free. Phones keep this layout's rules. */
|
|
47
|
+
@media (min-width: 651px) {
|
|
48
|
+
:root.hd-no-presenter .l-funnel :is(.stages, .tt) { max-width: none; }
|
|
49
|
+
:root.hd-no-presenter .l-funnel .stages { padding: 0 120px; }
|
|
50
|
+
}
|
|
51
|
+
</style>
|
|
52
|
+
<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).">
|
|
53
|
+
<div class="kicker">Last 30 days</div>
|
|
54
|
+
<h2 class="tt" data-title-mobile="Most who open, finish.">Most who open it, finish it.</h2>
|
|
55
|
+
<ol class="stages">
|
|
56
|
+
<li id="__ID__-s1">Links sent <span>1,240</span></li>
|
|
57
|
+
<li id="__ID__-s2">Opened <span>930</span></li>
|
|
58
|
+
<li id="__ID__-s3">Watched half <span>710</span></li>
|
|
59
|
+
<li id="__ID__-s4">Watched to the end <span>566</span></li>
|
|
60
|
+
</ol>
|
|
61
|
+
<div class="narration-slot"></div>
|
|
62
|
+
</section>
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
layout: hero
|
|
3
3
|
summary: The opening, as a split cover: the title on the slide's own ground on the left, the picture in a clean frame top-right, the presenter's hello. Text never sits on the picture.
|
|
4
|
-
|
|
4
|
+
brief: The default cover: the title beside the subject in a clean frame, the presenter's hello.
|
|
5
|
+
use: the first slide (the default cover); a section opener. Its .art is a placeholder check fails on: put in a picture of the real subject (a found photo: add_photo with for "hero", `hyperdecks photos add <id> --for hero`, deck_guide topic photos; or gen-image / generate_image) as <img class="art"> (its frame takes the picture's shape, so a 2:1 landscape to a 3:4 portrait shows whole beside the title; a picture wider than about 2:1, a panorama or a strip, takes class="art wide" and spans the slide above the title instead), or delete the div and the title takes the full frame with the presenter as the visual. Never lay the title over the picture; a picture faded behind it is hard to read (check warns). Other covers: cover-frame (the picture as a card under the title), cover-split (a hard 50/50, the picture edge to edge in its half), cover-band (the picture fills the slide, the title on a solid panel), cover-poster (the picture on top, the title below) and cover-type (type only). A caption (optional, any theme; not on an art wide): wrap the picture as <figure class="mount" data-caption="Where, when">…</figure>; short (about 40 characters), never the alt text.
|
|
5
6
|
slot: bottom-right
|
|
6
7
|
presenter: stage
|
|
7
|
-
nopresenter: With art, the picture
|
|
8
|
+
nopresenter: With art, the picture may grow to the full height of its column, keeping its shape. Delete the art and the line re-centres in the full frame.
|
|
8
9
|
cues: [wave] at the hello, [look: h1] when the narration says the title.
|
|
9
10
|
script: Hi, [wave] this is __TITLE__. [look: h1] One idea, in a few minutes.
|
|
10
11
|
-->
|
|
@@ -13,33 +14,50 @@ script: Hi, [wave] this is __TITLE__. [look: h1] One idea, in a few minutes.
|
|
|
13
14
|
.l-hero .content { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 28px; max-width: 980px; }
|
|
14
15
|
.l-hero .tt { font-size: var(--t-display); line-height: .9; }
|
|
15
16
|
/* With art: the title on the left on the slide's ground; the picture framed top-right, the presenter's corner below it. */
|
|
16
|
-
.l-hero:has(> .art) { display: grid; grid-template-columns: minmax(0, 1fr) 560px; grid-template-rows: minmax(0, 1fr); column-gap: 72px; }
|
|
17
|
-
.l-hero:has(> .art) .content { grid-column: 1; grid-row: 1; max-width: none; }
|
|
18
|
-
.l-hero:has(> .art) .tt { font-size: min(var(--t-display), 112px); }
|
|
17
|
+
.l-hero:has(> .art, > .mount) { display: grid; grid-template-columns: minmax(0, 1fr) 560px; grid-template-rows: minmax(0, 1fr); column-gap: 72px; }
|
|
18
|
+
.l-hero:has(> .art, > .mount) .content { grid-column: 1; grid-row: 1; max-width: none; }
|
|
19
|
+
.l-hero:has(> .art, > .mount) .tt { font-size: min(var(--t-display), 112px); }
|
|
19
20
|
/* A brand logo (applyBrand puts it first in the slide) heads the title column; the picture spans both rows. */
|
|
20
|
-
.l-hero:has(> .art):has(> .brand-logo) { grid-template-rows: auto minmax(0, 1fr); }
|
|
21
|
-
.l-hero:has(> .art) > .brand-logo { grid-column: 1; grid-row: 1; }
|
|
22
|
-
.l-hero:has(> .art):has(> .brand-logo) .content { grid-row: 2; }
|
|
23
|
-
.l-hero:has(> .art):has(> .brand-logo) .art { grid-row: 1 / -1; }
|
|
24
|
-
/* Swap the div for an <img class="art"> of your file (gen-image
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
.l-hero:has(> .art, > .mount):has(> .brand-logo) { grid-template-rows: auto minmax(0, 1fr); }
|
|
22
|
+
.l-hero:has(> .art, > .mount) > .brand-logo { grid-column: 1; grid-row: 1; }
|
|
23
|
+
.l-hero:has(> .art, > .mount):has(> .brand-logo) .content { grid-row: 2; }
|
|
24
|
+
.l-hero:has(> .art, > .mount):has(> .brand-logo) > :is(.art, .mount) { grid-row: 1 / -1; }
|
|
25
|
+
/* Swap the div for an <img class="art"> of your file (gen-image), or delete it for no art.
|
|
26
|
+
The frame takes the picture's own shape, so nothing is cropped and no band shows: at most the column's 560px wide and 420px tall (so it ends above the presenter's head),
|
|
27
|
+
at least 186px tall (a 3:1 strip) and 300px wide (a 3:4 portrait). Past those limits it crops (cover) to the limit. */
|
|
28
|
+
.l-hero .art { grid-column: 2; grid-row: 1; align-self: start; justify-self: end; display: block; width: auto; height: auto; max-width: 100%; max-height: 420px; min-width: 300px; min-height: 186px; margin-top: 8px; border: calc(4 * var(--line)) solid var(--ink); --frame-min: 280px; border-radius: min(calc(28 * var(--round)), var(--frame-min) / 8); object-fit: cover; box-shadow: calc(14 * var(--drop-x)) calc(14 * var(--drop-y)) calc(14 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
|
|
29
|
+
.on-ink.l-hero .art { border-color: var(--paper); box-shadow: calc(14 * var(--drop-x)) calc(14 * var(--drop-y)) calc(14 * var(--drop-blur)) color-mix(in srgb, var(--accent) var(--drop-mix), transparent); }
|
|
30
|
+
/* A wide picture (wider than about 2:1, class="art wide") does not sit in the corner column: it runs across the slide
|
|
31
|
+
above the title at its own shape, whole, as tall as its shape needs up to 380px, across the content width at
|
|
32
|
+
most (narrower, left-aligned with the title, when 380px is reached first); the title and lead under it. */
|
|
33
|
+
.l-hero:has(> .art.wide) { display: flex; flex-direction: column; justify-content: flex-start; gap: 36px; }
|
|
34
|
+
.l-hero:has(> .art.wide) .content { flex: none; justify-content: flex-start; max-width: 980px; }
|
|
35
|
+
.l-hero:has(> .art.wide) .tt { font-size: min(var(--t-display), 104px); }
|
|
36
|
+
.l-hero .art.wide { --frame-min: 186px; align-self: flex-start; width: auto; height: auto; max-width: 100%; max-height: 380px; min-width: 0; min-height: 0; margin-top: 0; }
|
|
37
|
+
/* A captioned picture (figure.mount) takes the art's place; the picture keeps its shape inside it. */
|
|
38
|
+
.l-hero > .mount { grid-column: 2; grid-row: 1; align-self: start; justify-self: end; align-items: flex-end; max-width: 100%; margin-top: 8px; }
|
|
39
|
+
.l-hero .mount > .art { margin-top: 0; }
|
|
27
40
|
/* Until then a labelled, hatched stand-in, so it reads as a slot to fill; check fails while it is here. */
|
|
28
|
-
.l-hero div.art { position: relative; background: var(--paper) repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 10%, transparent) 0 2px, transparent 2px 22px); }
|
|
29
|
-
.l-hero div.art::after { content: "Art goes here"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 14px 26px; border:
|
|
41
|
+
.l-hero div.art { width: 100%; height: 420px; position: relative; background: var(--paper) repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 10%, transparent) 0 2px, transparent 2px 22px); }
|
|
42
|
+
.l-hero div.art::after { content: "Art goes here"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 14px 26px; border: calc(3 * var(--line)) dashed var(--ink); border-radius: calc(16 * var(--round)); background: var(--paper); color: var(--ink); font: 700 24px var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
|
|
30
43
|
@media (max-width: 650px) {
|
|
31
|
-
/* Phones: the picture above, the
|
|
32
|
-
|
|
33
|
-
.l-hero:has(> .art
|
|
34
|
-
.l-hero .
|
|
35
|
-
.l-hero .
|
|
36
|
-
.
|
|
37
|
-
.l-hero
|
|
44
|
+
/* Phones: the picture above, whole at its own shape: as wide as the card, or narrower when it reaches 300px tall
|
|
45
|
+
(a portrait); the title directly below it on the ground. */
|
|
46
|
+
.l-hero:has(> .art, > .mount) { display: flex; }
|
|
47
|
+
.l-hero:has(> .art, > .mount) .tt { font-size: var(--t-display); }
|
|
48
|
+
.l-hero .content { flex: none; justify-content: var(--hd-phone-anchor); gap: 16px; }
|
|
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
|
+
.l-hero .art.wide { --frame-min: 83px; }
|
|
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
|
+
.l-hero div.art { width: 100%; height: 240px; }
|
|
53
|
+
.l-hero:has(> .art.wide) { justify-content: var(--hd-phone-anchor); }
|
|
54
|
+
.l-hero div.art::after { padding: 8px 14px; border-width: calc(2 * var(--line)); font-size: 13px; }
|
|
38
55
|
}
|
|
39
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. */
|
|
40
57
|
@media (min-width: 651px) {
|
|
41
|
-
:root.hd-no-presenter .l-hero:has(> .art) .art { align-self:
|
|
42
|
-
:root.hd-no-presenter .l-hero:
|
|
58
|
+
:root.hd-no-presenter .l-hero:has(> .art, > .mount) .art:not(.wide) { align-self: center; max-height: 100%; margin-top: 0; }
|
|
59
|
+
:root.hd-no-presenter .l-hero:has(> .art, > .mount) div.art { align-self: stretch; height: auto; }
|
|
60
|
+
:root.hd-no-presenter .l-hero:not(:has(> .art, > .mount)) .content { align-self: center; align-items: center; text-align: center; max-width: 1200px; }
|
|
43
61
|
}
|
|
44
62
|
</style>
|
|
45
63
|
<section class="slide on-accent l-hero" id="__ID__" data-chapter="Hello" data-note="Title slide: no facts.">
|