Skip to content

Add Theme Toggle (Dark/Light Mode) & Scroll-to-Top/Bottom Button#743

Merged
komalharshita merged 2 commits into
komalharshita:mainfrom
bharathichethanamn:main
Jun 4, 2026
Merged

Add Theme Toggle (Dark/Light Mode) & Scroll-to-Top/Bottom Button#743
komalharshita merged 2 commits into
komalharshita:mainfrom
bharathichethanamn:main

Conversation

@bharathichethanamn
Copy link
Copy Markdown
Contributor

program: gssoc
Closes #704

Description

This PR implements two UI/UX enhancements for the DevPath landing page:

🌙 Theme Toggle

  • Added a theme toggle button in the navbar.
  • Supports switching between Dark Mode and Light Mode.
  • Theme preference is stored in localStorage and persists after page refresh.
  • Theme icon updates dynamically based on the active mode.

⬆⬇ Scroll Navigation Button

  • Added a floating scroll navigation button at the bottom-right corner.
  • Button appears after the user scrolls beyond 200px.
  • Smoothly scrolls between the top and bottom of the page.
  • Arrow direction updates dynamically based on scroll position.

Benefits

  • Improves accessibility and readability.
  • Enhances navigation experience on long pages.
  • Provides a modern and user-friendly interface.
  • Works across desktop and mobile devices.

Checklist

  • Tested locally
  • Responsive on desktop and mobile
  • Theme preference persists after refresh
  • No existing functionality was broken

Screenshots

Before :
Screenshot 2026-06-03 231036
Screenshot 2026-06-03 231042
After:
Screenshot 2026-06-03 232352
Screenshot 2026-06-03 232405

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 3, 2026

@bharathichethanamn is attempting to deploy a commit to the komalsony234-1530's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for submitting your first pull request to DevPath.

Before review:

  • Complete the PR template fully
  • Ensure all tests pass
  • Link your PR to an issue
  • Keep changes scoped to the issue

A maintainer will review your contribution soon.

@komalharshita
Copy link
Copy Markdown
Owner

Changes approved.....looks good to merge!
Thank you for your contribution to DevPath.

@komalharshita komalharshita merged commit a4d5b04 into komalharshita:main Jun 4, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Add Theme Toggle (Dark/Light Mode) & Scroll-to-Top/Bottom Button

2 participants