Skip to content

feat(landing): fit the hero headline on two lines and the lede on three - #4

Merged
kalaspuff merged 1 commit into
mainfrom
fctl/11-can-we-change-the-header-text-on-on-the
Oct 18, 2026
Merged

kalaspuff merged 1 commit into
mainfrom
fctl/11-can-we-change-the-header-text-on-on-the

Conversation

@fctl-sh

@fctl-sh fctl-sh Bot commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

"while you" and "sleep." now share the hero headline's second line, and the lede drops "— never on API billing". On desktop the headline takes two lines (was three) and the lede three (was four).

  • src/site.css: only the headline's first span ("Agents that build") is a block. .dim and .hot follow it inline.
  • In the light theme, .hot is inline-block rather than plain inline. Its yellow is a highlighter stroke drawn in the bottom 0.26em of its box. A plain inline box is as tall as the font (1.3em), which pushed the stroke below the word. An inline-block is one line tall (0.94em), like the old block, so the stroke stays on the letters. The width: fit-content it needed as a block is gone.
  • index.html: the lede's billing tail goes. Step 02 below ("fctl refuses API keys, checks every session's billing source…") and the docs already cover it.

How I checked it

  • npm run check, npm test and npm run build pass.

  • Screenshots with Playwright (Chromium), in both themes, at 1440, 1280, 1024, 951, 768, 390 and 360 px wide. No horizontal overflow at any width.

    Width Headline lines Lede lines
    768–1440 px 3 → 2 4 → 3
    390 px 3 → 2 6 → 5
    360 px 4 → 3 ("Agents that / build" wraps, as before) 6 → 6
  • Light theme: the box around "sleep." measures the same as the old block (211.5 × 110.9 px at 1440 px wide), with the glyphs at the same offset inside it. The highlighter sits where it did before.

Made in the fctl session https://app.fctl.sh/s/ses_01M56BPPYNRVMGHMSBNNRWB65X, which has the before and after screenshots.

"while you" and "sleep." now share the headline's second line: only
"Agents that build" is a block. In the light theme "sleep." is an
inline-block, so its highlighter stroke keeps the height of one line and
sits on the letters as before (a plain inline box is as tall as the font,
which dropped the stroke below the word).

The lede drops "— never on API billing": the steps below and the docs
already explain the subscription, and without it the lede takes three
lines instead of four on desktop.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kalaspuff
kalaspuff merged commit c6aec6a into main Oct 18, 2026
3 checks passed
@kalaspuff
kalaspuff deleted the fctl/11-can-we-change-the-header-text-on-on-the branch October 18, 2026 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant