aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/FaqCard.svelte
blob: ae1ad077db0f2cae89651c7f48d56e5d9ef63112 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<script>
  import { t } from "$lib/translations";

  // this ID will be used to get the strings from the locale
  // question is at faq.[questionID].question
  // answer is at faq.[questionID].answer
  export let questionID;
</script>

<div class="mx-auto w-full md:w-2/3 lg:w-[700px] space-y-5">
  <p class="text-2xl font-medium">{$t("faq." + questionID + ".question")}</p>
  <p class="text-secondary text-xl font-medium">
    {$t("faq." + questionID + ".answer")}
  </p>
</div>