Skip to content

Commit

Permalink
use <Image> in Header
Browse files Browse the repository at this point in the history
  • Loading branch information
yuheiy committed Jan 4, 2024
1 parent 88ba6ea commit 79e2c81
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
import { Image } from 'astro:assets';
import faviconImage from '../assets/favicon.svg';
import { SITE_TITLE } from '../consts';
Expand Down Expand Up @@ -27,12 +28,11 @@ const Components = isHome
<p class="wrapper pt-16 text-sm text-dynamic-muted kerning-normal">
{/* eslint-disable-next-line astro/jsx-a11y/anchor-is-valid */}
<a class="flex w-fit items-center gap-x-3" href={isHome ? null : '/'}>
<img
<Image
class="w-7 rounded-full ring-1 ring-dynamic"
src={faviconImage.src}
width={faviconImage.width}
height={faviconImage.height}
src={faviconImage}
alt=""
loading="eager"
/>
{SITE_TITLE}
</a>
Expand Down

0 comments on commit 79e2c81

Please sign in to comment.