From 1a761d60cc22232b19d991a22edd9ac099e5a990 Mon Sep 17 00:00:00 2001 From: Neshura Date: Tue, 2 Jan 2024 02:10:44 +0100 Subject: [PATCH] Rename Card to ServiceCard. Add proper icon handling --- .../{Card.svelte => ServiceCard.svelte} | 66 +++++++++++++++---- 1 file changed, 54 insertions(+), 12 deletions(-) rename src/lib/components/{Card.svelte => ServiceCard.svelte} (64%) diff --git a/src/lib/components/Card.svelte b/src/lib/components/ServiceCard.svelte similarity index 64% rename from src/lib/components/Card.svelte rename to src/lib/components/ServiceCard.svelte index dd753a5..4fca7f6 100644 --- a/src/lib/components/Card.svelte +++ b/src/lib/components/ServiceCard.svelte @@ -1,18 +1,54 @@
(hover.title = false)} > {#if service.icon} - {service.name} Logo - {:else}{/if} + {#if img_source != ""} + {service.name} Logo + {:else} + + {/if} + {:else} + + {/if}