feat(seasonal-theme): centralize seasonal theme logic in utility function#352
Open
feat(seasonal-theme): centralize seasonal theme logic in utility function#352
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…tion - Create getSeasonalTheme utility to manage seasonal features (snow, logo) - Move Christmas season date logic from Logo component to centralized function - Add conditional rendering for Snow component based on seasonal theme - Replace inline date checks with getSeasonalTheme() in Logo component - Improve maintainability by having single source of truth for seasonal features
…th localStorage persistence
- Create SeasonalControls component with dropdown menu for theme and snow preferences
- Create SeasonalEffects component to handle client-side rendering of seasonal effects
- Add useSeasonalPreferences hook to manage localStorage state with cross-tab sync
- Extend seasonal theme logic with getSeasonalThemeWithMode function supporting manual overrides
- Add SeasonalThemeMode type ('auto' | 'default' | '
…tions - Add prefers-reduced-motion media query detection with legacy browser support - Create LegacyMediaQueryList type for older browsers using addListener/removeListener - Add useEffect hook to monitor motion preference changes with proper cleanup - Disable snow animations when user prefers reduced motion - Support both modern addEventListener and legacy addListener APIs for broader compatibility
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Uh oh!
There was an error while loading. Please reload this page.