Skip to content

feat: Add scroll-to-top button and day/night theme toggle - #15

Open
swastiverse-182 wants to merge 1 commit into
vicharanashala:mainfrom
swastiverse-182:FullStack/swastika
Open

feat: Add scroll-to-top button and day/night theme toggle#15
swastiverse-182 wants to merge 1 commit into
vicharanashala:mainfrom
swastiverse-182:FullStack/swastika

Conversation

@swastiverse-182

Copy link
Copy Markdown

Added two small UI features:

  1. A scroll-to-top button that shows up once you scroll down a bit, click it to smoothly go back to the top of the page.
  2. A day/night mode toggle in the sidebar — switches the whole app between light and dark colors, and remembers your choice next time you open it.

Both are separate components in client/src/components/ (ScrollTopButton and ThemeToggle) instead of being crammed into main.jsx, so they're easier to read and reuse.

Tested locally with npm run dev, works fine in both light and dark mode.
Screenshot 2026-07-19 173246
Screenshot 2026-07-19 173437
Screenshot 2026-07-19 173517

@swastiverse-182

Copy link
Copy Markdown
Author

All the files are inside summership-26-prs/Swastika Mitra

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.

1 participant