| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Wrapped counter elements in a centered 'container-box for a card-like layout Added ARIA attributes: 'aria-live for counter updates and 'aria-label' for buttons Updated Font Awesome icon classes from 'fa' to 'fas' Added a dark mode toggle button for improved user experience Cleaned up spacing and structure for readability
- Created a card style container with padding, rounded corners, and shadow - Centered main content vertically and horizontally - Added spacing between buttons for a clearer layout - Implemented dark mode styles for body and container - Added smooth transitions for background, text color, and counter updates - Adjusted typography sizes for better visual hierarchy
- Moved counter update logicintoa reusable 'updateUI()' function - Updated counter text color based on value and dark mode state - Added event listener for dark mode toggle with immediate UI refresh - Simplified clickhandling using modern ES6 syntax and arrow functions - Improved readability and maintainability by centralizing logic
| Back | FazBrowse Home | New Git URL |
Summary:
This PR enhances the Counter Project by improving the UI design, adding a dark/light theme toggle, and introducing accessibility improvements
Changes Made:
- aria-live for counter updates
- aria-labels for buttons
Motivation:
These updates modernize the interface and improve usability and accessibility while maintaining the original functionality
Testing:
Here is the screeshots for comparing
Before:
After:
After (dark theme):