diff --git a/src/components/projects/AP.astro b/src/components/projects/AP.astro index 0c55be7..bb632fa 100644 --- a/src/components/projects/AP.astro +++ b/src/components/projects/AP.astro @@ -49,6 +49,8 @@ import ProjectSection from "./ProjectSection.astro"; .project-section-container { width: 100%; margin-left: -5%; + margin-right: -5%; + padding: 0 5%; } } diff --git a/src/components/projects/ProjectSection.astro b/src/components/projects/ProjectSection.astro index 1db468f..78c5a16 100644 --- a/src/components/projects/ProjectSection.astro +++ b/src/components/projects/ProjectSection.astro @@ -7,7 +7,7 @@ import { Image } from "astro:assets"; ---
{ Object.entries(annualProjects).map(([title, project], index) => ( @@ -26,7 +26,7 @@ import { Image } from "astro:assets"; class="opacity-70 w-full md:h-full h-[30vw] object-cover rounded-[1.5vw] aspect-[2/3] transition-transform duration-500 ease-in-out md:group-hover:scale-110 my-[2vw] md:my-0" />
-
+

{title}

@@ -91,11 +91,17 @@ import { Image } from "astro:assets"; } } - /* Fix for iOS Safari */ + /* Fix for iOS Safari and mobile devices */ @media screen and (max-width: 767px) { .project-card { width: 100%; margin-bottom: 5vw; + height: auto; + } + + .project-card img { + height: 60vw; + object-fit: cover; } }