Skip to content

Commit 34badda

Browse files
committed
Use Apple II loading effect.
1 parent 006702e commit 34badda

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

astro/src/pages/index.astro

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import Socials from "@components/Socials.astro";
1010
import getSortedPosts from "@utils/getSortedPosts";
1111
import { SOCIALS } from "@config";
1212
import { Content as IntroContent } from "@content/main/intro.mdx";
13+
import { LoadingImage } from "@components/LoadingImage";
1314
1415
const posts = await getCollection("pages");
1516
const sortedPosts = getSortedPosts(posts);
@@ -20,11 +21,9 @@ const socialCount = SOCIALS.filter(social => social.active).length;
2021
<Header />
2122
<main id="main-content"></main>
2223
<section id="hero">
23-
<img
24-
class="md:block float-right mx-4 size-[120px] sm:size-[200px]"
25-
src="/mdw-woods-lowres.png"
26-
alt="Matt Welsh image"
27-
/>
24+
<div class="md:block float-right mx-4 size-[120px] sm:size-[200px]">
25+
<LoadingImage client:load src="/mdw-woods-lowres.png" />
26+
</div>
2827
<article
2928
id="article"
3029
role="article"

0 commit comments

Comments
 (0)