Skip to content

Isometric line figures that answer the pointer. For React and for anything with a DOM.

OG card: the headline and one figure, photographed again

Lucas Marques1357a56ee20c
diff --git a/apps/site/public/og.png b/apps/site/public/og.png
index 15203a0..4354464 100644
Binary files a/apps/site/public/og.png and b/apps/site/public/og.png differ
diff --git a/scripts/og.mjs b/scripts/og.mjs
index 94569b8..738ab58 100644
--- a/scripts/og.mjs
+++ b/scripts/og.mjs
@@ -24,8 +24,8 @@ try {
await browser.close();
process.exit(1);
}
-await page.waitForFunction(() => document.querySelectorAll("[data-hairline] > svg > *").length >= 6 && document.fonts.status === "loaded");
-// Phosphor and Slow play on their own: give them a moment to be mid-loop.
+await page.waitForFunction(() => document.querySelectorAll("[data-hairline] > svg > *").length >= 1 && document.fonts.status === "loaded");
+// let the figure finish its first frames
await page.waitForTimeout(1200);
const out = join(SITE, "public/og.png");
await page.screenshot({ path: out, clip: { x: 0, y: 0, width: 1200, height: 630 } });