Feature Description
The masthead should render in two distinct modes depending on the current page:
- Library (landing): full-height hero with eyebrow badge, large title, subtitle, and sub-nav
- App pages: compact navbar (~42px) showing only the sub-nav (Library + current app crumb) and a brand wordmark outside the constrained inner container on the left
Problem / Opportunity
The full-height masthead wastes vertical space on documentation app pages where the sub-app already supplies its own heading. A compact navbar gives users immediate access to navigation without scrolling past a large hero.
Acceptance Criteria
- Library page renders the full masthead (unchanged)
- All other pages render the compact masthead at ~42px height
- Eyebrow, title paragraph, and subtitle are hidden on app pages
- "Knowledge base" brand wordmark appears left of the nav at ≥768px, outside the
mp-masthead-inner constraint
- Brand hides below 768px; nav takes full width
mp-masthead--compact class drives all compact styles via CSS; no JS required
Proposed Solution
- Add
mp-masthead--compact class to .mp-masthead when activeApp exists
- Render
mp-masthead-brand as a direct sibling before .mp-masthead-inner (not inside it) so it escapes the max-width: 72rem centering
- CSS: compact masthead is
display: flex; align-items: center; brand is flex-shrink: 0 with padding-left; inner is flex: 1
Dependencies / Related
Affects src/components/Masthead.astro and src/styles/marketplace.css
Feature Description
The masthead should render in two distinct modes depending on the current page:
Problem / Opportunity
The full-height masthead wastes vertical space on documentation app pages where the sub-app already supplies its own heading. A compact navbar gives users immediate access to navigation without scrolling past a large hero.
Acceptance Criteria
mp-masthead-innerconstraintmp-masthead--compactclass drives all compact styles via CSS; no JS requiredProposed Solution
mp-masthead--compactclass to.mp-mastheadwhenactiveAppexistsmp-masthead-brandas a direct sibling before.mp-masthead-inner(not inside it) so it escapes themax-width: 72remcenteringdisplay: flex; align-items: center; brand isflex-shrink: 0withpadding-left; inner isflex: 1Dependencies / Related
Affects
src/components/Masthead.astroandsrc/styles/marketplace.css