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

layout: fix content scrolling behind navbar #291

Open
MRita443 opened this issue Nov 5, 2024 · 2 comments · May be fixed by #308
Open

layout: fix content scrolling behind navbar #291

MRita443 opened this issue Nov 5, 2024 · 2 comments · May be fixed by #308
Assignees
Labels
bug Something isn't working
Milestone

Comments

@MRita443
Copy link
Collaborator

MRita443 commented Nov 5, 2024

Currently, the navbar is set to fixed, so it doesn't occupy space in the layout. As a result, when content overflows vertically, it appears behind the navbar, and the page content is not properly centered. While removing the fixed positioning would fix this issue, we need the navbar to stay visible while scrolling. We should research solutions for this.

Example on login page 680x410:
Image

Desired outcome:
Image

@MRita443 MRita443 added the bug Something isn't working label Nov 5, 2024
@MRita443 MRita443 added this to the Website MVP milestone Nov 5, 2024
@MRita443 MRita443 mentioned this issue Nov 5, 2024
3 tasks
@MRita443
Copy link
Collaborator Author

If the transition is too stark, add a fade out gradient at the top of the page below the nav bar

@RuiSoares333
Copy link

Considering that the navbar should be visible at all times, from my point of view, there are 2 options:

Negative Margin Background Color Opaque
Image Image
By changing the main's div class margin to
mt-20 -mb-10 md:mb-20
By adding height breakpoints to the tailwind.config file and then adding the following classes to the navbar
bg-vivid-red-900 backdrop-blur-sm bg-opacity-80 and
h-sm:bg-opacity-0 h-sm:backdrop-blur-none

@RuiSoares333 RuiSoares333 linked a pull request Dec 11, 2024 that will close this issue
3 tasks
@RuiSoares333 RuiSoares333 linked a pull request Dec 11, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants