aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/FaqCard.svelte
blob: 0d3a9fa7bcf54c7011df39c9063634ac73fa4cad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<script>
	import { _ } from 'svelte-i18n';

	// 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">{$_('faq.' + questionID + '.question')}</p>
	<p class="text-secondary text-xl font-medium">
		{$_('faq.' + questionID + '.answer')}
	</p>
</div>