diff --git a/src/pages/index.astro b/src/pages/index.astro
index f2238f2..b0ea424 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -30,20 +30,16 @@ import { getImageUrl } from "~/utils/get-image-url";
-
-
-
- {/* @ts-expect-error */}
-
-
+
+
+ {/* @ts-expect-error */}
+
-
- Opulento by
- Troy Ni on uvcanvas.com
-
+ Opulento by
+ Troy Ni on uvcanvas.com
-
+
diff --git a/src/pages/projects/index.astro b/src/pages/projects/index.astro
index db51554..6c069a1 100644
--- a/src/pages/projects/index.astro
+++ b/src/pages/projects/index.astro
@@ -11,7 +11,6 @@ import Heading from "~/layouts/default/components/heading.astro";
import DefaultLayout from "~/layouts/default/index.astro";
import Anchor from "~/ui/components/anchor.astro";
import ConverCanva from "~/ui/components/conver-canva.astro";
-import CoverImgContainer from "~/ui/components/cover-img-container.astro";
import { getImageUrl } from "~/utils/get-image-url";
import ProjectPost from "./_components/project-post.astro";
---
@@ -25,12 +24,10 @@ import ProjectPost from "./_components/project-post.astro";
-
-
-
- {/* @ts-expect-error */}
-
-
+
+
+ {/* @ts-expect-error */}
+
Novatrix by
@@ -38,7 +35,7 @@ import ProjectPost from "./_components/project-post.astro";
href="https://uvcanvas.com">uvcanvas.com
-
+
-
-
-
+
+
+
-
+
@@ -51,9 +44,9 @@ const placeholder = await getImagePlaceholder(src);
if ("querySelector" in target) {
const canvas = (target as HTMLElement).querySelector("canvas");
if (canvas) {
- const imgLinkEl = document.getElementById("image-link");
- if (imgLinkEl) {
- imgLinkEl.style.opacity = "0";
+ const containerEl = document.getElementById("image-container");
+ if (containerEl) {
+ containerEl.style.opacity = "0";
}
observer.disconnect();
}
diff --git a/src/ui/components/cover-img.astro b/src/ui/components/cover-img.astro
index b4ada69..356874f 100644
--- a/src/ui/components/cover-img.astro
+++ b/src/ui/components/cover-img.astro
@@ -27,7 +27,7 @@ const placeholder = await getImagePlaceholder(src);
background={placeholder}
priority
fetchpriority="high"
- class="aspect-[4/3] w-full h-full"
+ class="aspect-cover w-full h-full"
/>
diff --git a/tailwind.config.ts b/tailwind.config.ts
index 2c1c248..30e9393 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -71,6 +71,9 @@ const config = {
small: "0.75rem",
tiny: "0.5rem",
},
+ aspectRatio: {
+ cover: "4/3",
+ },
},
},
plugins: [require("tailwindcss-animate")],