Add site-wide sticky apply banner - #279
Open
GauravShah123 wants to merge 4 commits into
Open
Conversation
Promote the applications banner to a sticky announcement bar pinned above the navbar on every page (previously only inside the Join Us hero). - New ApplyBar: slim fixed top bar, renders only while APPLICATION_IS_LIVE - Layout sets --apply-banner-h so the navbar and all page content offset by the bar's height (0 when the bar is hidden) - Navbar top anchored to --apply-banner-h - Remove the now-duplicate inline ApplyNowBanner from JoinUsHero and delete the unused component Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Button reads "Apply now" - Increase bar height (3rem -> 3.5rem) for more vertical breathing room; --apply-banner-h offset stays in sync Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Swap the filled button for an inline underlined link so it fits the slim announcement bar. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Distinguishes the sticky bar from page content beneath it. Co-Authored-By: Claude Opus 4.8 <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.
Summary
Promotes the applications banner to a sticky announcement bar pinned above the navbar on every page. Previously it only rendered inside the Join Us hero (
/join-us).How it works
ApplyBar(new,src/components/layout/ApplyBar.tsx): a slimfixed top-0bar (z above the navbar) with the applications copy + Apply button. Renders only whileAPPLICATION_IS_LIVE, so it self-hides once applications close.--apply-banner-hCSS variable (equal to the bar height) on<body>when applications are live, and pads the body by it. When not live, the variable is unset and the offset is0.topis anchored tovar(--apply-banner-h, 0px), so it sits directly under the bar (and0when the bar is hidden). Scroll hide-on-scroll behaviour is unchanged.ApplyNowBannerfromJoinUsHeroand deletes the unused component.Notes
constants/applications.tsvalues (APPLICATION_CLOSE_DATETIME,APPLICATION_LINK), so the close date stays in sync with the rest of the site./linkspage.🤖 Generated with Claude Code