Files

406 lines
13 KiB
Vue

<script lang="ts" setup>
const { t } = useI18n();
const items = computed(() => [
{
label: t("FAQ.whyTipWithXMRChat"),
defaultOpen: true,
slot: "one",
},
{
label: t("FAQ.howToUseXMRChat"),
slot: "two",
},
{
label: t("FAQ.whyUseMonero"),
slot: "three",
},
{
label: t("FAQ.whereToGetMonero"),
slot: "four",
},
]);
const linkProps = { padded: false, target: "_blank", variant: "link" } as any; // UButton does not export props I guess
</script>
<template>
<div>
<h3 class="w-full text-center text-4xl font-bold">{{ t("FAQ.title") }}</h3>
<div class="mt-10 flex justify-center">
<UAccordion
class="max-w-[1024px]"
:items="items"
variant="ghost"
color="gray"
>
<template #default="{ item, open }">
<UButton variant="solid" color="gray" class="mb-2" size="lg" icon="">
<span class="flex-1 text-start">
{{ item.label }}
</span>
<template #trailing>
<DirectionalArrow
type="chevron"
:class="[
'transform transition-transform duration-200',
open && 'rotate-90',
]"
/>
</template>
</UButton>
</template>
<template #one>
<ul class="list">
<li>
<div class="item-header">
<UIcon name="i-heroicons-check-16-solid" class="icon" />
<span>{{ t("earnMore.title") }}</span>
</div>
<p>
{{ t("earnMore.description") }}
</p>
</li>
<li>
<div class="item-header">
<UIcon name="i-heroicons-check-16-solid" class="icon" />
<span>{{ t("censorshipResistant.title") }}</span>
</div>
<p>
{{ t("censorshipResistant.description") }}
</p>
</li>
<li>
<div class="item-header">
<UIcon name="i-heroicons-check-16-solid" class="icon" />
<span>{{ t("corruptionResistant.title") }}</span>
</div>
<p>
{{ t("corruptionResistant.description") }}
</p>
</li>
<li>
<div class="item-header">
<UIcon name="i-heroicons-check-16-solid" class="icon" />
<span>{{ t("private.title") }}</span>
</div>
<p>
{{ t("private.description") }}
</p>
</li>
<li>
<div class="item-header">
<UIcon name="i-heroicons-check-16-solid" class="icon" />
<span>{{ t("quickAndEasy.title") }}</span>
</div>
<p>
{{ t("quickAndEasy.description") }}
</p>
</li>
<li>
<div class="item-header">
<UIcon name="i-heroicons-check-16-solid" class="icon" />
<span>{{ t("openSource.title") }}</span>
</div>
<p>
<I18nT keypath="openSource.description" scope="global">
<template #github>
<UButton
to="https://github.com/sa8ab/xmrchat"
v-bind="linkProps"
>
{{ t("here") }}</UButton
>
</template>
</I18nT>
</p>
</li>
</ul>
</template>
<template #two>
<UAccordion
class="max-w-[1024px]"
variant="ghost"
color="gray"
:items="[
{
label: $t('forContentCreators.title'),
slot: 'one',
defaultOpen: true,
},
{ label: $t('forFans.title'), slot: 'two', defaultOpen: true },
]"
>
<template #default="{ item, open }">
<UButton class="mb-2" variant="soft">
<span class="flex-1 text-start">
{{ item.label }}
</span>
<template #trailing>
<DirectionalArrow
type="chevron"
:class="[
'transform transition-transform duration-200',
open && 'rotate-90',
]"
/>
</template>
</UButton>
</template>
<template #one>
<div class="">
<p class="pb-2">
{{ $t("forContentCreators.description.main") }}
</p>
<p class="pb-4">
<I18nT
keypath="forContentCreators.description.tutorialLink"
scope="global"
>
<template #youtube>
<UButton
to="https://www.youtube.com/watch?v=nRzmo_bhxxY"
v-bind="linkProps"
>
YouTube
</UButton>
</template>
</I18nT>
</p>
<div class="list">
<div>
<h3 class="text-text font-medium pb-1">
{{ $t("forContentCreators.description.ifOBS") }}
</h3>
<p>
{{ $t("forContentCreators.description.obs") }}
</p>
</div>
<div>
<h3 class="text-text font-medium pb-1">
{{ $t("forContentCreators.description.ifLiveJoiner") }}
</h3>
<p>
{{ $t("forContentCreators.description.liveJoiner") }}
</p>
</div>
<div>
<h3 class="text-text font-medium pb-1">
{{ $t("forContentCreators.description.ifStreamyard") }}
</h3>
<p>
{{ $t("forContentCreators.description.streamyard") }}
</p>
</div>
</div>
</div>
</template>
<template #two>
<div>
<p>{{ $t("forFans.description") }}</p>
</div>
</template>
</UAccordion>
</template>
<template #three>
<ul class="list">
<li>
<div class="item-header">
<UIcon name="i-heroicons-check-16-solid" class="icon" />
<span>{{ t("lowFees.title") }}</span>
</div>
<p>{{ t("lowFees.description") }}</p>
</li>
<li>
<div class="item-header">
<UIcon name="i-heroicons-check-16-solid" class="icon" />
<span>{{ t("privateMonero.title") }}</span>
</div>
<p>
{{ t("privateMonero.description") }}
</p>
</li>
<li>
<div class="item-header">
<UIcon name="i-heroicons-check-16-solid" class="icon" />
<span>{{ t("accepted.title") }}</span>
</div>
<p>
<I18nT keypath="accepted.description" scope="global">
<template #xmrbazaar>
<UButton to="https://xmrbazaar.com" v-bind="linkProps">
xmrbazaar.com
</UButton>
</template>
<template #monerica>
<UButton to="https://monerica.com" v-bind="linkProps">
monerica.com
</UButton>
</template>
</I18nT>
</p>
</li>
<li>
<div class="item-header">
<UIcon name="i-heroicons-check-16-solid" class="icon" />
<span>{{ t("andMore.title") }}</span>
</div>
<p>
<I18nT keypath="andMore.description" scope="global">
<template #getmonero>
<UButton to="https://getmonero.org" v-bind="linkProps">
getmonero.org
</UButton>
</template>
<template #moneroeco>
<UButton to="https://monero.eco" v-bind="linkProps">
monero.eco
</UButton>
</template>
</I18nT>
</p>
</li>
</ul>
</template>
<template #four>
<ul class="list">
<li>
<p>
<I18nT keypath="whereToGetMonero.cakeWallet" scope="global">
<template #cakeWallet>
<UButton to="https://cakewallet.com" v-bind="linkProps">
Cake Wallet
</UButton>
</template>
</I18nT>
</p>
</li>
<li>
<p>
<I18nT keypath="whereToGetMonero.stealthex" scope="global">
<template #stealthex>
<UButton to="https://stealthex.io" v-bind="linkProps">
stealthex.io
</UButton>
</template>
<template #kycnot>
<UButton
to="https://kycnot.me/?t=exchange&q=&xmr=on"
v-bind="linkProps"
>
kycnot.me</UButton
>
</template>
</I18nT>
</p>
</li>
<li>
<p>
<I18nT keypath="whereToGetMonero.haveno" scope="global">
<template #haveno>
<UButton to="https://retoswap.com/" v-bind="linkProps">
retoswap.com
</UButton>
</template>
</I18nT>
</p>
</li>
<li>
<p>
<I18nT keypath="whereToGetMonero.kraken" scope="global">
<template #kraken>
<UButton to="https://kraken.com" v-bind="linkProps"
>kraken.com</UButton
>
</template>
</I18nT>
</p>
</li>
<li>
<p>
<I18nT keypath="whereToGetMonero.xmrbazaar" scope="global">
<template #xmrbazaar>
<UButton to="https://xmrbazaar.com" v-bind="linkProps">
xmrbazaar.com
</UButton>
</template>
</I18nT>
</p>
</li>
<li>
<p>
<I18nT keypath="whereToGetMonero.gupax" scope="global">
<template #gupax>
<UButton to="https://gupax.io" v-bind="linkProps">
gupax.io
</UButton>
</template>
</I18nT>
</p>
</li>
<li>
<p>
<I18nT keypath="whereToGetMonero.kunoAnneMedia" scope="global">
<template #kunoAnneMedia>
<UButton to="https://kuno.anne.media/" v-bind="linkProps">
kuno.anne.media
</UButton>
</template>
</I18nT>
</p>
</li>
<li>
<p>
<I18nT keypath="whereToGetMonero.monerica" scope="global">
<template #monerica>
<UButton to="https://monerica.com" v-bind="linkProps">
monerica.com
</UButton>
</template>
<template #monerodirectory>
<UButton
to="https://monerodirectory.com/"
v-bind="linkProps"
>
monerodirectory.com
</UButton>
</template>
<template #xmrbazaar>
<UButton to="https://xmrbazaar.com/" v-bind="linkProps">
xmrbazaar.com
</UButton>
</template>
<template #bankexit>
<UButton to="https://bank-exit.org/map" v-bind="linkProps">
bank-exit.org
</UButton>
</template>
</I18nT>
</p>
</li>
</ul>
</template>
</UAccordion>
</div>
</div>
</template>
<style scoped lang="scss">
.list {
@apply flex flex-col gap-3;
.item-header {
@apply pb-1 pt-2 flex items-center gap-2 text-text font-medium;
.icon {
@apply text-primary align-middle w-4 h-4;
}
}
li {
}
}
</style>