Add theme toggle to homepage #7896
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a theme toggle button to the homepage header that allows users to easily switch between light and dark modes.
Changes
Preview
Theme toggle button location in the homepage header
Feature: One-click theme switching on homepage
Files modified: 1 (
HomePageHeader.js
)Note about previous PR
Apologies for my last PR I encountered an issue during development and realized my changes didn't work as intended. I didn't include screenshots of the functionality because I couldn't get it working properly. I attempted to fix it but decided it would take too much time to resolve correctly. This PR is a fresh, working implementation.