@hypersocial/decks-cli 0.9.24 → 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 +13 -2
- package/skills/hyperdecks/terminal.md +3 -2
- package/src/check.mjs +33 -16
- package/src/checkRules.mjs +67 -6
- package/src/commands.mjs +15 -4
- package/src/embedCapture.mjs +126 -0
- package/src/embedSources.mjs +252 -0
- package/src/embedsGuide.mjs +36 -0
- package/src/files.mjs +1 -0
- package/src/guide.mjs +8 -6
- package/src/layoutRoutes.mjs +6 -1
- package/src/layouts.mjs +8 -3
- package/src/ops.mjs +76 -0
- package/src/picturesGuide.mjs +1 -0
- package/src/preview-capture.mjs +70 -1
- package/src/runtime.mjs +2 -2
- package/templates/layouts/_deck.html +61 -12
- package/templates/layouts/bento.html +2 -1
- package/templates/layouts/closer.html +4 -2
- package/templates/layouts/cover-band.html +3 -1
- package/templates/layouts/cover-frame.html +5 -1
- package/templates/layouts/cover-poster.html +2 -1
- package/templates/layouts/cover-split.html +13 -2
- package/templates/layouts/cover-type.html +1 -1
- package/templates/layouts/embed.html +93 -0
- package/templates/layouts/features.html +12 -6
- package/templates/layouts/funnel.html +4 -2
- package/templates/layouts/hero.html +2 -2
- package/templates/layouts/lanes.html +3 -3
- package/templates/layouts/number.html +1 -1
- 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/quote.html +3 -2
- package/templates/layouts/rail.html +7 -4
- package/templates/layouts/scorecard.html +3 -2
- 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 +4 -2
- package/templates/layouts/strike.html +1 -1
- package/templates/layouts/team.html +19 -5
- package/templates/layouts/timeline.html +5 -2
- package/templates/layouts/two-by-two.html +5 -1
- package/templates/layouts/video-full.html +3 -3
- package/templates/layouts/wall.html +39 -11
package/src/preview-capture.mjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { lookup } from 'node:dns/promises';
|
|
2
2
|
import { isIP } from 'node:net';
|
|
3
3
|
import { createServer } from 'node:http';
|
|
4
|
+
import { existsSync, statSync } from 'node:fs';
|
|
4
5
|
import { readFile, realpath, mkdtemp, rm, stat, writeFile } from 'node:fs/promises';
|
|
5
|
-
import { resolve, dirname, extname, sep, join } from 'node:path';
|
|
6
|
+
import { resolve, dirname, extname, sep, join, normalize } from 'node:path';
|
|
7
|
+
import { fileURLToPath } from 'node:url';
|
|
6
8
|
import { tmpdir } from 'node:os';
|
|
7
9
|
import { randomUUID } from 'node:crypto';
|
|
8
10
|
import { execFile } from 'node:child_process';
|
|
@@ -198,12 +200,72 @@ export function unconditionalHeaders(headers) {
|
|
|
198
200
|
return Object.fromEntries(Object.entries(headers).filter(([k]) => !/^if-(none-match|modified-since|match|unmodified-since|range)$/i.test(k)));
|
|
199
201
|
}
|
|
200
202
|
|
|
203
|
+
// The app's own static files (the hosted player and the built-in avatar
|
|
204
|
+
// stills), read from a repo checkout instead of hyperdecks.ai. A scaffolded
|
|
205
|
+
// deck's head loads the player from hyperdecks.ai, so before this every local
|
|
206
|
+
// `check --layout` hit the live site, and on 2026-11-29 our own test runs got
|
|
207
|
+
// the owner's address challenged by Vercel's DDoS mitigation.
|
|
208
|
+
//
|
|
209
|
+
// Used by the capture route below, the test guard
|
|
210
|
+
// (lib/testing/productionGuard.mjs) and scripts/dev/serve-deck.mjs. Outside a
|
|
211
|
+
// checkout (the published CLI, the render worker's image, the hosted app)
|
|
212
|
+
// CHECKOUT is null and nothing here applies.
|
|
213
|
+
// Kept in this file, not its own: the render job loads these CLI modules and
|
|
214
|
+
// no others (services/render/worker.test.mjs).
|
|
215
|
+
export const STATIC_HOSTS = ['hyperdecks.ai', 'www.hyperdecks.ai', 'decks.hypersocial.ai'];
|
|
216
|
+
const TYPES = { '.js': 'text/javascript', '.mjs': 'text/javascript', '.css': 'text/css', '.json': 'application/json', '.png': 'image/png', '.bin': 'application/octet-stream', '.svg': 'image/svg+xml', '.woff2': 'font/woff2', '.glb': 'model/gltf-binary', '.webp': 'image/webp', '.wasm': 'application/wasm', '.mp3': 'audio/mpeg' };
|
|
217
|
+
export const staticType = (file) => TYPES[extname(file)] ?? 'application/octet-stream';
|
|
218
|
+
|
|
219
|
+
// `root` when it is a repo checkout, else null. .git (a folder, or a worktree's
|
|
220
|
+
// file) tells a checkout from a deployment that happens to hold both folders.
|
|
221
|
+
export function checkoutAt(root) {
|
|
222
|
+
return ['.git', 'packages/player/player.js', 'public/player/v1'].every((p) => existsSync(join(root, p))) ? root : null;
|
|
223
|
+
}
|
|
224
|
+
// packages/decks-cli/src → the repo root.
|
|
225
|
+
export const CHECKOUT = checkoutAt(join(dirname(fileURLToPath(import.meta.url)), '..', '..', '..'));
|
|
226
|
+
|
|
227
|
+
function inside(dir, name) {
|
|
228
|
+
const file = normalize(join(dir, name));
|
|
229
|
+
// statSync still throws on a name no file can have (a null byte, one too long).
|
|
230
|
+
try { return file.startsWith(dir + sep) && statSync(file, { throwIfNoEntry: false })?.isFile() ? file : null; }
|
|
231
|
+
catch { return null; }
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// The checkout's file for a path under /player/v1/, or null. The player's own
|
|
235
|
+
// modules come from packages/player; the vendored SDK files and the pinned
|
|
236
|
+
// builds (b/<hash>/) are only in public/.
|
|
237
|
+
export function playerFile(name, root = CHECKOUT) {
|
|
238
|
+
const published = join(root, 'public/player/v1');
|
|
239
|
+
return (name.startsWith('b/') ? null : inside(join(root, 'packages/player'), name)) ?? inside(published, name);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
// Where a URL's file is in the checkout: undefined when the URL is not one of
|
|
243
|
+
// the app's static files (or there is no checkout), null when it is but the
|
|
244
|
+
// checkout has no such file. A pinned build (b/<hash>/) is always the
|
|
245
|
+
// checkout's own player, even when public/ holds that build, so an edit to
|
|
246
|
+
// packages/player shows on every deck (as with HYPERDECKS_PLAYER_DIR).
|
|
247
|
+
export function localStaticFile(url, root = CHECKOUT) {
|
|
248
|
+
if (!root) return undefined;
|
|
249
|
+
let u, path;
|
|
250
|
+
try { u = new URL(url); } catch { return undefined; }
|
|
251
|
+
if (!/^https?:$/.test(u.protocol) || !STATIC_HOSTS.includes(u.hostname.replace(/\.+$/, ''))) return undefined;
|
|
252
|
+
const at = /^\/(player|avatars)\//.exec(u.pathname);
|
|
253
|
+
if (!at) return undefined;
|
|
254
|
+
try { path = decodeURIComponent(u.pathname); } catch { return null; }
|
|
255
|
+
if (at[1] === 'avatars') return inside(join(root, 'public/avatars'), path.slice('/avatars/'.length));
|
|
256
|
+
if (!path.startsWith('/player/v1/')) return null;
|
|
257
|
+
return playerFile(path.slice('/player/v1/'.length).replace(/^b\/[0-9a-f]+\//, ''), root);
|
|
258
|
+
}
|
|
259
|
+
|
|
201
260
|
// Playwright's continue() follows redirects without routing each hop. Fetch
|
|
202
261
|
// without following redirects and never fulfill a 3xx response into Chromium.
|
|
203
262
|
// `net` (all optional): `onRefused({ url, type, reason })` hears each request
|
|
204
263
|
// not fulfilled, its URL redacted (redactCaptureUrl); reason is 'rule',
|
|
205
264
|
// 'destination', 'redirect' or the fetch error. `resolver` and `upstream`
|
|
206
265
|
// (route, options) => APIResponse stand in for DNS and the network in tests.
|
|
266
|
+
// From a repo checkout, an allowed request for the hosted player or a built-in
|
|
267
|
+
// avatar still is answered with the checkout's file and never reaches the
|
|
268
|
+
// network, even when the checkout lacks it (localStaticFile).
|
|
207
269
|
export async function routeCaptureRequest(route, entryUrl, origins = [], net = {}) {
|
|
208
270
|
const { onRefused = () => {}, resolver, upstream = (rt, options) => rt.fetch(options) } = net;
|
|
209
271
|
const r = route.request();
|
|
@@ -217,6 +279,13 @@ export async function routeCaptureRequest(route, entryUrl, origins = [], net = {
|
|
|
217
279
|
try {
|
|
218
280
|
type = captureResourceType(r);
|
|
219
281
|
if (!allowCaptureRequest(r.url(), r.method(), type, entryUrl, origins)) return await refuse('rule');
|
|
282
|
+
const local = localStaticFile(r.url());
|
|
283
|
+
if (local === null) return await refuse('not in this checkout');
|
|
284
|
+
if (local) {
|
|
285
|
+
// A module script from another origin needs CORS, as the app sends.
|
|
286
|
+
await route.fulfill({ body: await readFile(local), contentType: staticType(local), headers: { 'access-control-allow-origin': '*' } });
|
|
287
|
+
return true;
|
|
288
|
+
}
|
|
220
289
|
if (!await allowCaptureDestination(r.url(), entryUrl, resolver)) return await refuse('destination');
|
|
221
290
|
let response;
|
|
222
291
|
try { response = await upstream(route, { headers: unconditionalHeaders(r.headers()), maxRedirects:0, timeout:15000 }); }
|
package/src/runtime.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { ConvexHttpClient } from "convex/browser";
|
|
|
9
9
|
import { makeFunctionReference } from "convex/server";
|
|
10
10
|
import { recordSkillInstall } from "./skillFreshness.mjs";
|
|
11
11
|
|
|
12
|
-
export const VERSION = "0.9.
|
|
12
|
+
export const VERSION = "0.9.25";
|
|
13
13
|
|
|
14
14
|
// Sent on the CLI's calls to our routes and to Convex, so the server can see
|
|
15
15
|
// which CLI versions are still out there (not used to refuse anything).
|
|
@@ -221,7 +221,7 @@ export const api = {
|
|
|
221
221
|
},
|
|
222
222
|
};
|
|
223
223
|
|
|
224
|
-
const BOOL = new Set(["private-only", "prod", "dev", "admin", "json", "require-email", "qa", "no-notify", "allow-forward", "no-forward", "count-on-play", "help", "version", "all-agents", "global", "project", "transparent", "loop", "upload", "dry-run", "narrated", "layout", "strict", "fix", "full-page", "force", "hosted", "yes", "no-voice", "no-skill", "no-release", "no-narrate", "no-open", "save-to-minimoji", "captions-only", "no-brand", "brand", "no-logo", "pdf", "notes", "mp4", "gif", "video", "no-captions", "no-avatar", "title-card", "end-card", "backup", "trim"]);
|
|
224
|
+
const BOOL = new Set(["private-only", "prod", "dev", "admin", "json", "require-email", "qa", "no-notify", "allow-forward", "no-forward", "count-on-play", "help", "version", "all-agents", "global", "project", "transparent", "loop", "upload", "dry-run", "narrated", "layout", "strict", "fix", "full-page", "force", "hosted", "yes", "no-voice", "no-skill", "no-release", "no-narrate", "no-open", "save-to-minimoji", "captions-only", "no-brand", "brand", "no-logo", "pdf", "notes", "mp4", "gif", "video", "no-captions", "no-avatar", "title-card", "end-card", "backup", "trim", "embed"]);
|
|
225
225
|
// release's recipients, in order: each --to starts one, and an --email right
|
|
226
226
|
// after it belongs to it (`--to A --email a --to B`). Collected as opts.recipients;
|
|
227
227
|
// opts.email stays the last --email for the other commands (share new).
|
|
@@ -185,11 +185,17 @@ d.addEventListener("readystatechange",go);go()})();</script>
|
|
|
185
185
|
.narration-slot { position: absolute; right: 56px; bottom: 64px; }
|
|
186
186
|
.slot-left .narration-slot { right: auto; left: 56px; }
|
|
187
187
|
.slot-top .narration-slot { top: 96px; bottom: auto; }
|
|
188
|
+
/* A flipped slide (data-flip, a side-panel layout mirrored) takes the other bottom corner, so the presenter follows
|
|
189
|
+
its panel. Wide screens only: a phone keeps the presenter at the foot. */
|
|
190
|
+
@media (min-width: 651px) {
|
|
191
|
+
.slide[data-flip]:not(.slot-left) .narration-slot { right: auto; left: 56px; }
|
|
192
|
+
.slide.slot-left[data-flip] .narration-slot { left: auto; right: 56px; }
|
|
193
|
+
}
|
|
188
194
|
/* No presenter (no face AND no captions, e.g. presenter none on a
|
|
189
195
|
data-silent deck; or forced off by setPresenterOff): the player puts
|
|
190
196
|
.hd-no-presenter on the root and hides the slot, each layout's
|
|
191
197
|
no-presenter variant (:root.hd-no-presenter .l-…) uses the corner, and on
|
|
192
|
-
phones the slide drops its
|
|
198
|
+
phones the slide drops its 200px bottom padding (below). Keep custom slides
|
|
193
199
|
compatible: leave the corner to .narration-slot, no hard-coded right gutter. */
|
|
194
200
|
/* Photos take the theme's treatment; a screenshot or a recording (.shot, .clip) never does. */
|
|
195
201
|
.slide { --mount-side: calc(var(--photo-mount) * var(--mount-k, 1)); --mount-foot: calc(var(--photo-mount-foot) * var(--mount-k, 1)); }
|
|
@@ -324,20 +330,20 @@ d.addEventListener("readystatechange",go);go()})();</script>
|
|
|
324
330
|
-webkit-mask-image: radial-gradient(circle at 100% 0, #000 45%, rgba(0,0,0,.4) 100%); mask-image: radial-gradient(circle at 100% 0, #000 45%, rgba(0,0,0,.4) 100%); }
|
|
325
331
|
.l-closer.bg-corner::before { --corner-r: 460px; }
|
|
326
332
|
.on-ink.bg-corner::before { --corner-a: 22%; }
|
|
327
|
-
:is(.l-split, .l-product, .l-chart, .l-quote, .l-number, .l-features, .l-team, .l-timeline, .l-compare, .l-cover-band, .l-cover-poster, .l-cover-split, .l-phone-stage, .l-tap-through, .l-screens, .l-zoom, .l-video-full, .l-video-beats, .l-picture-full, .l-wall, .l-portrait, .l-sentence, .l-strike, .l-spotlight, .l-funnel, .l-scorecard, .l-bento, .l-two-by-two, .l-staircase, .l-rail, .l-loop, .l-lanes, .l-two-bars, .l-stack).bg-corner::before { content: none; }
|
|
333
|
+
:is(.l-split, .l-product, .l-chart, .l-quote, .l-number, .l-features, .l-team, .l-timeline, .l-compare, .l-cover-band, .l-cover-poster, .l-cover-split, .l-phone-stage, .l-tap-through, .l-screens, .l-zoom, .l-video-full, .l-video-beats, .l-picture-full, .l-wall, .l-portrait, .l-embed, .l-sentence, .l-strike, .l-spotlight, .l-funnel, .l-scorecard, .l-bento, .l-two-by-two, .l-staircase, .l-rail, .l-loop, .l-lanes, .l-two-bars, .l-stack).bg-corner::before { content: none; }
|
|
328
334
|
/* bg-stage: a rounded dot plate exactly the picture's column plus 32px, so the frame or the phones stand on it; on the hero a tile behind the stickers. */
|
|
329
335
|
.slide.bg-stage::before { inset: auto; background: radial-gradient(color-mix(in srgb, currentColor var(--stage-a, 24%), transparent) 2.4px, transparent 2.9px) 0 0 / 22px 22px; border-radius: calc(40 * var(--round)); }
|
|
330
336
|
.l-product.bg-stage::before { position: relative; grid-area: frame; align-self: stretch; margin: var(--stage-m, -32px -24px -32px -40px); }
|
|
331
337
|
.l-phones.bg-stage::before { position: relative; grid-area: row; align-self: stretch; margin: var(--stage-m, -32px); }
|
|
332
338
|
.l-hero.bg-stage::before { right: 110px; top: 110px; width: 410px; height: 350px; }
|
|
333
|
-
:is(.l-split, .l-chart, .l-quote, .l-closer, .l-number, .l-features, .l-team, .l-timeline, .l-compare, .l-cover-band, .l-cover-poster, .l-cover-split, .l-cover-type, .l-cover-frame, .l-phone-stage, .l-tap-through, .l-screens, .l-zoom, .l-video-full, .l-video-beats, .l-picture-full, .l-wall, .l-portrait, .l-sentence, .l-strike, .l-spotlight, .l-funnel, .l-scorecard, .l-bento, .l-two-by-two, .l-staircase, .l-rail, .l-loop, .l-lanes, .l-two-bars, .l-stack).bg-stage::before { content: none; }
|
|
339
|
+
:is(.l-split, .l-chart, .l-quote, .l-closer, .l-number, .l-features, .l-team, .l-timeline, .l-compare, .l-cover-band, .l-cover-poster, .l-cover-split, .l-cover-type, .l-cover-frame, .l-phone-stage, .l-tap-through, .l-screens, .l-zoom, .l-video-full, .l-video-beats, .l-picture-full, .l-wall, .l-portrait, .l-embed, .l-sentence, .l-strike, .l-spotlight, .l-funnel, .l-scorecard, .l-bento, .l-two-by-two, .l-staircase, .l-rail, .l-loop, .l-lanes, .l-two-bars, .l-stack).bg-stage::before { content: none; }
|
|
334
340
|
/* bg-mark: the slide number, set as style="--mark:'04'" on the section, huge in --display, faint,
|
|
335
341
|
cropped by the top edge; right on the hero, in the indent on slot-left slides. A signature: cover, an opener, closer. */
|
|
336
342
|
.slide.bg-mark::before { content: var(--mark, ""); inset: auto; right: 24px; top: -.26em; font: var(--display-weight, 700) var(--mark-size, 560px)/1 var(--display, var(--font)); font-synthesis: none; letter-spacing: var(--display-tracking, -.05em); white-space: nowrap;
|
|
337
343
|
color: color-mix(in srgb, currentColor var(--mark-a, 8%), transparent); }
|
|
338
344
|
.slide.on-ink.bg-mark::before { --mark-a: 6%; }
|
|
339
345
|
.slide.slot-left.bg-mark::before { right: auto; left: -.08em; font-size: var(--mark-size, 440px); } /* ends inside the 500px indent, clear of the title */
|
|
340
|
-
:is(.l-split, .l-product, .l-chart, .l-phones, .l-number, .l-features, .l-team, .l-timeline, .l-compare, .l-cover-band, .l-cover-poster, .l-cover-split, .l-phone-stage, .l-tap-through, .l-screens, .l-zoom, .l-video-full, .l-video-beats, .l-picture-full, .l-wall, .l-portrait, .l-sentence, .l-strike, .l-spotlight, .l-funnel, .l-scorecard, .l-bento, .l-two-by-two, .l-staircase, .l-rail, .l-loop, .l-lanes, .l-two-bars, .l-stack).bg-mark::before { content: none; }
|
|
346
|
+
:is(.l-split, .l-product, .l-chart, .l-phones, .l-number, .l-features, .l-team, .l-timeline, .l-compare, .l-cover-band, .l-cover-poster, .l-cover-split, .l-phone-stage, .l-tap-through, .l-screens, .l-zoom, .l-video-full, .l-video-beats, .l-picture-full, .l-wall, .l-portrait, .l-embed, .l-sentence, .l-strike, .l-spotlight, .l-funnel, .l-scorecard, .l-bento, .l-two-by-two, .l-staircase, .l-rail, .l-loop, .l-lanes, .l-two-bars, .l-stack).bg-mark::before { content: none; }
|
|
341
347
|
/* Pieces. .sticker: a logo or icon tile, tilted (--tilt), ink edge, hard offset
|
|
342
348
|
shadow (.sticker.photo for a face or an app icon that fills it). .ticks: a short
|
|
343
349
|
list with accent-square bullets. .panel: a quiet card. .pill: a small tag. */
|
|
@@ -373,28 +379,71 @@ d.addEventListener("readystatechange",go);go()})();</script>
|
|
|
373
379
|
.slide .frame.laptop::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: -16px; height: 16px; border-radius: 0 0 calc(16 * var(--round)) calc(16 * var(--round)); background: linear-gradient(#d9d9de, #a9a9b0); }
|
|
374
380
|
.slide .frame.laptop > .shot { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: calc(6 * var(--round)); object-fit: cover; object-position: top; background: var(--paper); }
|
|
375
381
|
/* Phones: the slide is the 374×736 card; the presenter is a small head in
|
|
376
|
-
the corner, so keep the bottom
|
|
382
|
+
the corner, so keep the bottom 200px clear. */
|
|
377
383
|
@media (max-width: 650px) {
|
|
378
|
-
:root { --t-display: calc(54px * var(--display-scale)); --t-title: calc(38px * var(--display-scale)); --t-sub: calc(28px * var(--display-scale)); --t-lead: 17px; --t-body: 15px; --t-label:
|
|
379
|
-
.slide { padding: 28px 20px
|
|
384
|
+
:root { --t-display: calc(54px * var(--display-scale)); --t-title: calc(38px * var(--display-scale)); --t-sub: calc(28px * var(--display-scale)); --t-lead: 17px; --t-body: 15px; --t-label: 14px; }
|
|
385
|
+
.slide { padding: 28px 20px 200px; gap: 14px; }
|
|
380
386
|
/* phone rhythm start */
|
|
381
|
-
/*
|
|
382
|
-
|
|
383
|
-
|
|
387
|
+
/* One anchor for every slide on a phone (docs/roadmap/phone-slides-content-starts-at-one-height-and-uses-the-scree.md):
|
|
388
|
+
the content block starts under the card's top margin, kicker and title first, so flipping through, nothing
|
|
389
|
+
jumps. --hd-phone-anchor is the one switch: `safe center` centres each slide's block instead, and a layout's own phone
|
|
390
|
+
rules use the token. The full-bleed layouts (cover-band, cover-split, cover-poster, picture-full) keep their
|
|
391
|
+
picture at the card's top edge whatever the token says. */
|
|
392
|
+
:root { --hd-phone-anchor: start; }
|
|
393
|
+
.slide { justify-content: var(--hd-phone-anchor); align-content: var(--hd-phone-anchor); }
|
|
384
394
|
/* A slide's content is one block: its media grows into the height above the presenter (each layout's phone rules
|
|
385
395
|
let it, at its own shape), and the words follow it directly, never a hole between them. Text-only slides
|
|
386
396
|
(no picture but a sticker or logo) step their type up a notch; :where() keeps that at a class's weight. */
|
|
387
397
|
.slide:where(:not(:has(:is(img, video, .shot, .pic, .clip, .art):not(.sticker *, .brand-logo, .brand-logo *, .icon)))) { --t-title: 44px; --t-sub: 32px; --t-lead: 19px; --t-body: 17px; }
|
|
388
398
|
/* phone rhythm end */
|
|
389
|
-
.narration-slot { right: 12px; left: 12px; bottom:
|
|
399
|
+
.narration-slot, .slot-left .narration-slot { right: 12px; left: 12px; bottom: 12px; }
|
|
390
400
|
:root.hd-no-presenter .slide { padding-bottom: 28px; }
|
|
401
|
+
/* 1 while the presenter's foot is kept, 0 without a presenter: a layout's phone rules trim by it (calc(18px - 6px *
|
|
402
|
+
var(--hd-phone-presenter))) where the 200px foot leaves too little height, so silent decks keep their room. */
|
|
403
|
+
:root { --hd-phone-presenter: 1; }
|
|
404
|
+
:root.hd-no-presenter { --hd-phone-presenter: 0; }
|
|
405
|
+
/* The presenter on a phone, in the 200px foot every slide keeps clear for it: a 200px face box in every presenter
|
|
406
|
+
style (bubble's --hd-face-size; corner's --hd-corner-head, which stage and glass become on a phone), not the
|
|
407
|
+
player's 96px and 128px. The live head fills about 73% of its box's width and its top 80%, so it shows about
|
|
408
|
+
146×156px; the box sits 20% of itself low, so the head's chin is about 12px above the card's bottom and its top
|
|
409
|
+
about 170px above it. body.hd-compact outranks the player's .hd-compact, so released decks, which carry their
|
|
410
|
+
own CSS, keep theirs. */
|
|
411
|
+
body.hd-compact { --hd-face-size: 200px; --hd-corner-head: 200px; --hd-bubble-width: min(240px, calc(100vw - 230px)); --hd-caption-lines: 5; }
|
|
412
|
+
body.hd-compact .hd-style-bubble .hd-face { bottom: calc(-.2 * var(--hd-face)); }
|
|
413
|
+
body.hd-compact .hd-style-corner .hd-face { bottom: calc(12px - .2 * var(--hd-face) + var(--hd-band, 0px)); }
|
|
414
|
+
/* The head's emote bursts (the wave's stars and their glow) draw past the face box: on a phone the box is masked
|
|
415
|
+
with soft edges, so they fade out over its top (28px under the foot's top: never over text), its card side (the
|
|
416
|
+
box stands 12px inside the card) and, at the caption's tail tip, its caption side (bubble's caption starts .82
|
|
417
|
+
of the face plus 26px in, corner's ends .8 of the face plus 46px from the right; the tail reaches 10px). The
|
|
418
|
+
live head is drawn well inside those edges. A clip left the glow a box with hard sides. An ellipse round the head
|
|
419
|
+
(from 72% of 124×128px, past its 73px half-width and the 76px from its centre to its crown) fades what is left
|
|
420
|
+
of the glow, so on a dark ground it reads as light round the head, not a square patch. */
|
|
421
|
+
body.hd-compact .hd-style-bubble .hd-face { -webkit-mask-image: linear-gradient(transparent, #000 24px), radial-gradient(ellipse 62% 64% at 50% 58%, #000 72%, transparent), linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 28px), transparent calc(100% - 20px)); -webkit-mask-composite: source-in; mask-image: linear-gradient(transparent, #000 24px), radial-gradient(ellipse 62% 64% at 50% 58%, #000 72%, transparent), linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 28px), transparent calc(100% - 20px)); mask-composite: intersect; }
|
|
422
|
+
body.hd-compact .hd-style-corner .hd-face { -webkit-mask-image: linear-gradient(transparent, #000 24px), radial-gradient(ellipse 62% 64% at 50% 58%, #000 72%, transparent), linear-gradient(to right, transparent 4px, #000 16px, #000 calc(100% - 12px), transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(transparent, #000 24px), radial-gradient(ellipse 62% 64% at 50% 58%, #000 72%, transparent), linear-gradient(to right, transparent 4px, #000 16px, #000 calc(100% - 12px), transparent); mask-composite: intersect; }
|
|
423
|
+
/* Its caption stands beside the head, inside the foot, never above it over the slide: left of corner's head (the
|
|
424
|
+
tail pointing right at it), right of bubble's (the presenter as wide as head and bubble). About 155px wide, its
|
|
425
|
+
tail's tip a few px clear of the visible head (a live head is about 146px of its 200px box, centred), its bottom
|
|
426
|
+
a quarter of the head up, so it sits about 60px above the card's bottom. It holds five lines (--hd-caption-lines,
|
|
427
|
+
read by the player; released decks keep two), which still keep inside the foot, so a sentence of about 80
|
|
428
|
+
characters shows in one or two bubbles broken at a phrase, not three broken mid-phrase. */
|
|
429
|
+
body.hd-compact .hd-style-corner .hd-bubble { right: calc(46px + .8 * var(--hd-face)); bottom: calc(12px + var(--hd-band, 0px) + .25 * var(--hd-face)); width: calc(100% - 70px - .8 * var(--hd-face)); }
|
|
430
|
+
/* A held caption of four or five lines leaves no room in the foot for the paused aside under it ("Hit play when
|
|
431
|
+
you're ready" climbed 19px over the slide): it is left out there, and bubble's lift for it with it; the breathing
|
|
432
|
+
Resume still says paused. The idle beat's line, which uses the same span and shows alone, is kept. */
|
|
433
|
+
body.hd-compact .hd-presenter:not(.is-idle-line) .hd-caption:has(> .hd-caption-line:nth-of-type(4)) > .hd-caption-aside { display: none; }
|
|
434
|
+
body.hd-compact .hd-presenter.hd-style-bubble.has-aside .hd-bubble:has(> .hd-caption > .hd-caption-line:nth-of-type(4)) { translate: none; }
|
|
435
|
+
body.hd-compact .hd-style-corner .hd-caption::before { left: auto; right: -10px; top: auto; bottom: 16px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
|
|
436
|
+
body.hd-compact .hd-presenter.hd-style-bubble { width: calc(var(--hd-face) * .82 + 26px + var(--hd-bubble-width)); }
|
|
437
|
+
body.hd-compact .hd-style-bubble .hd-bubble { left: calc(.82 * var(--hd-face) + 26px); top: auto; bottom: calc(.25 * var(--hd-face)); }
|
|
391
438
|
.slide .frame.card { width: 160px; padding: 5px; border-width: calc(2 * var(--line)); border-radius: calc(24 * var(--round-phone)); box-shadow: calc(8 * var(--drop-x)) calc(8 * var(--drop-y)) calc(8 * var(--drop-blur)) color-mix(in srgb, var(--shadow) var(--drop-mix), transparent); }
|
|
392
439
|
.slide .frame.card > .shot { border-radius: calc(19 * var(--round-phone)); border-width: calc(1 * var(--line)); }
|
|
393
440
|
/* The text fills the card's width, so the backgrounds keep off it: the corner fades in
|
|
394
441
|
towards the bottom, under the presenter, at a finer pitch; the stage and the mark hide;
|
|
395
|
-
the pool (a soft light)
|
|
442
|
+
the pool (a soft light) moves to the foot; the tiles stay off. */
|
|
396
443
|
.slide.bg-corner::before { inset: 0; width: auto; height: auto; border-radius: 0; background-size: 14px 14px; background-image: radial-gradient(var(--corner-dot) 1.6px, transparent 2px); -webkit-mask-image: linear-gradient(180deg, transparent 40%, #000 90%); mask-image: linear-gradient(180deg, transparent 40%, #000 90%); }
|
|
397
444
|
.slide:is(.bg-stage, .bg-mark)::before { content: none; }
|
|
445
|
+
/* Nothing under a title on a phone: the pool's light gathers at the card's foot, under the presenter, below the words. */
|
|
446
|
+
.slide.bg-pool::before { background: radial-gradient(520px 420px at 85% 100%, var(--pool), transparent 70%); }
|
|
398
447
|
.slide > .deco { display: none; }
|
|
399
448
|
.sticker { width: 48px; height: 48px; padding: 9px; border-width: calc(2 * var(--line)); border-radius: calc(13 * var(--round)); box-shadow: calc(3 * var(--drop-x)) calc(3 * var(--drop-y)) calc(3 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
|
|
400
449
|
.ticks { gap: 6px; }
|
|
@@ -28,7 +28,8 @@ script: One reason above all: [look: #__ID__-big] you see who watched. It also s
|
|
|
28
28
|
.l-bento .small b { font-family: var(--display, var(--font)); font-weight: var(--display-weight, 700); letter-spacing: var(--display-tracking, -.045em); font-size: min(var(--t-sub), 11cqi); line-height: 1.02; }
|
|
29
29
|
.l-bento .small p { font-size: var(--t-lead); line-height: 1.25; }
|
|
30
30
|
@media (max-width: 650px) {
|
|
31
|
-
|
|
31
|
+
/* The tiles share the free height: the big one takes three parts, each row of small ones two (up to about 560px in all). */
|
|
32
|
+
.l-bento .tiles { flex: 1 1 0; min-height: auto; max-height: 560px; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(170px, 3fr); grid-auto-rows: minmax(min-content, 2fr); gap: 8px; max-width: none; }
|
|
32
33
|
.l-bento .tiles > * { gap: 3px; padding: 12px 14px; border-width: calc(2 * var(--line)); border-radius: calc(14 * var(--round)); box-shadow: calc(4 * var(--drop-x)) calc(4 * var(--drop-y)) calc(4 * var(--drop-blur)) color-mix(in srgb, var(--ink) var(--drop-mix), transparent); }
|
|
33
34
|
.l-bento .big { grid-row: auto; grid-column: 1 / 3; min-height: 170px; }
|
|
34
35
|
.l-bento .big p { font-size: var(--t-body); }
|
|
@@ -17,8 +17,10 @@ script: That's it. [go: #__ID__-cta] Here is the one thing to do next. Thanks [g
|
|
|
17
17
|
.l-closer .cta svg { flex: none; width: 1em; height: 1em; }
|
|
18
18
|
.l-closer .contact { font: var(--t-label) var(--mono); letter-spacing: .12em; text-transform: uppercase; }
|
|
19
19
|
@media (max-width: 650px) {
|
|
20
|
-
.l-closer .content { padding-left: 0; justify-content:
|
|
21
|
-
.l-closer .
|
|
20
|
+
.l-closer .content { padding-left: 0; justify-content: var(--hd-phone-anchor); gap: 22px; }
|
|
21
|
+
.l-closer .tt { font-size: calc(var(--t-display) * 1.3); }
|
|
22
|
+
.l-closer .lead { font-size: var(--t-lead); }
|
|
23
|
+
.l-closer .cta { padding: 16px 22px; border-radius: calc(16 * var(--round)); font-size: 18px; }
|
|
22
24
|
}
|
|
23
25
|
/* A large presenter (data-presenter-size l or xl on this slide's section tag): the line and the action move right of it, room for
|
|
24
26
|
a stage or glass presenter at that size, so no deck CSS is needed. */
|
|
@@ -23,7 +23,9 @@ script: Hi, [wave] this is __TITLE__. [look: h1] One idea, in a few minutes.
|
|
|
23
23
|
@media (max-width: 650px) {
|
|
24
24
|
/* Phones: the picture across the top, the panel below it, down to the presenter's corner. */
|
|
25
25
|
.l-cover-band { justify-content: flex-start; align-items: stretch; gap: 0; }
|
|
26
|
-
.l-cover-band .art {
|
|
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; }
|
|
27
29
|
.l-cover-band div.art::after { left: 50%; top: 50%; padding: 8px 14px; border-width: calc(2 * var(--line)); font-size: 13px; }
|
|
28
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); }
|
|
29
31
|
.l-cover-band .tt { font-size: var(--t-display); }
|
|
@@ -24,10 +24,14 @@ script: Hi, [wave] this is __TITLE__. [look: h1] One idea, in a few minutes.
|
|
|
24
24
|
.l-cover-frame:not(:has(> .art)) .content { flex: 1; justify-content: center; }
|
|
25
25
|
@media (max-width: 650px) {
|
|
26
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); }
|
|
27
28
|
.l-cover-frame { gap: 14px; }
|
|
28
29
|
.l-cover-frame .content { gap: 12px; }
|
|
29
30
|
.l-cover-frame .tt { font-size: var(--t-display); }
|
|
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))); }
|
|
31
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); }
|
|
32
36
|
.l-cover-frame div.art::after { padding: 8px 14px; border-width: calc(2 * var(--line)); font-size: 13px; }
|
|
33
37
|
}
|
|
@@ -21,7 +21,8 @@ script: Hi, [wave] this is __TITLE__. [look: h1] One idea, in a few minutes.
|
|
|
21
21
|
.l-cover-poster .tt { font-size: min(var(--t-display), 104px); line-height: .92; }
|
|
22
22
|
.l-cover-poster:not(:has(> .art)) .content { flex: 1; justify-content: center; padding-top: 0; }
|
|
23
23
|
@media (max-width: 650px) {
|
|
24
|
-
/* The picture across the top, edge to edge: the slide starts at the top
|
|
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); }
|
|
25
26
|
.l-cover-poster:has(> .art) { justify-content: flex-start; }
|
|
26
27
|
.l-cover-poster .art { flex: none; height: 196px; min-height: 0; margin: -28px -20px 0; border-bottom-width: calc(2 * var(--line)); }
|
|
27
28
|
.l-cover-poster div.art::after { padding: 8px 14px; border-width: calc(2 * var(--line)); font-size: 13px; }
|
|
@@ -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,7 @@ 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
18
|
.l-cover-type .tt { font-size: calc(var(--t-display) * 1.08); }
|
|
19
19
|
}
|
|
20
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>
|
|
@@ -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) {
|
|
@@ -26,8 +26,10 @@ 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); }
|
|
32
34
|
.l-funnel .stages li:nth-child(2) { --w: .92; }
|
|
33
35
|
.l-funnel .stages li:nth-child(3) { --w: .84; }
|
|
@@ -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. */
|
|
@@ -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) {
|
|
@@ -16,7 +16,7 @@ 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
20
|
.l-number .figure { font-size: 120px; }
|
|
21
21
|
}
|
|
22
22
|
/* 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,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) {
|