Make the landing page look like something worth having a key for
CI / test (push) Successful in 1m30s

It is the only page a stranger sees, and until they have a key it is the
whole product: a stack of headings and shell snippets said "internal tool
you probably should not be here".

Now it opens with what this is and a diagram of why it exists — one address,
many GPUs, fabrics that cannot see each other — then the base URL as a
headline rather than a line of prose with a colon in it, the route to a key
as three cards, and the client examples as tabs instead of a pile.

The tabs are radio buttons and a stylesheet. No JavaScript decides what is on
the page, so someone who arrives with scripting off still gets every example;
the only script is the copy buttons, which exist only where the clipboard API
does and so cannot leave a dead control behind.

The page says exactly what it said before, including that it lists no models
and why. The diagram names no model, no node and no count: fabrics are drawn
because llmgw keeps them apart, not because this install has two.

Tests cover the parts that are easy to break later: every example lives in
the page itself rather than being fetched per tab, the reflected base URL —
now in five places rather than one — still cannot write markup, and the
diagram carries a label for anyone not looking at it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ilker ManapandClaude Opus 5 committed 2026-09-17 19:14:04 +02:00
1 parent f8bb78103f
commit 0cac9d6986
3 files changed
+331 -50

No files matched your search

+92
View File
@@ -170,3 +170,95 @@ select { font: inherit; padding: .35rem .4rem; border: 1px solid var(--line);
* design width so scaling up never inflates the 12px labels. */
.ranked { margin: .25rem 0 1rem; }
.ranked svg { display: block; width: 100%; max-width: 720px; height: auto; }
/* The landing page.
*
* It is the only page here a stranger sees, and for most readers it is the whole
* product until they have a key. Everything below is layout and surface: the
* page still says exactly what it said before, and still names no model, no node
* and no count. */
.banner { border-radius: 6px; padding: .7rem .9rem; margin: 0 0 1.5rem;
border: 1px solid var(--line); background: var(--card); font-size: .875rem; }
.warn-banner { border-color: var(--warn); color: var(--warn); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
gap: 2rem; align-items: center; border-bottom: 1px solid var(--line);
margin-bottom: 2.25rem; padding-bottom: 2rem; }
.hero h1 { font-size: 2.6rem; line-height: 1; margin: 0 0 .5rem; letter-spacing: -.03em; }
.hero .sub { font-size: 1.15rem; color: var(--fg); font-weight: 500; }
.hero .lede { color: var(--muted); max-width: 34rem; margin: .75rem 0 0; }
.cta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.35rem 0 0; }
.btn { display: inline-block; font-size: .9rem; font-weight: 600; text-decoration: none;
background: var(--accent); color: var(--bg); border: 1px solid var(--accent);
border-radius: 6px; padding: .5rem 1.1rem; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: none; color: var(--accent); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); filter: none; }
.schematic { margin: 0; }
.schematic svg { display: block; width: 100%; height: auto; }
.schematic figcaption { color: var(--muted); font-size: .8rem; margin-top: .6rem; }
@media (max-width: 760px) {
.hero { grid-template-columns: 1fr; gap: 1.5rem; }
.hero h1 { font-size: 2rem; }
}
/* The base URL is what a reader came for, so it is a headline rather than a
* line of prose with a colon in it. */
.url-card { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem;
background: var(--card); border: 1px solid var(--line);
border-left: 3px solid var(--accent); border-radius: 6px;
padding: .85rem 1.1rem; }
.url-card .k { font-size: .72rem; font-weight: 600; text-transform: uppercase;
letter-spacing: .06em; color: var(--muted); }
.url-card code { font-size: 1.05rem; word-break: break-all; }
.steps { list-style: none; padding: 0; margin: .5rem 0 0;
display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps > li { margin: 0; background: var(--card); border: 1px solid var(--line);
border-radius: 8px; padding: 1.1rem 1.1rem 1.25rem; }
.steps .n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem;
border-radius: 50%; background: var(--accent); color: var(--bg);
font-size: .8rem; font-weight: 700; }
.steps h3 { font-size: .98rem; margin: .6rem 0 .4rem; }
.steps p { margin: .4rem 0 0; font-size: .9rem; }
/* A card is narrower than a line of shell, and a block that scrolls sideways
* inside a card is one nobody discovers they can scroll. */
.steps pre { margin: .7rem 0 0; font-size: .78em;
white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
/* Tabs with no JavaScript: the radios carry the state, so the panel a reader
* chose survives everything including the script never loading. */
.tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin: .5rem 0 .75rem; }
.tabs > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tabs > label { display: inline-block; margin: 0; cursor: pointer; font-size: .85rem;
font-weight: 600; color: var(--muted); padding: .35rem .85rem;
border: 1px solid transparent; border-radius: 999px; }
.tabs > label:hover { color: var(--fg); }
.tabs > input:checked + label { color: var(--fg); background: var(--card);
border-color: var(--line); }
.tabs > input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.tabs > .panels { flex: 1 0 100%; }
.tabs .panel { display: none; margin: 0; }
.tabs > input:nth-of-type(1):checked ~ .panels > .panel:nth-child(1),
.tabs > input:nth-of-type(2):checked ~ .panels > .panel:nth-child(2),
.tabs > input:nth-of-type(3):checked ~ .panels > .panel:nth-child(3) { display: block; }
/* Copy buttons are injected by script, so they are positioned against the block
* they copy rather than reserving space that stays empty without one. */
pre { position: relative; }
pre .copy { position: absolute; top: .4rem; right: .4rem; padding: .15rem .5rem;
font-size: .72rem; font-weight: 600; background: var(--bg);
color: var(--muted); border: 1px solid var(--line); border-radius: 4px;
opacity: 0; transition: opacity .12s; }
pre:hover .copy, pre .copy:focus-visible { opacity: 1; }
pre .copy:hover { color: var(--fg); filter: none; }
.endpoints { list-style: none; padding: 0; margin: .5rem 0 0; }
.endpoints > li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem;
padding: .55rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.endpoints > li:last-child { border-bottom: none; }
.endpoints > li span { color: var(--muted); font-size: .85rem; }
/* A button revealed by hover is a button a phone never has. */
@media (hover: none) { pre .copy { opacity: 1; } }