From 51ee0156c6ac76e22d916eda538adc2331bead20 Mon Sep 17 00:00:00 2001 From: Vighnesh Brahme Date: Mon, 23 Dec 2024 11:54:02 +0530 Subject: [PATCH 1/7] Added Contributor Avatar fallback svg --- assets/svgs/avatar_fallback.svg | 1 + 1 file changed, 1 insertion(+) create mode 100644 assets/svgs/avatar_fallback.svg diff --git a/assets/svgs/avatar_fallback.svg b/assets/svgs/avatar_fallback.svg new file mode 100644 index 00000000..f872ac75 --- /dev/null +++ b/assets/svgs/avatar_fallback.svg @@ -0,0 +1 @@ + \ No newline at end of file From 06b4f8567cf60c51b940620828dcbe7227b427ab Mon Sep 17 00:00:00 2001 From: Vighnesh Brahme Date: Mon, 23 Dec 2024 11:55:13 +0530 Subject: [PATCH 2/7] Added infinite scroll and lazy loading to Contributors page --- assets/css_files/contributor.css | 43 ++++++++ assets/html_files/contributor.html | 10 +- assets/js_files/contributor.js | 170 +++++++++++++++++++---------- 3 files changed, 165 insertions(+), 58 deletions(-) diff --git a/assets/css_files/contributor.css b/assets/css_files/contributor.css index f7239732..14e47348 100644 --- a/assets/css_files/contributor.css +++ b/assets/css_files/contributor.css @@ -101,6 +101,8 @@ body { margin: 10px; transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; text-align: center; + opacity: 0; + animation: fadeIn 0.3s ease forwards; } .contributor-card:hover { @@ -123,3 +125,44 @@ body { margin-top: 5px; color: #c9d1d9; /* Ensure visibility */ } + +.lazy { + filter: blur(5px); + transition: filter 0.3s; +} + +.lazy.loaded { + filter: blur(0); +} + +#loading-spinner { + text-align: center; + padding: 20px; +} + +.spinner { + width: 40px; + height: 40px; + border: 4px solid #f3f3f3; + border-top: 4px solid #3498db; + border-radius: 50%; + animation: spin 1s linear infinite; + margin: 0 auto; +} + +@keyframes spin { + 0% { transform: rotate(0deg); } + 100% { transform: rotate(360deg); } +} + +@keyframes fadeIn { + from { opacity: 0; } + to { opacity: 1; } +} + +#error-message { + color: red; + text-align: center; + padding: 20px; + display: none; +} \ No newline at end of file diff --git a/assets/html_files/contributor.html b/assets/html_files/contributor.html index 366ee15c..4214307e 100644 --- a/assets/html_files/contributor.html +++ b/assets/html_files/contributor.html @@ -94,7 +94,15 @@

Our Valuable Contributors

Meet the minds

-
+
+
+
+

Loading contributors...

+
+
+
+ Failed to load contributors. Please try again later. +