feat: add elegant loading skeleton states for improved UX [GSSoC 2025] #100
+277
−4
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.