From 79180f01be92d187542e95e09f8a3d6016390061 Mon Sep 17 00:00:00 2001 From: Azizul Haque Ananto Date: Tue, 30 Jan 2024 15:34:30 +0100 Subject: [PATCH] Add new font --- web/src/app.css | 1 + web/src/app.html | 9 +------ web/src/lib/Hadith.svelte | 12 ++++----- web/src/lib/Nav.svelte | 8 +++--- web/src/routes/book/+page.svelte | 2 +- web/tailwind.config.cjs | 44 +++++++++++++++----------------- 6 files changed, 32 insertions(+), 44 deletions(-) diff --git a/web/src/app.css b/web/src/app.css index 1413024..5da669b 100644 --- a/web/src/app.css +++ b/web/src/app.css @@ -5,6 +5,7 @@ @layer base { html { @apply antialiased; + font-size: 14px; } } diff --git a/web/src/app.html b/web/src/app.html index d453858..a92a70c 100644 --- a/web/src/app.html +++ b/web/src/app.html @@ -23,14 +23,7 @@ - - - - diff --git a/web/src/lib/Hadith.svelte b/web/src/lib/Hadith.svelte index 0077a2f..8133ea1 100644 --- a/web/src/lib/Hadith.svelte +++ b/web/src/lib/Hadith.svelte @@ -101,7 +101,7 @@ transition:slide class="max-w-4xl space-y-2 bg-white p-4 shadow dark:bg-storm-600 md:rounded-lg md:p-6" > -
+

{hadith.collection}

@@ -124,14 +124,14 @@
{#if hadith.narrator_en} -

+

{hadith.narrator_en}

{/if}

{#each hadith.body_en.split(' ') as word} {#if hadith.highlights && hadith.highlights.includes(word.replace(/[.,/#!$%^&*;:{}=\-_`~()"']/g, ''))} - {word} + {word} {:else} {word} {/if} @@ -139,14 +139,14 @@

-
+
Book: {hadith.book_en}

{#if hadith.chapter_en} Chapter: {#each hadith.chapter_en.split(' ') as word} {#if hadith.highlights && hadith.highlights.includes(word.replace(/[.,/#!$%^&*;:{}=\-_`~()"']/g, ''))} - {word} + {word} {:else} {word} {/if} @@ -160,7 +160,7 @@

{/if} {#if $searchKey} -
+