Repository navigation
feat(landing): fit the hero headline on two lines and the lede on three - #4
Merged
Merged
Conversation
"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]>
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
"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..dimand.hotfollow it inline..hotisinline-blockrather 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. Thewidth: fit-contentit 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 testandnpm run buildpass.Screenshots with Playwright (Chromium), in both themes, at 1440, 1280, 1024, 951, 768, 390 and 360 px wide. No horizontal overflow at any width.
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.