Skip to content

Commit

Permalink
Improve image loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke-Oldenburg committed Dec 30, 2024
1 parent 92814a6 commit 8c255b7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/components/Socials.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,24 @@ import { Image } from "astro:assets";
---

<div
class="h-1/12 bg-bot-orange fixed bottom-0 right-0 w-1/12 p-2 sm:h-auto sm:w-auto sm:p-5"
class="h-1/12 fixed bottom-0 right-0 w-1/12 bg-bot-orange p-2 sm:h-auto sm:w-auto sm:p-5"
>
<a href="https://www.linkedin.com/company/back-on-track-america/">
<Image src="/linkedin.svg" alt="LinkedIn Icon" width="40" height="40" />
<Image
src="/linkedin.svg"
alt="LinkedIn Icon"
width="40"
height="40"
loading="eager"
/>
</a>
<a href="https://www.instagram.com/backontrackamerica/">
<Image src="/instagram.svg" alt="Instagram Icon" width="40" height="40" />
<Image
src="/instagram.svg"
alt="Instagram Icon"
width="40"
height="40"
loading="eager"
/>
</a>
</div>
1 change: 1 addition & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import BackOnTrackLayout from "../layouts/BackOnTrackLayout.astro";
class="h-fit w-screen"
width="5000"
height="3000"
loading="eager"
/>
<Image
src="/partners.png"
Expand Down
4 changes: 4 additions & 0 deletions src/pages/team.astro
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const records = await pb.collection("team").getFullList({
class="w-full object-cover pb-1"
width="400"
height="300"
loading="eager"
/>
<p class="text-2xl font-bold text-bot-blue">{record.name}</p>
<p class="text-lg">{record.title}</p>
Expand All @@ -46,6 +47,7 @@ const records = await pb.collection("team").getFullList({
alt="Location Icon"
width="24"
height="24"
loading="eager"
/>
<p class="m-1 text-lg">{record.location}</p>
</div>
Expand All @@ -62,6 +64,7 @@ const records = await pb.collection("team").getFullList({
alt="Instagram Icon"
width="40"
height="40"
loading="eager"
/>
</a>
);
Expand All @@ -76,6 +79,7 @@ const records = await pb.collection("team").getFullList({
alt="LinkedIn Icon"
width="40"
height="40"
loading="eager"
/>
</a>
);
Expand Down

0 comments on commit 8c255b7

Please sign in to comment.