Skip to content

fix(header): keep the top menu bar always visible (sticky) on wopee.io (#4239)#237

Merged
marcel-veselka merged 1 commit into
mainfrom
fix/4239-sticky-navbar
Jul 4, 2026
Merged

fix(header): keep the top menu bar always visible (sticky) on wopee.io (#4239)#237
marcel-veselka merged 1 commit into
mainfrom
fix/4239-sticky-navbar

Conversation

@marcel-veselka

Copy link
Copy Markdown
Member

Closes autonomous-testing/backlog#4239.

What

Keep the top menu bar always visible while scrolling on all wopee.io pages.

Every page except the homepage already used the standard sticky navbar (navbar--fixed-topposition: sticky; top: 0). The homepage was the only exception: it hid the navbar at the top of the page and slid it in on scroll (body.is-homeposition: fixed + a reveal-on-scroll effect, added in #236). This unifies the homepage with the rest of the site.

Changes

  • src/css/custom.css — remove the homepage-only body.is-home .navbar override (fixed + translateY(-100%) hide + navbar--revealed). The homepage now uses the default opaque sticky navbar like every other page.
  • src/pages/index.tsx — remove the reveal-on-scroll useEffect and the is-home body class (both existed only to drive that override).
  • src/components/home-page/HomeHeroVibe.tsx — size the hero to min-h-[calc(100vh-5rem)] so it stays exactly one screen under the now in-flow 80px navbar (no extra scroll).

Acceptance criteria

  • Menu bar visible at any scroll position on all pages (desktop + mobile) — homepage now matches the already-sticky rest of the site.
  • No content overlap / bleed-through — opaque navbar, content flows below; anchor jump-links already offset via section { scroll-margin-top: 80px }.
  • No layout shift on load — sticky navbar is in the SSR HTML from first paint; removed the client-side reveal JS that could flash.

Verification

yarn build passes. Verified via screenshots of the local production build (yarn serve) at the top and scrolled, desktop (1280px) and mobile (390px): navbar stays visible with no overlap in all cases.

…239)

The homepage hid the navbar at the top of the page and only slid it in
after scrolling (position: fixed + reveal-on-scroll), while every other
page already used the standard sticky navbar. Unify the homepage with the
rest of the site so the top menu bar stays visible at any scroll position.

- Remove the homepage-only body.is-home navbar override and the
  reveal-on-scroll effect; the navbar now uses the default sticky
  navbar--fixed-top on all pages (opaque background, no bleed-through).
- Size the hero to calc(100vh - 5rem) so it stays one screen under the
  now in-flow 80px navbar (no extra scroll, no layout shift).

Anchor offsets were already handled by section { scroll-margin-top: 80px }.
@marcel-veselka marcel-veselka merged commit 064e064 into main Jul 4, 2026
1 check passed
@marcel-veselka marcel-veselka deleted the fix/4239-sticky-navbar branch July 4, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant