Pls
All checks were successful
Docker Deploy / build-and-push (push) Successful in 2m57s

This commit is contained in:
2026-03-08 13:21:57 -06:00
parent 0060d309cb
commit 5b656ebb03
2 changed files with 22 additions and 12 deletions

17
src/components/Logo.astro Normal file
View File

@@ -0,0 +1,17 @@
---
import { Image } from "astro:assets";
import { config } from "../config";
---
<Image
src={config.personalInfo.profileImage.src}
alt={config.personalInfo.profileImage.alt}
widths={[192, 384]}
sizes="12rem"
layout="constrained"
loading="eager"
fetchpriority="high"
class="rounded-full mx-auto opacity-0 transition-opacity duration-300"
style="max-width: 12rem; width: 100%;"
onload="this.classList.remove('opacity-0')"
/>

View File

@@ -1,5 +1,5 @@
---
import { Image } from "astro:assets";
import Logo from "../components/Logo.astro";
import SocialLinks from "../components/SocialLinks.astro";
import TechLinks from "../components/TechLinks.astro";
import Layout from "../layouts/Layout.astro";
@@ -12,17 +12,10 @@ import { config } from "../config";
ogImage={config.siteConfig.pageOpenGraph.home.image}
ogType={config.siteConfig.pageOpenGraph.home.type}
>
<Image
src={config.personalInfo.profileImage.src}
alt={config.personalInfo.profileImage.alt}
widths={[192, 384]}
sizes="12rem"
layout="constrained"
loading="eager"
fetchpriority="high"
class="rounded-full mx-auto"
style="max-width: 12rem; width: 100%;"
/>
<Logo server:defer>
<div slot="fallback" class="skeleton w-48 h-48 rounded-full mx-auto">
</div>
</Logo>
<h1 class="text-primary text-4xl sm:text-6xl font-bold text-center">
{config.personalInfo.name}