Repository navigation
fix(hero): keep the title one type step above the section headings - #55
Merged
Merged
Conversation
The h1 used the fluid --fs-display, which is 24px on a phone and stays under the section headings' 30px until the window is 975px wide. The title now takes fixed steps: 2xl up to 520px (section headings drop to xl there), 3xl from 521px, 4xl from 1100px as before. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
The hero's title is the page's
h1, and on a phone it was drawn smaller than theh2section headings:--fs-displayresolves to 24px at 375px wide, against the headings' fixed 30px, and stays under them until the window is 975px wide.The title now stands one step of the type scale above the section headings at every width.
--fs-2xl, 30px--fs-xl, 24px--fs-3xl, 38px--fs-2xl, 30px--fs-4xl, 48px (unchanged)--fs-2xl, 30px (unchanged)Tokens only; one file,
app/globals.css.Checked: tests (29 passed) and
pnpm run checklocally; computed sizes read in a browser at 375px (30 and 24) and 800px (38 and 30), no horizontal scroll at 375px. Not checked: Firefox and Safari.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.