Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Commit

Permalink
Use enhanced:img for events heros
Browse files Browse the repository at this point in the history
See #45
  • Loading branch information
MrGreenTea committed Nov 23, 2023
1 parent b18d934 commit 7f26ba0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/routes/events/[slug]/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script>
import Gathering2024 from '$lib/assets/gathering-24-hero.jpeg';
import ArrowLeft from '$lib/assets/Icons/Arrow-Left.svg';
import Button from '$lib/components/Button.svelte';
import Footer from '$lib/homepage/Footer.svelte';
Expand Down Expand Up @@ -54,7 +53,11 @@
];
</script>

<img class="h-[27rem] w-full object-cover" src={Gathering2024} alt="Gathering 2024" />
<enhanced:img
class="h-[27rem] w-full object-cover"
src="$lib/assets/gathering-24-hero.jpeg"
alt="Gathering 2024"
/>
<div class="pr-4 lg:pr-20">
<div class="flex h-12 w-full items-center rounded-br-xl bg-yellow bg-opacity-60 lg:text-xl">
<button class="p-3">
Expand Down

0 comments on commit 7f26ba0

Please sign in to comment.