← back to Ticket System
marketing/render-hero.js
10 lines
const { chromium } = require('/Users/macstudio3/Projects/animals/node_modules/playwright');
(async () => {
const b = await chromium.launch({ headless:true });
const p = await b.newPage({ viewport:{width:1600,height:1000}, deviceScaleFactor:2 });
await p.goto('file:///tmp/hero.html', { waitUntil:'networkidle', timeout:20000 });
await p.waitForTimeout(1200); // fonts + webfont layout settle
await p.screenshot({ path:'/tmp/fleet-office-hero.png' });
await b.close(); console.log('OK');
})().catch(e=>{console.error('FATAL',e);process.exit(1)});