Add site wide banner for promotion - #423
Draft
isvictorious wants to merge 5 commits into
Draft
Conversation
Implements a dismissible banner promoting Tiger Data Aggregate 2026 using Starlight's built-in banner field with a default value. Banner appears above nav, is full width, uses black text, and adapts responsively on mobile. - Configure banner schema with event link in content.config.ts - Style banner with full-width layout, proper colors, and mobile responsive design in header.css Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
- Move banner from default schema to optional config file (src/lib/banner-config.ts) - Render banner conditionally in Header based on enabled flag - Add @lib path alias to astro.config.ts - Style banner as fixed 70px height, full width, yellow background - Make header sticky positioned below banner with :has() selector - CSS spacing and background only apply when banner is enabled Users can now toggle the banner on/off by changing `enabled` in banner-config.ts Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
- Desktop banner: 48px height - Mobile banner: 70px height (via media query) - Header positioned sticky below banner on both breakpoints - Use light-dark() for theme-aware header background Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
- Desktop: 104px scroll padding (48px banner + ~56px header) - Mobile: 134px scroll padding (70px banner + ~64px header) - Ensures right sidebar and anchors don't scroll under sticky nav Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
- Desktop: right-sidebar sticks at 104px (below banner + header) - Mobile: right-sidebar sticks at 134px - Prevents sidebar from overlapping with sticky nav Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
Implements a toggleable sitewide banner promoting Tiger Data Aggregate 2026 using Starlight's built-in banner support.
Changes
src/lib/banner-config.ts(toggleenabled: true/false)Testing
Status
Draft - pushing to Vercel to verify mobile TOC widget and overall layout on production build.
Co-Authored-By: Claude Haiku 4.5 noreply@anthropic.com
Affected pages
No content pages affected by this PR. Open the preview to confirm the build deployed successfully.