forked from PriyaGhosal/SkillWise
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request PriyaGhosal#856 from AryanGupta001/pr/loading
feat: Added skeleton screen loading for home page
- Loading branch information
Showing
3 changed files
with
145 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,13 +59,30 @@ | |
|
||
<body> | ||
|
||
<!-- | ||
- PRELOADER | ||
--> | ||
<div id="skeleton-loader" style="display: flex; flex-direction: column; gap: 1rem; padding: 1rem;"> | ||
<!-- Hero Section Placeholder --> | ||
<div class="skeleton skeleton-hero"></div> | ||
|
||
<!-- Category Cards Placeholder --> | ||
<div class="skeleton-category-section"> | ||
<div class="skeleton skeleton-category"></div> | ||
<div class="skeleton skeleton-category"></div> | ||
<div class="skeleton skeleton-category"></div> | ||
</div> | ||
|
||
<!-- Featured Courses Placeholder --> | ||
<div class="skeleton-courses-section"> | ||
<div class="skeleton skeleton-course"></div> | ||
<div class="skeleton skeleton-course"></div> | ||
<div class="skeleton skeleton-course"></div> | ||
</div> | ||
</div> | ||
|
||
<!-- Main Content --> | ||
<div id="main-content" style="display: none;"> | ||
|
||
|
||
|
||
<div class="preloader" data-preloader> | ||
<div class="circle" data-circle></div> | ||
</div> | ||
|
||
|
||
|
||
|
@@ -1674,7 +1691,7 @@ <h3 class="event-title">Creative Design Thinking</h3> | |
|
||
</footer> | ||
|
||
|
||
</div> | ||
|
||
<!--JS for searching courses --> | ||
<script> | ||
|
@@ -1764,6 +1781,15 @@ <h3 class="event-title">Creative Design Thinking</h3> | |
<!-- Bootstrap JS Bundle (Optional) --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script> | ||
|
||
<script> | ||
window.addEventListener("load", function() { | ||
setTimeout(() => { | ||
document.getElementById("skeleton-loader").style.display = "none"; | ||
document.getElementById("main-content").style.display = "block"; | ||
}, 1000); // 1 second delay | ||
}); | ||
</script> | ||
|
||
</body> | ||
|
||
</html> |
This file contains 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