Skip to content

Batch 2: Persistent nav bar and responsive right sidebar#28

Open
tinkerwise wants to merge 1 commit into
mainfrom
feature/batch-2-nav-layout
Open

Batch 2: Persistent nav bar and responsive right sidebar#28
tinkerwise wants to merge 1 commit into
mainfrom
feature/batch-2-nav-layout

Conversation

@tinkerwise

Copy link
Copy Markdown
Owner

Closes #23

Summary

  • Adds a persistent <nav> to every page with links to Dashboard, Schedule, and Around the Horn; active page is highlighted
  • Right sidebar no longer disappears at ≤1100px — stacks full-width below main content so all widgets stay accessible on tablets

Files changed

  • src/layouts/Layout.astro<nav class="site-nav"> with active-page detection via Astro.url.pathname
  • public/style.css — nav styles, responsive sidebar grid replacing display: none

Test plan

  • Nav appears on all three pages with correct active link highlighted
  • At 1000px viewport, right sidebar widgets (IL, Transactions, Roster, etc.) are visible below main content
  • Nav scrolls horizontally on narrow mobile without wrapping layout
  • Sidebars don't overlap the nav bar (sticky top accounts for nav height)

Generated by Claude Code

- Add sticky site-nav bar (Dashboard / Schedule / Around the Horn) to Layout.astro with active-page highlighting via Astro.url.pathname
- Add .site-nav / .site-nav-link CSS (dark theme, orange active underline, horizontal-scrollable on mobile, theme-aware overrides)
- Fix tablet breakpoint (≤1100px): instead of hiding .sidebar-right, stack it full-width below main content using a responsive auto-fill grid so Injury Report, Transactions, Roster, Contracts, Leaders, and Media remain accessible
- Add --nav-h CSS variable (35px / 33px mobile) and wire it into sidebar sticky-top and max-height calculations

https://claude.ai/code/session_01C1vhzbYUCRYNikqatrcAYN
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.

Navigation & layout: persistent nav bar and responsive right sidebar

2 participants