From e19b5f99377ec7046ffd90693b4fe41f97015ee9 Mon Sep 17 00:00:00 2001 From: ZeendaBean24 Date: Thu, 16 Jan 2025 20:56:30 -0500 Subject: [PATCH] refactor: fix faq not loading and use static data instead --- src/routes/(other)/faq/+page.svelte | 184 ++++++++++++++++------------ 1 file changed, 105 insertions(+), 79 deletions(-) diff --git a/src/routes/(other)/faq/+page.svelte b/src/routes/(other)/faq/+page.svelte index 72aaf9fc..c1ab5fd9 100644 --- a/src/routes/(other)/faq/+page.svelte +++ b/src/routes/(other)/faq/+page.svelte @@ -1,8 +1,8 @@ @@ -42,74 +90,52 @@ FAQ - World Affairs Conference -
+
-

+

FAQ

-

+

Any Questions?

- {#if loading} -

Loading...

- {:else if error} -

{error}

- {:else if faqByCategories} -
- {#each Object.entries(faqByCategories) as [categoryName, records]} -
-

- {categoryName} -

+
+ {#each Object.entries(faqByCategories) as [categoryName, records]} +
+

+ {categoryName} +

-
-
- {#each records as record, i} - {#if i % 2 === 0} - - -
- {@html sanitizeHtml( - record.answer - )} -
-
- {/if} - {/each} -
-
- {#each records as record, i} - {#if i % 2 === 1} - - -
- {@html sanitizeHtml( - record.answer - )} -
-
- {/if} - {/each} -
+
+
+ {#each records as record, i} + {#if i % 2 === 0} + + +
+ {@html sanitizeHtml(record.answer)} +
+
+ {/if} + {/each} +
+
+ {#each records as record, i} + {#if i % 2 === 1} + + +
+ {@html sanitizeHtml(record.answer)} +
+
+ {/if} + {/each}
- {/each} -
- {/if} +
+ {/each} +