This time for sure
All checks were successful
Docker Deploy / build-and-push (push) Successful in 3m25s
All checks were successful
Docker Deploy / build-and-push (push) Successful in 3m25s
This commit is contained in:
16
src/components/Logo.astro
Normal file
16
src/components/Logo.astro
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
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"
|
||||||
|
style="max-width: 12rem; width: 100%;"
|
||||||
|
/>
|
||||||
@@ -4,6 +4,7 @@ import SocialLinks from "../components/SocialLinks.astro";
|
|||||||
import TechLinks from "../components/TechLinks.astro";
|
import TechLinks from "../components/TechLinks.astro";
|
||||||
import Layout from "../layouts/Layout.astro";
|
import Layout from "../layouts/Layout.astro";
|
||||||
import { config } from "../config";
|
import { config } from "../config";
|
||||||
|
import Logo from "../components/Logo.astro";
|
||||||
---
|
---
|
||||||
|
|
||||||
<Layout
|
<Layout
|
||||||
@@ -12,18 +13,7 @@ import { config } from "../config";
|
|||||||
ogImage={config.siteConfig.pageOpenGraph.home.image}
|
ogImage={config.siteConfig.pageOpenGraph.home.image}
|
||||||
ogType={config.siteConfig.pageOpenGraph.home.type}
|
ogType={config.siteConfig.pageOpenGraph.home.type}
|
||||||
>
|
>
|
||||||
<Image
|
<Logo client:idle />
|
||||||
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')"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<h1 class="text-primary text-4xl sm:text-6xl font-bold text-center">
|
<h1 class="text-primary text-4xl sm:text-6xl font-bold text-center">
|
||||||
{config.personalInfo.name}
|
{config.personalInfo.name}
|
||||||
|
|||||||
Reference in New Issue
Block a user