From 5b60b018c585a11f23022744eaef205bfe54fb39 Mon Sep 17 00:00:00 2001 From: Made Baruna Date: Tue, 20 Sep 2022 13:59:26 +0700 Subject: [PATCH] Adjust banner number on frontpage --- src/routes/_index/banner.svelte | 20 +++++++++++++------- src/routes/index.svelte | 2 +- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/routes/_index/banner.svelte b/src/routes/_index/banner.svelte index 1af42c5f..c21c35fa 100644 --- a/src/routes/_index/banner.svelte +++ b/src/routes/_index/banner.svelte @@ -76,21 +76,27 @@
banner -
+
{#each Object.entries(featured) as [_, item], i}
-

+

{#if loading} {:else} - {item.count} + {(item.count / 1000).toFixed(1)}K {/if}

-

{$t(item.name)}

+

+ {$t(item.name)} +

{/each}
diff --git a/src/routes/index.svelte b/src/routes/index.svelte index 0b0412d3..1b2a960b 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -1,6 +1,6 @@