Feature/dynamic word swap toggle#1643
Merged
omroy07 merged 2 commits intoomroy07:mainfrom Feb 24, 2026
Merged
Conversation
|
@Sunidhi037 is attempting to deploy a commit to the Om Roy's projects Team on Vercel. A member of the Team first needs to authorize it. |
Thanks for creating a PR for your Issue!
|
Contributor
Author
|
@omroy07 please make sure to put the label of SWoC26 and difficulty label. |
|
🎉 Congrats @Sunidhi037 on getting your PR merged! 🙌 |
SatyamPandey-07
added a commit
to SatyamPandey-07/AgriTech
that referenced
this pull request
Feb 25, 2026
SatyamPandey-07
added a commit
to SatyamPandey-07/AgriTech
that referenced
this pull request
Feb 25, 2026
omroy07
added a commit
that referenced
this pull request
Feb 26, 2026
…tic-1643 feat: AI Crop Diagnostic System #1643
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.
Description:
This PR overhauls the fragmented theme toggle buttons across the AgriTech platform, specifically targeting the transition from static square icons to a unified 2026 premium component.
Key Enhancements:
Dynamic Content Logic: Added JavaScript to intelligently swap the button's text between "Light" and "Dark" based on the current active theme, providing clearer navigation cues to the user.
Premium Pill Aesthetic: Replaced the yellow square with a sophisticated pill-shaped container featuring a deep indigo gradient (#1e1b4b to #312e81) and a soft blue glow.
Tactile Interactions: Integrated cubic-bezier(0.175, 0.885, 0.32, 1.275) timing for a high-quality "pop-out" effect on hover.
Protected Scope Execution: Wrapped all logic in an IIFE to prevent the "Cannot redeclare block-scoped variable" errors observed in earlier development cycles.
BEFORE:

AFTER:
Screen.Recording.2026-02-24.120151.mp4
closes #1556