Repository navigation
Homepage: restyle the highlights gallery after Apple's - #1201
Merged
Merged
Conversation
- Slides drop their border and use the surface grey of the other cards. The caption sits at the top of the card, on a blurred copy of the media that fills it, and the media fits below with rounded corners. - The page indicator is a grey pill of dots; the current slide's dot stretches into a bar that fills while autoplay shows it. - The previous and next arrows are gone. The play/pause button stays, as WCAG 2.2.2 requires, as a round grey button beside the dots. - The current slide follows the scroll as soon as it passes halfway, rather than once the track settles. As slides scroll, their media dims, shrinks and lags behind, and the backdrop swells and drifts further. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
Restyles the Screenshots & Videos highlights gallery on
/home-next/after the highlights gallery on apple.com/macbook-pro.Slides
bg-surface, like the other borderless cards on the page.MediaBackdropgets acoveroption).aspect-ratio: auto 16/9).sm, square on phones.Page indicator and controls
--autoplay-fill(0 to 1) on each fill and the presentation draws it; Tabs keeps its line viascale-x-[var(--autoplay-fill,0)].AutoplayControl's newroundoption).Scrolling
--slide-offset,--slide-distance): media dims, shrinks and lags behind, and the backdrop swells and drifts further. Reduced motion keeps only the dimming.nearestIndexis replaced byslidePosition, a unit-tested fractional slide position that also handles the last slides resting short of their start on wide screens.Testing
npm run lint,format:check,typecheck,build,knipandnpm testpass.🤖 Generated with Claude Code