fix: replace profile.jpg with profile.webp for improved image format and loading priority in Intro component

This commit is contained in:
fiatcode 2026-01-23 08:20:15 +07:00
parent f3f3adfd96
commit 88fd06ac16
3 changed files with 2 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View file

@ -1,6 +1,6 @@
--- ---
import { Image } from "astro:assets"; import { Image } from "astro:assets";
import profileImage from "@/assets/images/profile.jpg"; import profileImage from "@/assets/images/profile.webp";
import socialEmail from "@/assets/images/social-email.svg"; import socialEmail from "@/assets/images/social-email.svg";
import socialFacebook from "@/assets/images/social-facebook.svg"; import socialFacebook from "@/assets/images/social-facebook.svg";
import socialGithub from "@/assets/images/social-github.svg"; import socialGithub from "@/assets/images/social-github.svg";
@ -13,6 +13,7 @@ import SocialLink from "@/components/SocialLink.astro";
<Image <Image
src={profileImage} src={profileImage}
loading="eager" loading="eager"
fetchpriority="high"
alt="Dhemas Nurjaya" alt="Dhemas Nurjaya"
class="size-36 sm:size-48 rounded-2xl" class="size-36 sm:size-48 rounded-2xl"
/> />