Skip to content

Commit 4d1a87a

Browse files
committed
refactor: optimize sessionize images
1 parent b58db7f commit 4d1a87a

File tree

11 files changed

+15
-214
lines changed

11 files changed

+15
-214
lines changed

astro.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ import svelte from '@astrojs/svelte'
66
// https://astro.build/config
77
export default defineConfig({
88
integrations: [tailwind(), svelte()],
9+
image: {
10+
domains: ["sessionize.com"],
11+
}
912
})

src/packlets/front/center.astro

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/packlets/front/conference.astro

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/packlets/front/map.astro

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/packlets/front/schedule.astro

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/packlets/front/speaker.astro

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/packlets/front/speakers.astro

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/packlets/front/sponsors.astro

Lines changed: 0 additions & 54 deletions
This file was deleted.

src/packlets/front/tba.astro

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/packlets/new-front/speakers.astro

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import { Picture } from 'astro:assets'
23
import Kanok from '$sprites/kanok.svelte'
34
45
interface Speaker {
@@ -30,7 +31,14 @@ const speakers: Speaker[] = await fetch("https://sessionize.com/api/v2/i9esy36q/
3031
}) => (
3132
<article class="bg-white rounded-tr-3xl p-6 flex space-x-6">
3233
<div class="relative shrink-0">
33-
<img src={profilePicture} class="w-24 h-24 rounded-tr-2xl" />
34+
<Picture
35+
src={profilePicture}
36+
class="w-24 h-24 rounded-tr-2xl"
37+
formats={['avif', 'webp']}
38+
alt={fullName}
39+
width="300"
40+
height="300"
41+
/>
3442
<Kanok size="s" color="blue" class="absolute -bottom-1 -left-1" variant="invert-x" />
3543
</div>
3644
<div>

0 commit comments

Comments
 (0)