Open-source skills for designing and reviewing software with AI agents
Python agent-skillsai-agentsantigravityclaude-codeclaude-code-pluginclaude-skillscodexcodex-plugincoding-agentscontext-engineeringdeveloper-toolsgeminillmmulti-agentprompt-engineeringspec-driven-development
site: render og.png at 2x and enlarge its type (#111)
n3wth785cc3287a1b
diff --git a/site/public/og.png b/site/public/og.pngindex 894456b..ac627bd 100644Binary files a/site/public/og.png and b/site/public/og.png differdiff --git a/site/scripts/capture.mjs b/site/scripts/capture.mjsindex 051df80..9648f26 100644--- a/site/scripts/capture.mjs+++ b/site/scripts/capture.mjs@@ -44,9 +44,9 @@ const base = `http://127.0.0.1:${server.address().port}`;// channel: 'chrome' finds the installed Chrome on Linux, macOS, and Windows; CHROME_PATH overrides it.const browser = await puppeteer.launch({ channel: 'chrome', executablePath: process.env.CHROME_PATH, args: ['--no-sandbox'] });-async function capture({ url, out, width, height, scheme = 'light', fullPage = false }) {+async function capture({ url, out, width, height, scheme = 'light', fullPage = false, scale = 1 }) {const page = await browser.newPage();- await page.setViewport({ width, height });+ await page.setViewport({ width, height, deviceScaleFactor: scale });await page.emulateMediaFeatures([{ name: 'prefers-color-scheme', value: scheme }]);await page.goto(url, { waitUntil: 'networkidle0' });await page.evaluate(() => document.fonts.ready);@@ -56,7 +56,7 @@ async function capture({ url, out, width, height, scheme = 'light', fullPage = f}try {- await capture({ url: pathToFileURL(join(site, 'scripts/og.html')).href, out: 'public/og.png', width: 1200, height: 630 });+ await capture({ url: pathToFileURL(join(site, 'scripts/og.html')).href, out: 'public/og.png', width: 1200, height: 630, scale: 2 });await capture({ url: `${base}/`, out: 'screenshots/hero-light.png', width: 1200, height: 600 });await capture({ url: `${base}/`, out: 'screenshots/hero-dark.png', width: 1200, height: 600, scheme: 'dark' });await capture({ url: `${base}/`, out: 'screenshots/full-light.png', width: 1000, height: 800, fullPage: true });diff --git a/site/scripts/og.html b/site/scripts/og.htmlindex 2c456c6..68b35c2 100644--- a/site/scripts/og.html+++ b/site/scripts/og.html@@ -27,7 +27,12 @@ limitations under the License.}:root {color-scheme: light;- --font-display: 'Google Sans Flex', system-ui, sans-serif;+ --space: 56px;+ --gap: 32px;+ --text-lg: 48px;+ --text-sm: 32px;+ --ink: #041e49;+ --mark: 176px;}* {box-sizing: border-box;@@ -37,111 +42,93 @@ limitations under the License.body {inline-size: 1200px;block-size: 630px;- padding: 44px 52px;+ padding: var(--space);display: flex;flex-direction: column;- justify-content: space-between;- font-family: var(--font-display);+ gap: var(--gap);+ font-family: 'Google Sans Flex', system-ui, sans-serif;+ letter-spacing: -0.02em;color: var(--md-sys-color-on-surface);background: var(--md-sys-color-surface);}.header {- display: flex;- align-items: baseline;- justify-content: space-between;- padding: 0 4px;- }- .brand {- font-size: 24px;+ padding-inline: 8px;+ font-size: var(--text-lg);font-weight: 600;- letter-spacing: -0.02em;- color: var(--md-sys-color-on-surface);- }- .domain {- font-size: 20px;- font-weight: 500;- color: var(--md-sys-color-on-surface-variant);- letter-spacing: -0.01em;}.cards {- display: grid;- grid-template-columns: 1fr 1fr;- gap: 24px;- block-size: 472px;+ flex: 1;+ display: flex;+ gap: var(--gap);}.card {- border-radius: 28px;- padding: 36px 44px 38px;+ flex: 1;display: flex;flex-direction: column;justify-content: space-between;- border: 1px solid rgba(8, 66, 160, 0.08);+ padding: 40px 48px 44px;+ align-items: center;+ text-align: center;+ border-radius: 32px;+ background: var(--card);+ border: 1px solid var(--edge);}.card-el {- background: #e8f0fe;+ --card: #e8f0fe;+ --edge: rgba(8, 66, 160, 0.08);}.card-gf {- background: #fff3e8;- border: 1px solid rgba(232, 110, 0, 0.12);+ --card: #fff3e8;+ --edge: rgba(232, 110, 0, 0.12);}.stage {flex: 1;- display: flex;- align-items: center;- justify-content: center;- padding-bottom: 4px;+ display: grid;+ place-items: center;+ padding-bottom: 28px;}- .card-bottom {- display: flex;- flex-direction: column;- gap: 4px;+ .stage svg {+ inline-size: var(--mark);+ block-size: var(--mark);}.name {- font-size: 34px;+ font-size: var(--text-lg);font-weight: 600;- letter-spacing: -0.02em;- color: #041e49;- line-height: 1.1;+ line-height: 1.05;+ color: var(--ink);}.desc {- font-size: 20px;- font-weight: 400;- color: var(--egm-color-elephant);- }- .desc-gf {- color: #a04c00;+ margin-top: 8px;+ font-size: var(--text-sm);+ line-height: 1.2;+ color: var(--md-sys-color-on-surface);}</style></head><body><div class="header"><span class="brand">Elephant-Goldfish Model</span>- <div class="domain">egm.dev</div></div><div class="cards"><div class="card card-el"><div class="stage">- <svg viewBox="1.60 6.8 10.4 10.4" width="232" height="232" aria-hidden="true">+ <svg viewBox="1.60 6.8 10.4 10.4" aria-hidden="true"><path d="M10.30,6.80 A5.20,5.20 0 0 0 10.30,17.20 A1.20,1.20 0 0 0 11.50,16.00 L11.50,8.00 A1.20,1.20 0 0 0 10.30,6.80Z" fill="var(--egm-color-elephant)" /><path d="M7.20,12.00 C6.80,14.60 3.40,14.70 3.20,12.60 C3.10,11.20 3.30,10.20 3.60,9.40" fill="none" stroke="var(--egm-color-elephant)" stroke-width="2.40" stroke-linecap="round" stroke-linejoin="round" /></svg></div>- <div class="card-bottom">- <div class="name">Elephant</div>- <div class="desc">Remembers everything.</div>- </div>+ <div class="name">Elephant</div>+ <div class="desc">Remembers everything</div></div><div class="card card-gf"><div class="stage">- <svg viewBox="12.5 6.8 10.4 10.4" width="232" height="232" aria-hidden="true">+ <svg viewBox="12.1 6.8 10.4 10.4" aria-hidden="true"><path d="M13.70,6.80 A5.20,5.20 0 0 1 13.70,17.20 A1.20,1.20 0 0 1 12.50,16.00 L12.50,8.00 A1.20,1.20 0 0 1 13.70,6.80Z" fill="var(--egm-color-goldfish)" /><path d="M16.80,12.00 L18.00,12.00 C18.80,12.00 19.40,10.60 20.90,9.40 M18.00,12.00 C18.80,12.00 19.40,13.40 20.90,14.60" fill="none" stroke="var(--egm-color-goldfish)" stroke-width="2.40" stroke-linecap="round" stroke-linejoin="round" /></svg></div>- <div class="card-bottom">- <div class="name">Goldfish</div>- <div class="desc desc-gf">Remembers nothing.</div>- </div>+ <div class="name">Goldfish</div>+ <div class="desc">Remembers nothing</div></div></div></body>diff --git a/site/src/layouts/Base.astro b/site/src/layouts/Base.astroindex 7a2a885..9d2563b 100644--- a/site/src/layouts/Base.astro+++ b/site/src/layouts/Base.astro@@ -42,8 +42,8 @@ const ogImage = new URL('/og.png', Astro.site);<meta property="og:description" content={description} /><meta property="og:url" content={canonical} /><meta property="og:image" content={ogImage} />- <meta property="og:image:width" content="1200" />- <meta property="og:image:height" content="630" />+ <meta property="og:image:width" content="2400" />+ <meta property="og:image:height" content="1260" /><meta name="twitter:card" content="summary_large_image" /><meta name="twitter:title" content={title} /><meta name="twitter:description" content={description} />