From fde5799d734779f146a34c0ce7a469e9e7e5879f Mon Sep 17 00:00:00 2001 From: tree Date: Thu, 19 May 2022 08:27:20 +0200 Subject: [PATCH] Update --- src/routes/index.svelte | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/routes/index.svelte b/src/routes/index.svelte index 55766b6..cdf95ad 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -41,7 +41,9 @@ }); } - let separator = '' + function statsIcon (ico = 'fa-regular fa-calendar') { + return `` + } @@ -51,11 +53,11 @@ {#if $bundle} {#if $apiStatus}
-
-
- {$bundle.spec.speakers.length} přednášejících {@html separator} - {$bundle.spec.events.length} události {@html separator} - {$apiStatus.global.tickets} návstěvníků +
+
+
{@html statsIcon('fa-solid fa-user-check')} {$bundle.spec.speakers.length} přednášejících
+
{@html statsIcon('fa-regular fa-calendar')} {$bundle.spec.events.length} událostí
+
{@html statsIcon('fa-solid fa-users')} {$apiStatus.global.tickets} návstěvníků