feat: add elegant loading skeleton states for improved UX [GSSoC 2025]#100
Open
piyushkumar0707 wants to merge 1 commit intopiyushpatelcodes:mainfrom
Open
feat: add elegant loading skeleton states for improved UX [GSSoC 2025]#100piyushkumar0707 wants to merge 1 commit intopiyushpatelcodes:mainfrom
piyushkumar0707 wants to merge 1 commit intopiyushpatelcodes:mainfrom
Conversation
- Add skeleton loader CSS with shimmer animation - Create skeleton UI components for FAQ cards and feature cards - Implement JavaScript controls to show/hide skeletons - Add smooth fade-in animation when content loads - Support dark mode with appropriate skeleton colors - Improve perceived performance and UX during page load This addresses the lack of loading feedback and significantly enhances user experience by showing elegant placeholder content while data is being fetched.
|
@piyushkumar0707 is attempting to deploy a commit to the Piyush Patel's projects Team on Vercel. A member of the Team first needs to authorize it. |
Owner
|
@piyushkumar0707 Loved your Work But this is GPT code and i cannot accept it based on this review. For this Review Please submit a short demo video displaying your feature and then we will consider it. We also have a checklist that you need to follow. Checklist: Please confirm the following checks when submitting the pull requestIt help us ensure the completeness of the project. (These checks are mandatory, your PR will be rejected if you fail even one of these) :
|
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.
This PR implements elegant loading skeleton states for the FAQ and feature card sections, significantly improving the user experience during page load and data fetching.
Problem Statement
Previously, when users visited the site:
Solution
Implemented modern skeleton loaders that:
🚀 Changes Made
1. CSS Enhancements (
views/css/index.css)@keyframes skeleton-shimmeranimation for smooth loading effect.skeletonbase class with gradient animation.skeleton-faq-card- Mimics FAQ accordion structure.skeleton-feature-card- Mimics feature card layout.skeleton-container- Container for skeleton groups.content-loadedclass for fade-in animation.skeleton-hiddenutility class2. HTML Structure (
views/index.html)#faq-skeleton)#features-skeleton)#faq-content- Contains real FAQ cards#features-content- Contains real feature cardsskeleton-hiddenclass3. JavaScript Logic (
views/scripts/components.js)showSkeleton(skeletonId, contentId)utility functionhideSkeleton(skeletonId, contentId)utility functiondelay(ms)helper for timing control🎯 Key Features
Shimmer Animation
Dark Mode Support
.tw-darkclassResponsive Design
Performance Optimized
📸 Visual Changes
Before
After
🧪 Testing Done
🎨 Code Quality
📱 Screenshots
FAQ Section Skeleton (Light Mode)
Feature Card Skeleton (Dark Mode)
🔗 Related Issues
✅ Checklist
💡 Future Enhancements
Potential improvements for follow-up PRs:
🤝 Contributing
This PR demonstrates modern UX patterns and can serve as a reference for implementing skeleton loaders in other sections of the application.
Thank you for reviewing this PR! 🙏
Feel free to suggest improvements or request changes.