aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/LandingInfoCard.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-03-02 22:04:32 -0800
committerAdam Soltys <[email protected]>2026-03-02 22:04:32 -0800
commit0782781663b7f550eaae498ae3e430384afaf739 (patch)
tree27db42dea69f486a9f097d9a9f355eb6f7d88ba0 /src/components/LandingInfoCard.svelte
parentf73a6be565bace826404d470b8e8a8c1a25eb19e (diff)
downloadcoinos-ui-0782781663b7f550eaae498ae3e430384afaf739.tar.gz
coinos-ui-0782781663b7f550eaae498ae3e430384afaf739.zip
lighthouse improvements
Diffstat (limited to 'src/components/LandingInfoCard.svelte')
-rw-r--r--src/components/LandingInfoCard.svelte5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/LandingInfoCard.svelte b/src/components/LandingInfoCard.svelte
index d43e9956..e10a144b 100644
--- a/src/components/LandingInfoCard.svelte
+++ b/src/components/LandingInfoCard.svelte
@@ -2,12 +2,15 @@
import Image from "./Image.svelte";
import type { Snippet } from "svelte";
- let { image, title, description = undefined, order = undefined, children = undefined }: { image: string; title: string; description?: string; order?: string; children?: Snippet } = $props();
+ let { image, title, description = undefined, order = undefined, loading = undefined, width = undefined, height = undefined, children = undefined }: { image: string; title: string; description?: string; order?: string; loading?: "lazy" | "eager"; width?: number; height?: number; children?: Snippet } = $props();
</script>
<div class="flex flex-col-reverse lg:flex-row justify-center lg:gap-20 items-center">
<Image
{image}
+ {loading}
+ {width}
+ {height}
style="w-2/3 md:w-5/12 lg:w-2/5 xl:w-1/3 2xl:w-1/4 max-w-xl mx-auto lg:mx-0 mt-10 lg:mt-0 shrink-0 {order ===
'reverse' && 'lg:order-last'}"
/>