Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recap Navigation #12

Merged
merged 8 commits into from
Nov 3, 2024
Merged

Recap Navigation #12

merged 8 commits into from
Nov 3, 2024

Conversation

tuckergordon
Copy link
Owner

@tuckergordon tuckergordon commented Oct 24, 2024

Closes #4

Adds a few navigational elements to the page including:

  • League title in the navbar. Clicking it takes you back to the league page
    • Bonus: for leagues with avatar images set, will show those in the navbar as well
  • Left sidenav with links to other posts
  • Right sidenav shows table of contents and where you're at on the page

Still TODO:

  • Hide right sidenav earlier than left
  • Mobile
    • Add some sort of navigation to mobile
    • Fix title going under avatar
  • Group posts by year

Copy link

vercel bot commented Oct 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fantasy-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 3, 2024 2:32pm

Adds a left and right sidenav to the recap pages.

- The left sidenav lists all of the recaps and lets you navigate between them.
- The right sidenav lists the table of contents and where you're at on
the page

Had to modify the CSS of the page a bit to get this working, seems like
there are some bugs with skeleton UI's setup.
There's probably a more elegant way but I wanted to keep " Recap" in
the title and didn't want to pass extra metadata, so I'm just removing
it from within the actual sidenav component.
Adds the league name to the navbar and makes it a clickable link that
brings you back to the main league page.

For leagues that have an avatar image set, also adds that image to the
navbar.
Since we had to change the main scrolling element to be the body, it
messed up the scroll position when navigating between pages.

So as a workaround, adding an automatic scroll to top that runs after
you navigate.
Adds a button at the top of the post page that lets you navigate to
other posts. Only appears on smaller screens, since on large screens
you can use the sidenav.

While implementing this, I found the transition animation to be
distracting. I don't like that it results in the sidenav animating. So
I removed that for now.
@tuckergordon tuckergordon merged commit 13e44e8 into main Nov 3, 2024
5 checks passed
@tuckergordon tuckergordon deleted the sidenav branch November 3, 2024 14:33
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.

Allow navigation between posts
1 participant