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

Commit

Permalink
Use optimized images on homepage calendar
Browse files Browse the repository at this point in the history
See #45
  • Loading branch information
MrGreenTea committed Nov 30, 2023
1 parent 0bffd91 commit c4ed8ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/homepage/Calendar.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import calendarCover from '$lib/assets/calendar-cover.jpeg';
import pastEvent from '$lib/assets/calendar-past-event.jpeg';
import thirdEvent from '$lib/assets/calendar-third-event.jpeg';
import calendarCover from '$lib/assets/calendar-cover.jpeg?enhanced';
import pastEvent from '$lib/assets/calendar-past-event.jpeg?enhanced';
import thirdEvent from '$lib/assets/calendar-third-event.jpeg?enhanced';
import clsx from 'clsx';
import { cubicOut } from 'svelte/easing';
import { tweened } from 'svelte/motion';
Expand Down Expand Up @@ -47,7 +47,7 @@
>
<div class="relative h-[22rem] w-full lg:h-full">
{#each events as event, index}
<img
<enhanced:img
loading="lazy"
src={event.image.src}
alt="Leute sitzen am Tisch"
Expand Down

0 comments on commit c4ed8ad

Please sign in to comment.