Skip to content

fix: improve marketing navigation and add go-to-top#119

Closed
LarytheLord wants to merge 1 commit intomainfrom
codex/marketing-nav-go-top
Closed

fix: improve marketing navigation and add go-to-top#119
LarytheLord wants to merge 1 commit intomainfrom
codex/marketing-nav-go-top

Conversation

@LarytheLord
Copy link
Copy Markdown
Owner

Summary

This PR cleans up a pair of low-risk landing-page issues that still matched the current codebase after triaging the open issue list.

What changed

  • added a real Home link to the public marketing navigation
  • made marketing nav highlighting respond to landing-page scroll position instead of treating all /home#... links as active at once
  • added aria-current to active nav links for better accessibility semantics
  • mounted the existing GoToTop control from the root layout
  • limited the GoToTop button to public marketing/legal pages so dashboard and auth layouts stay uncluttered

Why this approach

The repo already had a GoToTop component, but it was never wired into the shared layout. The nav also had path-based active styling, but the public hash links all rendered as active whenever the user was on /home, which made section state unclear. This PR fixes both behaviors without touching auth, API, schema, or dashboard flows.

Issue triage notes

While reviewing the current open issues, I found that #91 appears already addressed in the current branch state: both the login and register forms already use explicit Label components rather than placeholder-only inputs. I therefore started with the smaller unresolved UI items that still mapped cleanly to the codebase, especially the navigation behavior from #29 and the floating back-to-top affordance from #21.

Files changed

  • app/layout.tsx
  • components/Navigation.tsx
  • components/ui/go-to-top.tsx

Verification

  • npm run lint ? (existing repo warnings remain, no new lint errors introduced)
  • npm run type-check ?

Follow-up candidates

The next good low-risk issue to tackle looks like #77 (section-number contrast/visibility), since it should be a contained landing-page styling fix without backend or schema work.

Add a real Home link to the marketing navigation, make landing-page link highlighting respond to scroll position, and expose active link state through aria-current for better accessibility.

Also mount the existing GoToTop control from the root layout and limit it to public marketing/legal pages so dashboard and auth screens keep their dedicated layouts uncluttered.

Verified with npm run lint and npm run type-check.
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Mar 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
adventurers-guild Ready Ready Preview, Comment Mar 16, 2026 6:32pm

@Adil2009700
Copy link
Copy Markdown
Collaborator

Closing this PR because it was opened before the GitHub account switch. A replacement PR with the same change set is now open under the correct account here: #120.

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.

2 participants