Skip to content

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

Inspo: the rules read Rule 09 and Rule 10, so their numbers no longer look like steps between 05 and 06

Lucas Marques11615e5a3584
diff --git a/apps/site/app/globals.css b/apps/site/app/globals.css
index 9cdc864..48e4ade 100644
--- a/apps/site/app/globals.css
+++ b/apps/site/app/globals.css
@@ -256,7 +256,7 @@ a.topbar-link:hover { color: var(--color-ink); }
.inspo-split-text { display: grid; gap: 16px; max-width: 640px; }
.inspo-split .inspo-figure { margin-top: 0; max-width: 480px; }
.inspo-rules { display: grid; gap: 16px; }
-.inspo-rules li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding-top: 16px; border-top: 1px solid var(--color-line); }
+.inspo-rules li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding-top: 16px; border-top: 1px solid var(--color-line); }
.inspo-rules .inspo-n { line-height: 1.6; }
.inspo-rule { font-size: 16px; font-weight: 500; line-height: 1.5; }
.inspo-keep { display: grid; gap: 12px; padding-left: 1.2em; list-style: disc; font-size: 16px; line-height: 1.6; text-wrap: pretty; }
diff --git a/apps/site/app/inspo/page.tsx b/apps/site/app/inspo/page.tsx
index c0b8406..ca28dbf 100644
--- a/apps/site/app/inspo/page.tsx
+++ b/apps/site/app/inspo/page.tsx
@@ -189,7 +189,7 @@ export default function Inspo() {
</Prompt>
<ol className="inspo-rules">
<li>
- <span className="inspo-n">09</span>
+ <span className="inspo-n">Rule 09</span>
<div>
<p className="inspo-rule">Round every corner, then draw less.</p>
<p className="inspo-p">
@@ -198,7 +198,7 @@ export default function Inspo() {
</div>
</li>
<li>
- <span className="inspo-n">10</span>
+ <span className="inspo-n">Rule 10</span>
<div>
<p className="inspo-rule">No words inside the figure.</p>
<p className="inspo-p">
diff --git a/apps/site/test/site.spec.ts b/apps/site/test/site.spec.ts
index 193b5cd..28df824 100644
--- a/apps/site/test/site.spec.ts
+++ b/apps/site/test/site.spec.ts
@@ -772,3 +772,8 @@ test("every small label on /inspo is set the same: one face, size, weight and co
expect(types.length).toBeGreaterThan(10);
expect(new Set(types).size).toBe(1);
});
+
+test("the rules on /inspo say they are rules, so their numbers don't read as steps", async ({ page }) => {
+ await page.goto("/inspo");
+ await expect(page.locator(".inspo-rules .inspo-n")).toHaveText(["Rule 09", "Rule 10"]);
+});