feat: unify sticky header — ArticleScrollBar everywhere#121
Merged
RonanHevenor merged 1 commit intomainfrom Apr 24, 2026
Merged
feat: unify sticky header — ArticleScrollBar everywhere#121RonanHevenor merged 1 commit intomainfrom
RonanHevenor merged 1 commit intomainfrom
Conversation
…leStaticHeader - Delete ArticleStaticHeader.tsx and every import/usage. Article layouts (Standard, Opinion, Photofeature mobile) and the live article page now render nothing redundant — ArticleScrollBar is the one sticky bar on articles. - ArticleScrollBar grows a home mode: when title/section props are absent it swaps the share button for a search button, hides the section|title center piece, and fades the whole bar in only after scrolling past ~220px. Homepage opts in by rendering <ArticleScrollBar /> with no props. - On article pages the bar is now visible from scroll 0 with the logo centered. Past ~100px the logo cross-fades to the left and the section|title center cross-fades in — matching what readers expect from a pinned-at-top article header. - Article layouts gain pt-[64px] so their content clears the 56px bar with 8px of breathing room (mobile + desktop). Photofeature's full-bleed desktop art stays edge-to-edge.
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.
Deletes ArticleStaticHeader (the redundant one) and makes ArticleScrollBar the single sticky header across homepage and article pages. Home mode swaps share→search and is scroll-triggered. Article mode is always visible with logo starting centered and sliding left on scroll. pt-[64px] on article layouts to clear the 56px bar with 8px breathing room.