Skip to content

UI Improvements: Smart Header, Smooth Animations, Sidebar Fixes#46

Merged
Jatin917 merged 2 commits intoAnujcodecraft:mainfrom
moteeb-asad:ui-improvements-fresh
Aug 2, 2025
Merged

UI Improvements: Smart Header, Smooth Animations, Sidebar Fixes#46
Jatin917 merged 2 commits intoAnujcodecraft:mainfrom
moteeb-asad:ui-improvements-fresh

Conversation

@moteeb-asad
Copy link
Contributor

@moteeb-asad moteeb-asad commented Aug 1, 2025

This PR includes several UI/UX improvements:

  1. Smart Header Behavior
  • Added smooth hide/show animations on scroll
  • Header hides when scrolling down and reappears when scrolling up
  • Always visible at the top of the page
  1. Sidebar Enhancements
  • Added smooth open/close animations
  • Added backdrop with blur effect
  • Added close (X) button with hover effects
  • Improved transitions and positioning
  1. Dynamic Content Height Management
  • Added useContentHeight hook to control scrollbar visibility
  • Content centers vertically when it fits the viewport
  • Scrollbar only appears when content overflows
  • Proper handling of fixed header offset
  1. Layout Improvements
  • Increased maximum width of containers
  • Improved padding and spacing in profile sections
  • Better grid layout and gaps in profile cards
  • Proper background color management
  1. Code Organization
  • Added new custom hooks:
    • useContentHeight.js: For dynamic content management
    • useScrollDirection.js: For smart header behavior

Fixes #39

@netlify
Copy link

netlify bot commented Aug 1, 2025

Deploy Preview for manitstudyportal ready!

Name Link
🔨 Latest commit b0d86f7
🔍 Latest deploy log https://app.netlify.com/projects/manitstudyportal/deploys/688c9e9ea7469b0008086ecd
😎 Deploy Preview https://deploy-preview-46--manitstudyportal.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@moteeb-asad
Copy link
Contributor Author

@Jatin917 Kindly review the PR and approve. Thank you

@Anujcodecraft
Copy link
Owner

@moteeb-asad
image
when not logged in there is still scroll bar

@Jatin917 Jatin917 self-requested a review August 2, 2025 12:22
@Jatin917 Jatin917 merged commit 93edfef into Anujcodecraft:main Aug 2, 2025
4 of 6 checks passed
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.

## 🐛 UI Bug: Unwanted Scrollbar on Home Page and Header/Profile Sidebar Improvements

3 participants