aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-06-22 00:15:51 -0700
committerAdam Soltys <[email protected]>2023-06-22 00:15:51 -0700
commit95c7dc451b54b0d09ada1499422dee87cd16a594 (patch)
tree4531c8a8885038035fc2c01b5c7a88e103fd677d /src/routes
parent4a1dca452d6e03656c1b892c6afdaf2b92e0858d (diff)
downloadcoinos-ui-95c7dc451b54b0d09ada1499422dee87cd16a594.tar.gz
coinos-ui-95c7dc451b54b0d09ada1499422dee87cd16a594.zip
faq update
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/+page.svelte9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 3331b69b..ab49f91d 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -20,10 +20,11 @@
$: update(data);
let howItWorks;
- let faq;
+ let faq;
let about;
let log = console.log;
+ let faqs = {};
const howItWorksSteps = [
{ image: 'hand', stepID: 'step1' },
@@ -31,9 +32,9 @@
{ image: 'smile', stepID: 'step3' }
];
- const faqIDs = ['cost', 'compatibility', 'safety'];
-
onMount(async () => {
+ faqs = (await import('../locales/en.json')).default.faq;
+
close();
try {
@@ -89,7 +90,7 @@
<div>
<div class="space-y-10">
<h3 class="text-5xl font-medium text-center">{$t('faq.header')}</h3>
- {#each faqIDs as faqID}
+ {#each Object.keys(faqs).filter(f => f !== "header") as faqID}
<FaqCard questionID={faqID} />
{/each}
</div>