Repository navigation
feat(hero): lockup over the title that travels into the bar - #54
Merged
Merged
Conversation
…tration Remove the hero illustration in both modes, its files, preload and styles. The Domico lockup stands large and centred above the title and, as the page scrolls, travels into the navigation bar as one object: bound to scroll where the browser has scroll-driven animations, an IntersectionObserver with a transition elsewhere, and a plain jump under reduced motion. One lockup is exposed to a screen reader; a hidden copy holds the bar's width so nothing shifts. Remove "ekdoti.co" from the bar. The hero is one centred column on the spacing scale. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The large lockup's size is now one property, --hero-lockup-fs, read by the slot, the lockup and its travel. Up to 520px wide it is 70% of --fs-5xl. 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.
What
lib/hero-art.*, the preload and the styles.IntersectionObserverplus a transition elsewhere, a plain jump underprefers-reduced-motion).--hero-padstates where the lockup stands, once.Accessibility
Exactly one lockup is exposed to a screen reader: the link (named "Ekdotico home page"). The copy that holds the bar's width is
aria-hidden, so the bar does not shift. Tab order: skip link, lockup, appearance, form.Checked
typecheck, lint,
pnpm run check, vitest (29 passed) and build pass locally. Checked in Chrome at 375, 768, 1280 and 1920, light and dark: no horizontal overflow, nothing overlapping, lockup centred at the top and docked at the same place in the bar.Not checked: Firefox and Safari (no scroll-driven animations; the observer path is untested in a real browser there).
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.