diff options
| author | Adam Soltys <[email protected]> | 2026-03-02 22:37:05 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-03-02 22:37:05 -0800 |
| commit | 11d358ad0412b794ecf89b4da9f99ac41ed9c3fe (patch) | |
| tree | 61808f5d31df326ad7c3d459e16d4f6085368ad0 /src/components/HowItWorksCard.svelte | |
| parent | c0da099aa48f6bbc168159293bfae9e60daffeda (diff) | |
| download | coinos-ui-11d358ad0412b794ecf89b4da9f99ac41ed9c3fe.tar.gz coinos-ui-11d358ad0412b794ecf89b4da9f99ac41ed9c3fe.zip | |
inline icons
Diffstat (limited to 'src/components/HowItWorksCard.svelte')
| -rw-r--r-- | src/components/HowItWorksCard.svelte | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/components/HowItWorksCard.svelte b/src/components/HowItWorksCard.svelte index d548a481..05db9dd5 100644 --- a/src/components/HowItWorksCard.svelte +++ b/src/components/HowItWorksCard.svelte @@ -1,11 +1,22 @@ <script> + import CoinosHand from "virtual:icons/coinos/hand"; + import CoinosBolt from "virtual:icons/coinos/bolt"; + import CoinosSmile from "virtual:icons/coinos/smile"; import { t } from "$lib/translations"; let { image, stepID, size = 128 } = $props(); + + const iconMap = { + "coinos:hand": CoinosHand, + "coinos:bolt": CoinosBolt, + "coinos:smile": CoinosSmile, + }; + + let Icon = $derived(iconMap[image]); </script> <div class="space-y-5"> <div class="h-32 flex items-center justify-center"> - <iconify-icon noobserver icon={image} class="mx-auto" width={String(size)}></iconify-icon> + <Icon class="mx-auto" width={String(size)} /> </div> <p class="text-2xl font-medium">{$t("howItWorks." + stepID + ".header")}</p> <p class="text-secondary text-xl font-medium w-full md:w-2/3 mx-auto"> |
