Skip to content

Commit

Permalink
Use Apple II loading effect.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdwelsh committed Dec 13, 2024
1 parent 006702e commit 34badda
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions astro/src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Socials from "@components/Socials.astro";
import getSortedPosts from "@utils/getSortedPosts";
import { SOCIALS } from "@config";
import { Content as IntroContent } from "@content/main/intro.mdx";
import { LoadingImage } from "@components/LoadingImage";
const posts = await getCollection("pages");
const sortedPosts = getSortedPosts(posts);
Expand All @@ -20,11 +21,9 @@ const socialCount = SOCIALS.filter(social => social.active).length;
<Header />
<main id="main-content"></main>
<section id="hero">
<img
class="md:block float-right mx-4 size-[120px] sm:size-[200px]"
src="/mdw-woods-lowres.png"
alt="Matt Welsh image"
/>
<div class="md:block float-right mx-4 size-[120px] sm:size-[200px]">
<LoadingImage client:load src="/mdw-woods-lowres.png" />
</div>
<article
id="article"
role="article"
Expand Down

0 comments on commit 34badda

Please sign in to comment.