diff --git a/apps/extension/store/listing.md b/apps/extension/store/listing.md index e9d48d71..48583120 100644 --- a/apps/extension/store/listing.md +++ b/apps/extension/store/listing.md @@ -1,6 +1,6 @@ # Chrome Web Store listing -What to paste into each field of the developer dashboard. The zip is `pnpm --filter @pluck/extension zip` (`.output/pluckextension--chrome.zip`); build it without `PLUCK_LOCAL`. Images are in this folder; the three screenshots are taken from the real extension and web app by `node scripts/store-chrome.mjs` (its header says what it needs), so make them again when either changes. +What to paste into each field of the developer dashboard. The zip is `pnpm --filter @pluck/extension zip` (`.output/pluckextension--chrome.zip`); build it without `PLUCK_LOCAL`. Images are in this folder; the three screenshots and the marquee tile's right half are taken from the real extension and web app by `node scripts/store-chrome.mjs` (its header says what it needs), so make them again when either changes. ## Store listing diff --git a/apps/extension/store/promo-marquee-1400x560.png b/apps/extension/store/promo-marquee-1400x560.png index 5a5423b8..38ad0233 100644 Binary files a/apps/extension/store/promo-marquee-1400x560.png and b/apps/extension/store/promo-marquee-1400x560.png differ diff --git a/docs/handover/design/Promo.dc.html b/docs/handover/design/Promo.dc.html index 5089a72a..97bc7a78 100644 --- a/docs/handover/design/Promo.dc.html +++ b/docs/handover/design/Promo.dc.html @@ -123,7 +123,8 @@

