-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLogo.svelte
24 lines (23 loc) · 1.26 KB
/
Logo.svelte
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<script lang="ts">
import ldafLogo from "$lib/assets/ldaf-flat-logo-transparent-optimized.png?quality=85&imagetools";
import { width, height } from "$lib/assets/ldaf-flat-logo-transparent-optimized.png?blurhash";
import ldafLogo2x from "$lib/assets/ldaf-flat-logo-transparent-optimized-2x.png?quality=85&imagetools";
import ldafLogoWebp from "$lib/assets/ldaf-flat-logo-transparent-optimized.png?format=webp&quality=85&imagetools";
import ldafLogoWebp2x from "$lib/assets/ldaf-flat-logo-transparent-optimized-2x.png?format=webp&quality=85&imagetools";
import ldafLogoAvif from "$lib/assets/ldaf-flat-logo-transparent-optimized.png?format=avif&quality=85&imagetools";
import ldafLogoAvif2x from "$lib/assets/ldaf-flat-logo-transparent-optimized-2x.png?format=avif&quality=85&imagetools";
import Image from "$lib/components/Image";
</script>
<!-- TODO: Replace alt value with content from CMS. -->
<Image
src={ldafLogo}
alt="Louisiana Department of Agriculture and Forestry Home"
{width}
{height}
loading="eager"
sources={[
{ type: "image/avif", srcset: [ldafLogoAvif, [ldafLogoAvif2x, width * 2]] },
{ type: "image/webp", srcset: [ldafLogoWebp, [ldafLogoWebp2x, width * 2]] },
{ type: "image/png", srcset: [ldafLogo, [ldafLogo2x, width * 2]] },
]}
/>