Promo kit: add 336x280 (Large box) for every angle (Marty 2026-11-16, Network Ad Space gaps)
New kit shapes rendered from HTML in the site's own look by tools/art.mjs (a shape list now renders only those shapes and leaves the other art alone). Listed in promokit.js SHAPES, so /promote, /api/promo-kit and InstantAdPay's Network sites tab show them. Smoke test counts updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+11
-7
@@ -1,7 +1,8 @@
|
||||
// Renders the site art with Playwright (local only, nothing is uploaded): the icon, the OG share image, the Telegram sale proof
|
||||
// cards (public/art/proof/fx-proof-{navy,gold,field}.png), the promo kit (public/art/kit/fx-<angle>-<shape>.png, 3 angles x 7
|
||||
// cards (public/art/proof/fx-proof-{navy,gold,field}.png), the promo kit (public/art/kit/fx-<angle>-<shape>.png, 3 angles x 8
|
||||
// shapes, ad-blocker-neutral names), the five trading-card tiers and a sample coach card (public/art/cards/), and, with
|
||||
// node tools/art.mjs --draftday http://127.0.0.1:3561 2026-11-16
|
||||
// (node tools/art.mjs --only panel renders only those kit shapes, comma list, and leaves the other art alone)
|
||||
// the Draft Day results card for that week from a running app (public/art/draftday/week-<monday>.png, the Telegram image).
|
||||
// Copy facts come from config.js; the look is the approved draft-night mockup (navy, gold, red tag, Oswald + Inter).
|
||||
import fs from 'node:fs';
|
||||
@@ -95,11 +96,14 @@ if (ddIdx > 0) {
|
||||
const out = path.join(ART, 'draftday', 'week-' + week + '.png'); await pg.screenshot({ path: out, clip: { x: 0, y: 0, width: 1080, height: 1080 } });
|
||||
console.log('draft day card', out); await browser.close(); process.exit(0);
|
||||
}
|
||||
await shot(browser, iconHtml(), path.join(ART, 'icon-192.png'), 192, 192, true);
|
||||
await shot(browser, ogHtml(), path.join(ART, 'og-share.png'), 1200, 630, true);
|
||||
for (const v of ['navy', 'gold', 'field']) await shot(browser, proofHtml(v), path.join(ART, 'proof', 'fx-proof-' + v + '.png'), 1080, 1080, true);
|
||||
await shot(browser, tiersHtml(), path.join(ART, 'cards', 'fx-tiers.png'), 1280, 460, true);
|
||||
await shot(browser, coachHtml(), path.join(ART, 'cards', 'fx-coach-card.png'), 1200, 420, true);
|
||||
for (const angle of Object.keys(ANG)) for (const [shape, [w, h]] of Object.entries(SHAPES)) await shot(browser, kitHtml(angle, shape, w, h), path.join(ART, 'kit', 'fx-' + angle + '-' + shape + '.png'), w, h, true);
|
||||
const oi = process.argv.indexOf('--only'); const ONLY = oi > 0 ? process.argv[oi + 1].split(',') : null;
|
||||
if (!ONLY) {
|
||||
await shot(browser, iconHtml(), path.join(ART, 'icon-192.png'), 192, 192, true);
|
||||
await shot(browser, ogHtml(), path.join(ART, 'og-share.png'), 1200, 630, true);
|
||||
for (const v of ['navy', 'gold', 'field']) await shot(browser, proofHtml(v), path.join(ART, 'proof', 'fx-proof-' + v + '.png'), 1080, 1080, true);
|
||||
await shot(browser, tiersHtml(), path.join(ART, 'cards', 'fx-tiers.png'), 1280, 460, true);
|
||||
await shot(browser, coachHtml(), path.join(ART, 'cards', 'fx-coach-card.png'), 1200, 420, true);
|
||||
}
|
||||
for (const angle of Object.keys(ANG)) for (const [shape, [w, h]] of Object.entries(SHAPES)) if (!ONLY || ONLY.includes(shape)) await shot(browser, kitHtml(angle, shape, w, h), path.join(ART, 'kit', 'fx-' + angle + '-' + shape + '.png'), w, h, true);
|
||||
await browser.close();
|
||||
console.log('art rendered');
|
||||
|
||||
Reference in New Issue
Block a user