Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/extension/store/listing.md
Original file line number Diff line number Diff line change
@@ -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-<version>-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-<version>-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

Expand Down
Binary file modified apps/extension/store/promo-marquee-1400x560.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion docs/handover/design/Promo.dc.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ <h1 style="margin: 0; font: 700 56px/1 var(--display); letter-spacing: -0.035em"
<div class="sheet" style="position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 20px 40px; border-radius: 26px 26px 0 0; background: #F6F8F4; display: flex; flex-direction: column; gap: 18px">
<span style="align-self: center; width: 36px; height: 5px; border-radius: 3px; background: #CDD3C7"></span>
<div style="display: flex; gap: 14px; align-items: center"><span class="tickp" style="width: 44px; height: 44px; border-radius: 22px; background: #7FD3AE; display: flex; align-items: center; justify-content: center"><svg width="20" height="20" viewBox="0 0 16 16"><path d="M3.5 8.5l3 3 6-7" fill="none" stroke="#151A13" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg></span><span style="display: flex; flex-direction: column"><b style="font-size: 24px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em">Plucked.</b><span style="font-size: 15px; color: #525A4E">15-minute chilli oil noodles</span></span></div>
<div style="display: flex; flex-direction: column; gap: 8px"><span style="font-size: 13px; color: #525A4E">Tags and list</span><div style="display: flex; flex-wrap: wrap; gap: 8px"><span class="chipon" style="position: relative; height: 36px; padding: 0 14px; border-radius: 18px; display: inline-flex; align-items: center; font-size: 15px">recipes<span class="tap2" style="position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 22px; background: rgba(30, 92, 69, 0.25)"></span></span><span style="height: 36px; padding: 0 14px; border-radius: 18px; background: #E3E8DE; display: inline-flex; align-items: center; font-size: 15px">weeknight</span><span style="height: 36px; padding: 0 14px; border-radius: 18px; border: 1px dashed #9AA392; display: flex; align-items: center; font-size: 15px">+ Dinners to try</span></div></div>
<div style="display: flex; flex-direction: column; gap: 8px"><span style="font-size: 13px; color: #525A4E">Lists</span><div style="display: flex; flex-wrap: nowrap; gap: 8px; overflow: hidden"><span style="height: 36px; padding: 0 14px; border-radius: 18px; display: inline-flex; align-items: center; font-size: 15px; flex: none; border: 1.5px dashed #9AA392"><svg width="14" height="14" viewBox="0 0 16 16" style="margin-right: 6px"><path d="M8 3v10M3 8h10" fill="none" stroke="#151A13" stroke-width="1.6" stroke-linecap="round"/></svg><span>Dinners to try</span></span><span style="height: 36px; padding: 0 14px; border-radius: 18px; display: inline-flex; align-items: center; font-size: 15px; flex: none; border: 1.5px dashed #9AA392"><svg width="14" height="14" viewBox="0 0 16 16" style="margin-right: 6px"><path d="M8 3v10M3 8h10" fill="none" stroke="#151A13" stroke-width="1.6" stroke-linecap="round"/></svg><span>Favourites</span></span></div></div>
<div style="display: flex; flex-direction: column; gap: 8px"><span style="font-size: 13px; color: #525A4E">Tags</span><div style="display: flex; flex-wrap: wrap; gap: 8px"><span class="chipon" style="position: relative; height: 36px; padding: 0 14px; border-radius: 18px; display: inline-flex; align-items: center; font-size: 15px">recipes<span class="tap2" style="position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 22px; background: rgba(30, 92, 69, 0.25)"></span></span><span style="height: 36px; padding: 0 14px; border-radius: 18px; background: #E3E8DE; display: inline-flex; align-items: center; font-size: 15px">weeknight</span></div></div>
<div style="height: 50px; border-radius: 12px; background: #1E5C45; color: #F6F8F4; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px">Done</div>
</div></div><div class="scr2" style="position: absolute; inset: 0; background: #F6F8F4"><div style="height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 32px 0 40px; font-weight: 600; font-size: 16px; color: #151A13"><span>9:41</span><span style="display: flex; gap: 6px; align-items: center"><svg width="18" height="12" viewBox="0 0 18 12"><path d="M1 11h2V8H1zM5 11h2V6H5zM9 11h2V3H9zM13 11h2V1h-2z" fill="#151A13"/></svg><svg width="26" height="13" viewBox="0 0 26 13"><rect x="0.5" y="0.5" width="22" height="12" rx="3.5" fill="none" stroke="#151A13" opacity="0.4"/><rect x="2" y="2" width="17" height="9" rx="2" fill="#151A13"/></svg></span></div><div style="padding: 8px 16px 8px; display: flex; align-items: center; justify-content: space-between"><b style="font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -0.03em">Inbox</b><span style="width: 32px; height: 32px; border-radius: 16px; background: #E3E8DE; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600">AB</span></div><div style="padding: 0 16px 10px; color: #525A4E; font-size: 13px">18 to triage</div><div style="border-top: 1px solid #DDE2D8"><div class="rowh" style="position: relative; height: 72px; background: #7FD3AE; overflow: hidden; border-bottom: 1px solid #DDE2D8"><span style="position: absolute; left: 20px; top: 26px; font-weight: 600; color: #151A13">Later</span>
<div class="swipe" style="position: absolute; left: 0; top: 0; width: 390px; height: 72px; box-sizing: border-box; padding: 0 16px; display: flex; align-items: center; gap: 12px; background: #F6F8F4"><div style="width: 44px; height: 44px; flex: none; border-radius: 8px; background: #E6DCD6; display: flex; align-items: center; justify-content: center"><svg width="18" height="18" viewBox="0 0 16 16"><path d="M3.5 3h9a1.5 1.5 0 0 1 1.5 1.5v7a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 11.5v-7A1.5 1.5 0 0 1 3.5 3zM6.75 6v4l3.25-2z" fill="none" stroke="#525A4E" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/></svg></div><div style="flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px"><b style="font-weight: 600">15-minute chilli oil noodles</b><span style="color: #525A4E; font-size: 13px">TikTok · 0:58 · recipes</span></div></div></div><div style="height: 72px; box-sizing: border-box; padding: 0 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #DDE2D8; background: #F6F8F4">
Expand Down
2 changes: 1 addition & 1 deletion docs/store/app-store.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**

