diff --git a/src/components/events/EventTitle.astro b/src/components/events/EventTitle.astro index 4dcc16b..3ce4fcf 100644 --- a/src/components/events/EventTitle.astro +++ b/src/components/events/EventTitle.astro @@ -5,11 +5,19 @@ import { LiaDotCircle } from "react-icons/lia"; ---
- Event Page Background +
+
+
+ Event Page Background +
@@ -17,3 +25,16 @@ import { LiaDotCircle } from "react-icons/lia";

EVENTS

+ + diff --git a/src/components/projects/ProjectSection.astro b/src/components/projects/ProjectSection.astro index 3d55e6b..5b4ba1b 100644 --- a/src/components/projects/ProjectSection.astro +++ b/src/components/projects/ProjectSection.astro @@ -15,13 +15,17 @@ import { Image } from "astro:assets"; data-project={index + 1} target={title === "Supercomputing" ? "_blank" : "_self"} > - {`${title} +
+
+ {`${title} +

@@ -120,4 +124,33 @@ import { Image } from "astro:assets"; initializeProjectCards(); document.addEventListener("astro:page-load", initializeProjectCards); + + // Image loading handler + function handleImageLoading() { + const projectImages = document.querySelectorAll(".project-card img"); + + projectImages.forEach((image, index) => { + // Ensure the image is fully loaded, even if it's already in cache + if (image.complete) { + image.style.opacity = "1"; + const skeleton = image.previousElementSibling; + if (skeleton && skeleton.classList.contains("skeleton")) { + skeleton.style.display = "none"; + } + } else { + image.addEventListener("load", () => { + image.style.opacity = "1"; + const skeleton = image.previousElementSibling; + if (skeleton && skeleton.classList.contains("skeleton")) { + skeleton.style.display = "none"; + } + }); + } + }); + } + + // Ensure images are loaded after a short delay + setTimeout(handleImageLoading, 100); + handleImageLoading(); + document.addEventListener("astro:page-load", handleImageLoading); diff --git a/src/components/projects/QP.astro b/src/components/projects/QP.astro index c8de40f..cbdc7c9 100644 --- a/src/components/projects/QP.astro +++ b/src/components/projects/QP.astro @@ -11,11 +11,19 @@ import { IoIosArrowDroprightCircle } from "react-icons/io";

Quarterly Project

- qp showcase photo +
+
+
+ qp showcase photo +
+ + diff --git a/src/pages/find.astro b/src/pages/find.astro index 1f8a283..bd6f925 100644 --- a/src/pages/find.astro +++ b/src/pages/find.astro @@ -21,11 +21,13 @@ import contactbroder from "../images/contactbroder.webp"; />
- board group photos +
+ board group photos +