feat: add dismissible webinar announcement - #5588
Merged
Merged
Conversation
Replace the scrolling header prompt with a fixed webinar announcement that stays aligned with the documentation navigation at every viewport size. Persist dismissals and restore them before hydration so direct fragment loads do not briefly show the announcement again. Fixes: #5586
Increase the banner height and type size, and use the DVC purple callout tint so the announcement stands apart from the surrounding site chrome. Keep the CTA legible and truncate it safely on narrow screens.
Wrap the announcement and place its CTA on a separate line at mobile widths. Increase the banner height only as the viewport narrows so the complete message and 44px dismiss target remain visible down to 240px.
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
Replace the scrolling header prompt with a dismissible webinar announcement.
The banner and navigation remain fixed while scrolling, and the surrounding
documentation layout accounts for the banner at desktop and mobile widths.
Dismissals persist across visits and are restored before Gatsby hydrates, so
direct fragment loads do not briefly show a previously dismissed banner.
Testing
yarn testyarn lintyarn lint-tsyarn lint-cssyarn buildFix #5586