Expand Down
Binary file modified docs/store/promo/pluck-promo-1080.mp4
Binary file not shown.
Binary file modified docs/store/promo/pluck-promo-9x16.mp4
Binary file not shown.
3 changes: 2 additions & 1 deletion docs/store/promo/promo.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@
<div class="sheet" style="position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 20px 40px; border-radius: 26px 26px 0 0; background: #F6F8F4; display: flex; flex-direction: column; gap: 18px">
<span style="align-self: center; width: 36px; height: 5px; border-radius: 3px; background: #CDD3C7"></span>
<div style="display: flex; gap: 14px; align-items: center"><span class="tickp" style="width: 44px; height: 44px; border-radius: 22px; background: #7FD3AE; display: flex; align-items: center; justify-content: center"><svg width="20" height="20" viewBox="0 0 16 16"><path d="M3.5 8.5l3 3 6-7" fill="none" stroke="#151A13" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg></span><span style="display: flex; flex-direction: column"><b style="font-size: 24px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em">Plucked.</b><span style="font-size: 15px; color: #525A4E">15-minute chilli oil noodles</span></span></div>
<div style="display: flex; flex-direction: column; gap: 8px"><span style="font-size: 13px; color: #525A4E">Tags and list</span><div style="display: flex; flex-wrap: wrap; gap: 8px"><span class="chipon" style="position: relative; height: 36px; padding: 0 14px; border-radius: 18px; display: inline-flex; align-items: center; font-size: 15px">recipes<span class="tap2" style="position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 22px; background: rgba(30, 92, 69, 0.25)"></span></span><span style="height: 36px; padding: 0 14px; border-radius: 18px; background: #E3E8DE; display: inline-flex; align-items: center; font-size: 15px">weeknight</span><span style="height: 36px; padding: 0 14px; border-radius: 18px; border: 1px dashed #9AA392; display: flex; align-items: center; font-size: 15px">+ Dinners to try</span></div></div>
<div style="display: flex; flex-direction: column; gap: 8px"><span style="font-size: 13px; color: #525A4E">Lists</span><div style="display: flex; flex-wrap: nowrap; gap: 8px; overflow: hidden"><span style="height: 36px; padding: 0 14px; border-radius: 18px; display: inline-flex; align-items: center; font-size: 15px; flex: none; border: 1.5px dashed #9AA392"><svg width="14" height="14" viewBox="0 0 16 16" style="margin-right: 6px"><path d="M8 3v10M3 8h10" fill="none" stroke="#151A13" stroke-width="1.6" stroke-linecap="round"/></svg><span>Dinners to try</span></span><span style="height: 36px; padding: 0 14px; border-radius: 18px; display: inline-flex; align-items: center; font-size: 15px; flex: none; border: 1.5px dashed #9AA392"><svg width="14" height="14" viewBox="0 0 16 16" style="margin-right: 6px"><path d="M8 3v10M3 8h10" fill="none" stroke="#151A13" stroke-width="1.6" stroke-linecap="round"/></svg><span>Favourites</span></span></div></div>
<div style="display: flex; flex-direction: column; gap: 8px"><span style="font-size: 13px; color: #525A4E">Tags</span><div style="display: flex; flex-wrap: wrap; gap: 8px"><span class="chipon" style="position: relative; height: 36px; padding: 0 14px; border-radius: 18px; display: inline-flex; align-items: center; font-size: 15px">recipes<span class="tap2" style="position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 22px; background: rgba(30, 92, 69, 0.25)"></span></span><span style="height: 36px; padding: 0 14px; border-radius: 18px; background: #E3E8DE; display: inline-flex; align-items: center; font-size: 15px">weeknight</span></div></div>
<div style="height: 50px; border-radius: 12px; background: #1E5C45; color: #F6F8F4; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px">Done</div>
</div></div><div class="scr2" style="position: absolute; inset: 0; background: #F6F8F4"><div style="height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 32px 0 40px; font-weight: 600; font-size: 16px; color: #151A13"><span>9:41</span><span style="display: flex; gap: 6px; align-items: center"><svg width="18" height="12" viewBox="0 0 18 12"><path d="M1 11h2V8H1zM5 11h2V6H5zM9 11h2V3H9zM13 11h2V1h-2z" fill="#151A13"/></svg><svg width="26" height="13" viewBox="0 0 26 13"><rect x="0.5" y="0.5" width="22" height="12" rx="3.5" fill="none" stroke="#151A13" opacity="0.4"/><rect x="2" y="2" width="17" height="9" rx="2" fill="#151A13"/></svg></span></div><div style="padding: 8px 16px 8px; display: flex; align-items: center; justify-content: space-between"><b style="font-size: 32px; line-height: 38px; font-weight: 600; letter-spacing: -0.03em">Inbox</b><span style="width: 32px; height: 32px; border-radius: 16px; background: #E3E8DE; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600">AB</span></div><div style="padding: 0 16px 10px; color: #525A4E; font-size: 13px">18 to triage</div><div style="border-top: 1px solid #DDE2D8"><div class="rowh" style="position: relative; height: 72px; background: #7FD3AE; overflow: hidden; border-bottom: 1px solid #DDE2D8"><span style="position: absolute; left: 20px; top: 26px; font-weight: 600; color: #151A13">Later</span>
<div class="swipe" style="position: absolute; left: 0; top: 0; width: 390px; height: 72px; box-sizing: border-box; padding: 0 16px; display: flex; align-items: center; gap: 12px; background: #F6F8F4"><div style="width: 44px; height: 44px; flex: none; border-radius: 8px; background: #E6DCD6; display: flex; align-items: center; justify-content: center"><svg width="18" height="18" viewBox="0 0 16 16"><path d="M3.5 3h9a1.5 1.5 0 0 1 1.5 1.5v7a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 11.5v-7A1.5 1.5 0 0 1 3.5 3zM6.75 6v4l3.25-2z" fill="none" stroke="#525A4E" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/></svg></div><div style="flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px"><b style="font-weight: 600">15-minute chilli oil noodles</b><span style="color: #525A4E; font-size: 13px">TikTok · 0:58 · recipes</span></div></div></div><div style="height: 72px; box-sizing: border-box; padding: 0 16px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #DDE2D8; background: #F6F8F4">
Expand Down
13 changes: 8 additions & 5 deletions scripts/record-promo.mjs
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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.
Expand All @@ -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.`);
22 changes: 19 additions & 3 deletions scripts/store-chrome.mjs
Original file line number Diff line number Diff line change
@@ -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 <server> <email>`, 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 <server> <email> <api key>
// 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";

Expand Down Expand Up @@ -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(
`<body style="margin:0;width:1400px;height:560px;position:relative;overflow:hidden;background:url(${data(tile)}) no-repeat">` +
`<div style="position:absolute;left:640px;top:72px;right:0;bottom:0;overflow:hidden;border-radius:16px 0 0 0;border-top:1px solid #7FD3AE;border-left:1px solid #7FD3AE;background:#FBFAF6">` +
`<img src="${data(behind)}" style="position:absolute;left:-500px;top:0;width:1280px">` +
// The popup a little smaller than life, so all of it shows in the tile's height.
`<img src="${data(card)}" style="position:absolute;top:14px;right:22px;width:318px;border-radius:12px;border:1px solid #D3D9CE;box-shadow:0 12px 32px rgba(21,26,19,0.16)">` +
`</div></body>`,
);
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);
Expand Down
Loading