Plucked.15-minute chilli oil noodles
-
Tags and list
recipesweeknight+ Dinners to try
+
Lists
Dinners to tryFavourites
+
Tags
recipesweeknight
Done
9:41
InboxAB
18 to triage
Later
15-minute chilli oil noodlesTikTok · 0:58 · recipes
diff --git a/docs/store/app-store.md b/docs/store/app-store.md index 6aea9e76..016a6259 100644 --- a/docs/store/app-store.md +++ b/docs/store/app-store.md @@ -112,7 +112,7 @@ App Store Connect, Pluck, Featuring, Nominations, Create Nomination. Send it at ## Promo video and posts -`promo/pluck-promo-1080.mp4`: 20 s, 1080 × 1080, 30 fps, H.264. Upload it natively to LinkedIn and X (both autoplay muted, so the captions carry it). Source: `promo/promo.html`, pure CSS. Re-record with `node scripts/record-promo.mjs`. +`promo/pluck-promo-1080.mp4`: 20 s, 1080 × 1080, 30 fps, H.264. Upload it natively to LinkedIn and X (both autoplay muted, so the captions carry it). Source: `promo/promo.html`, pure CSS. Re-record with `node scripts/record-promo.mjs` (and `--tall` for `pluck-promo-9x16.mp4`, the same square on a 1080 × 1920 ground). **X** diff --git a/docs/store/promo/pluck-promo-1080.mp4 b/docs/store/promo/pluck-promo-1080.mp4 index 97058136..10588e81 100644 Binary files a/docs/store/promo/pluck-promo-1080.mp4 and b/docs/store/promo/pluck-promo-1080.mp4 differ diff --git a/docs/store/promo/pluck-promo-9x16.mp4 b/docs/store/promo/pluck-promo-9x16.mp4 index 1bab0919..362f38a7 100644 Binary files a/docs/store/promo/pluck-promo-9x16.mp4 and b/docs/store/promo/pluck-promo-9x16.mp4 differ diff --git a/docs/store/promo/promo.html b/docs/store/promo/promo.html index 2f932ff3..eaa11b43 100644 --- a/docs/store/promo/promo.html +++ b/docs/store/promo/promo.html @@ -121,7 +121,8 @@
Plucked.15-minute chilli oil noodles
-
Tags and list
recipesweeknight+ Dinners to try
+
Lists
Dinners to tryFavourites
+
Tags
recipesweeknight
Done
9:41
InboxAB
18 to triage
Later
15-minute chilli oil noodlesTikTok · 0:58 · recipes
diff --git a/scripts/record-promo.mjs b/scripts/record-promo.mjs index 8cdc9af9..dfaa3c2f 100644 --- a/scripts/record-promo.mjs +++ b/scripts/record-promo.mjs @@ -1,5 +1,6 @@ -// Records the 20-second promo (docs/store/promo/promo.html) to docs/store/promo/pluck-promo-1080.mp4. -// Usage: node scripts/record-promo.mjs (needs the Playwright Chromium and ffmpeg; Google Fonts must be reachable, +// Records the 20-second promo (docs/store/promo/promo.html) to docs/store/promo/pluck-promo-1080.mp4, or with +// --tall to pluck-promo-9x16.mp4 (1080 × 1920: the same square, on the page's ground). +// Usage: node scripts/record-promo.mjs [--tall] (needs the Playwright Chromium and ffmpeg; Google Fonts must be reachable, // or Fredoka, Geist, Geist Mono and Source Serif 4 installed locally) import { mkdirSync, rmSync } from "node:fs"; import { execFileSync } from "node:child_process"; @@ -11,11 +12,13 @@ const root = join(dirname(fileURLToPath(import.meta.url)), ".."); const page = pathToFileURL(join(root, "docs/store/promo/promo.html")).href; const out = join(root, "test-results/promo"); const FPS = 30, LENGTH = 20_000; +const tall = process.argv.includes("--tall"); +const file = `docs/store/promo/pluck-promo-${tall ? "9x16" : "1080"}.mp4`; rmSync(out, { recursive: true, force: true }); mkdirSync(out, { recursive: true }); const browser = await chromium.launch(); -const tab = await browser.newPage({ viewport: { width: 1080, height: 1080 } }); +const tab = await browser.newPage({ viewport: { width: 1080, height: tall ? 1920 : 1080 } }); await tab.goto(`${page}?t=0`); await tab.evaluate(() => document.fonts.ready); // Every animation reads --at as its delay, paused: one frame per step, no timing drift. @@ -30,5 +33,5 @@ for (let i = 0; i < (LENGTH / 1000) * FPS; i++) { await browser.close(); execFileSync("ffmpeg", ["-y", "-framerate", String(FPS), "-i", join(out, "f%04d.png"), "-c:v", "libx264", "-preset", "veryfast", "-crf", "18", - "-pix_fmt", "yuv420p", "-movflags", "+faststart", join(root, "docs/store/promo/pluck-promo-1080.mp4")], { stdio: "inherit" }); -console.log("docs/store/promo/pluck-promo-1080.mp4 written."); + "-pix_fmt", "yuv420p", "-movflags", "+faststart", join(root, file)], { stdio: "inherit" }); +console.log(`${file} written.`); diff --git a/scripts/store-chrome.mjs b/scripts/store-chrome.mjs index 444432e9..ebebb359 100644 --- a/scripts/store-chrome.mjs +++ b/scripts/store-chrome.mjs @@ -1,13 +1,14 @@ // The Chrome Web Store's three screenshots (1280 × 800), taken from the real extension and the real web app, so the -// listing shows them as they ship: 1 the popup over a page it has just plucked, 2 the Inbox, 3 the reader. +// listing shows them as they ship: 1 the popup over a page it has just plucked, 2 the Inbox, 3 the reader. And the +// marquee promo tile (1400 × 560), whose right half is that same page and popup. // // Needs a local server running a production build (`next dev` draws its own badge on the page) with a demo library // (`node scripts/demo-seed.mjs `, which prints the key; a fresh one each time, since a page already // in the library is not plucked again), the fixture pages (`pnpm stack`), and the extension built for a local server: // PLUCK_LOCAL=1 pnpm --filter @pluck/extension build // Usage: node scripts/store-chrome.mjs -// Writes apps/extension/store/1-pluck-this-page.png, 2-your-inbox.png and 3-the-reader.png. -import { writeFileSync } from "node:fs"; +// Writes apps/extension/store/1-pluck-this-page.png, 2-your-inbox.png, 3-the-reader.png and promo-marquee-1400x560.png. +import { readFileSync, writeFileSync } from "node:fs"; import { join } from "node:path"; import { chromium } from "@playwright/test"; @@ -67,6 +68,21 @@ await page.setContent( ); writeFileSync(out("1-pluck-this-page.png"), await page.screenshot({ type: "png" })); +// The marquee tile: the designer's left half (the mark, the headline) as it is, and beside it a browser's corner +// with the page and the popup. The tile is its own base, so the new corner goes exactly over the old one. +const tile = readFileSync(out("promo-marquee-1400x560.png")); +await page.setViewportSize({ width: 1400, height: 560 }); +await page.setContent( + `` + + `
` + + `` + + // The popup a little smaller than life, so all of it shows in the tile's height. + `` + + `
`, +); +writeFileSync(out("promo-marquee-1400x560.png"), await page.screenshot({ type: "png" })); +await page.setViewportSize(size); + // 2. The Inbox, the pointer on the page just plucked so its row shows what can be done with it. Not at once: a row // plucked in the last few seconds is drawn as just landed, and the library was seeded a moment ago. await page.waitForTimeout(6000);