feat: Add Clipboard Button, Fix Dark Mode Toggle & Refactor Navbar Layout#85
Open
mdnm18 wants to merge 1 commit intoRoshansuthar1105:mainfrom
Open
feat: Add Clipboard Button, Fix Dark Mode Toggle & Refactor Navbar Layout#85mdnm18 wants to merge 1 commit intoRoshansuthar1105:mainfrom
mdnm18 wants to merge 1 commit intoRoshansuthar1105:mainfrom
Conversation
✅ Deploy Preview for codemint ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Author
|
I want to clarify a mix-up on my end: I realized after submitting this that Issue #5 (Copy to Clipboard) was actually from a different project board I was tracking! 😅 However, this PR is still critical for this project because it fixes Issue #66 (Broken Dark/Light Theme Toggle). While working on the UI, I noticed the theme toggle wasn't persisting or updating correctly (due to Tailwind v4 changes), so I fixed that along with the Navbar alignment bugs. Summary of this PR:
Sorry for the confusion regarding the Issue #5 reference in the title! |
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.
📝 Summary
This PR addresses Issue #5 by implementing a "Copy to Clipboard" feature and extends the scope to fix critical UI/UX bugs found during development, specifically the broken Dark/Light mode toggle (Issue #66) and Navbar alignment inconsistencies.
✨ Key Changes
1. Feature: Copy to Clipboard (Closes #5)
ClipboardButton.jsxcomponent with visual feedback (Checkmark icon + Toast notification).2. Fix: Dark/Light Mode Functionality (Closes #66)
index.cssto use the new@custom-variant darkdirective.darkMode: 'class'fromtailwind.config.js.localStoragepersistence inApp.jsxso the user's theme preference is remembered on refresh.3. UI/UX: Navbar Overhaul
🛠️ Technical Details
Navbar.jsx,Contribute.jsx,App.jsx,index.css,tailwind.config.js.🔗 Related Issues
Tested locally: The Copy button works with toast notifications, Dark mode toggles instantly and persists after reload, and the Navbar is fully responsive.