hngprojects / hng_boilerplate_nextjs

https://deployment.nextjs.boilerplate.hng.tech
Apache License 2.0
205 stars 264 forks source link

fix: made the sidebar fixed and the content scrollable #1536

Closed abdulmalikyusuf closed 10 hours ago

abdulmalikyusuf commented 2 weeks ago

Description

Closes #1286

This PR implements a layout where the main content or surrounding interface of the website remains static, while the content section within each icon allows users to scroll up and down. The side navigation bar or navbar icon remains highlighted as users scroll within the content sections. Additionally, the mobile view is adjusted to ensure that the highlight is removed when scrolling down and is restored when scrolling up, preventing users from getting lost.

Changes proposed

What were you told to do?

Implement a layout that keeps the main content static while allowing the content within each icon to be scrollable, and maintain the highlighted icon in the sidebar or navbar during scrolling.

What did you do?

Check List (Check all the applicable boxes)

🚨Please review the contribution guideline for this repository.

Screenshots/Videos

mobile
github-actions[bot] commented 2 weeks ago

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 14.48% 777 / 5365
🔵 Statements 14.16% 779 / 5501
🔵 Functions 14.02% 213 / 1519
🔵 Branches 9.72% 226 / 2325
File CoverageNo changed files found.
Generated in workflow #529