Skip to content

feat: improve navbar ui ux design#708

Open
yuvraj-k-singh wants to merge 2 commits into
magic-peach:mainfrom
yuvraj-k-singh:feature/navbar-improve
Open

feat: improve navbar ui ux design#708
yuvraj-k-singh wants to merge 2 commits into
magic-peach:mainfrom
yuvraj-k-singh:feature/navbar-improve

Conversation

@yuvraj-k-singh
Copy link
Copy Markdown

@yuvraj-k-singh yuvraj-k-singh commented May 19, 2026

Description

image

Completely improve header layout by replacing the previous split-file design with a unified, highly optimized, and responsive custom <Navbar /> component.

🔍 Previous Design Analysis

  • Architecture: The previous header implementation was disjointed; the left brand title ("Reframe") and the theme toggle button were rendered inside layout.tsx, while the "⭐ Star on GitHub" link was hardcoded as a fixed element inside page.tsx.
  • Limitations: The previous design lacked flexibility on smaller screen sizes, leading to tight text constraints and potential overlapping layout issues on mobile viewports.

🚀 Key Improvements Introduced in this PR

  • Unified Component: Consolidated all header elements into a single, self-contained <Navbar /> component for better maintainability and cleaner code architecture.
  • Mobile-Responsive Sizing: Implemented dynamic responsive classes (sm:hidden and hidden sm:inline). On mobile devices, the long text string safely collapses into a clean, compact [ GitHub Icon | ⭐ ] layout to save premium screen real estate without breaking container dimensions.
  • Theme System Integration: Fully matched all background, border, and text utilities with the global design tokens (var(--bg), var(--border), var(--surface), var(--text)). The entire header now shifts flawlessly and seamlessly across Light, Dark, and High Contrast mode tokens.
  • Hydration Protection: Added the suppressHydrationWarning flag to the <body> element within layout.tsx to handle third-party browser extensions or shortcut script injections without triggering Next.js server-to-client mismatch runtime overlays.

Related Issue

Closes #636

Type of Contribution

  • Bug fix
  • New feature
  • Documentation update
  • GSSoC contribution

Participant Info

  • GitHub username: yuvraj-kumar-singh
  • Contribution level (Beginner/Intermediate/Advanced): Intermediate

Screen Recording

navbar.mp4

Checklist

  • I have read the contribution guidelines
  • My changes follow the project structure
  • I have tested my changes in Chrome, Firefox, and Safari
  • bun run lint passes (no ESLint errors)
  • bunx tsc --noEmit passes (no TypeScript errors)
  • New interactive elements have aria-label / accessible names
  • No console.log statements left in
  • This PR is related to a valid issue
  • Screen recording attached above (required for UI/feature/design changes)

Signed-off-by: yuvraj-k-singh <yuvrajstudentbussiness@gmail.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 19, 2026

@yuvraj-k-singh is attempting to deploy a commit to the magic-peach1's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 19, 2026

✅ PR Format Check Passed — @yuvraj-k-singh

Basic format checks passed. A maintainer will review your code changes.

This does not mean the PR is approved — it just means the format is correct.

@github-actions
Copy link
Copy Markdown
Contributor

👋 Thanks for your PR, @yuvraj-k-singh!

Welcome to Reframe — a browser-based video editor built for everyone 🎬

🟠 GSSoC'26 PR detected — thanks for contributing under GirlScript Summer of Code 2026!

What happens next

  1. 🤖 Automated checks — build & TypeScript typecheck will run automatically
  2. Vercel preview — a preview deployment will be created (requires maintainer authorization for fork PRs)
  3. 👀 Code review — a maintainer will review your changes
  4. 🚀 Merge — once approved, your PR will be merged!

Quick checklist

  • PR title follows Conventional Commits (e.g. feat: add dark mode)
  • Linked the issue this PR closes (e.g. Closes #123)
  • Tested the changes locally (bun run dev)
  • Build passes (bun run build)

Useful links

Happy coding! 🎉

@github-actions github-actions Bot added level:advanced Advanced level - 55 pts type:bug Bug fix type:design UI/UX design type:docs Documentation type:feature New feature gssoc'26 GirlScript Summer of Code 2026 labels May 19, 2026
@github-actions github-actions Bot added the level:intermediate Intermediate level - 35 pts label May 19, 2026
@yuvraj-k-singh
Copy link
Copy Markdown
Author

Hi @magic-peach , I’ve completed the Navbar UI/UX improvement and addressed the related changes. Could you please review my PR when you get a chance? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc'26 GirlScript Summer of Code 2026 level:advanced Advanced level - 55 pts level:intermediate Intermediate level - 35 pts type:bug Bug fix type:design UI/UX design type:docs Documentation type:feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] : Improve NavBar section UI/UX of the Website

1 participant