Skip to content

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

Skill page: a follow-up is marked "then" under its prompt, so the two read as one exchange and not two prompts

Lucas Marquesd0572e8016b5
diff --git a/apps/site/app/globals.css b/apps/site/app/globals.css
index 1b735e1..6227141 100644
--- a/apps/site/app/globals.css
+++ b/apps/site/app/globals.css
@@ -355,6 +355,9 @@ footer a::after { content: ""; position: absolute; inset: -12px -8px; }
.example > * { min-width: 0; }
.example-prompt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }
.example-figure { container-type: inline-size; }
+/* the prompt and its follow-up, one exchange: the follow-up is marked as the next turn */
+.example-turns { display: grid; gap: 8px; }
+.example-then { padding: 2px 16px 0; font-size: 12px; font-weight: 500; line-height: 1; color: var(--color-muted); }
/* a prompt is read, not run: it wraps in its pill when it must, and the copy icon stays by its first line. Only the
install command, a shell line, keeps to one line and scrolls. */
.pill:is([data-command="prompt"], [data-command="follow-up"], [data-command="usage"]) { height: auto; min-height: 48px; padding-block: 6px; align-items: start; }
diff --git a/apps/site/app/skill/page.tsx b/apps/site/app/skill/page.tsx
index 54f2e55..9fa0070 100644
--- a/apps/site/app/skill/page.tsx
+++ b/apps/site/app/skill/page.tsx
@@ -26,13 +26,21 @@ export default function Skill() {
<section aria-labelledby="examples-title" className="doc-section">
<h2 id="examples-title" className="doc-h2">What it draws</h2>
- <p className="doc-p">Each figure below is the page the skill wrote for the line beside it, as it wrote it. Where there is a second line, it is the change asked for next. Move the pointer over one.</p>
+ <p className="doc-p">Each figure below is the page the skill wrote for the line next to it, as it wrote it. Move the pointer over one.</p>
<div>
{shown.map((e) => (
<article key={e.file} className="example" data-example={e.name}>
<div className="example-prompt">
- <Command code={e.prompt} kind="prompt" label="Copy prompt" />
- {e.followUp && <Command code={e.followUp} kind="follow-up" label="Copy follow-up" />}
+ {/* one exchange: the prompt, and the change asked for next */}
+ <div className="example-turns">
+ <Command code={e.prompt} kind="prompt" label="Copy prompt" />
+ {e.followUp && (
+ <>
+ <p className="example-then">then</p>
+ <Command code={e.followUp} kind="follow-up" label="Copy follow-up" />
+ </>
+ )}
+ </div>
<a className="doc-more" href={e.href}>Open the page</a>
</div>
<div className="example-figure">