1+ <template >
2+ <main class =" wb-screen w-full flex flex-row justify-center flex-wrap gap-20 items-center bg-theme-background-2" >
3+ <section class =" flex text-white justify-around items-center flex-col gap-5 w-80 h-140 rounded-xl bg-theme-background-4" >
4+ <h2 class =" font-bold text-3xl" >{{ t('account.common.title') }}</h2 >
5+ <h3 class =" font-bold text-3xl" >{{ t('account.common.price') }}</h3 >
6+ <p class =" font-raleway text-lg text-center" >{{ t('account.common.description') }}</p >
7+ <Button @click =" onCreateAccount('common')" >{{ t('account.common.enter') }}</Button >
8+ </section >
9+ <section class =" flex text-white justify-around items-center flex-col gap-5 w-80 h-140 rounded-xl bg-theme-background-3" >
10+ <h2 class =" font-bold text-3xl" >{{ t('account.adventure.title') }}</h2 >
11+ <h3 class =" font-bold text-3xl" >{{ t('account.adventure.price') }}</h3 >
12+ <p class =" font-raleway text-lg text-center" >{{ t('account.adventure.description') }}</p >
13+ <Button @click =" onCreateAccount('adventure')" >{{ t('account.adventure.enter') }}</Button >
14+ </section >
15+ <section class =" flex text-white justify-around items-center flex-col gap-5 w-80 h-140 rounded-xl bg-theme-background-1" >
16+ <h2 class =" font-bold text-3xl" >{{ t('account.force.title') }}</h2 >
17+ <h3 class =" font-bold text-3xl" >{{ t('account.force.price') }}</h3 >
18+ <p class =" font-raleway text-lg text-center" >{{ t('account.force.description') }}</p >
19+ <Button @click =" onCreateAccount('force')" >{{ t('account.force.enter') }}</Button >
20+ </section >
21+ </main >
22+ </template >
23+
24+ <script setup lang="ts">
25+ import { tryOnMounted } from ' @vueuse/core'
26+ import { usePlugin } from ' better-write-plugin-core'
27+ import { useI18n } from ' vue-i18n'
28+
29+ const plugin = usePlugin ()
30+ const { t } = useI18n ()
31+
32+ // TODO: images in background
33+ tryOnMounted (async () => {
34+ plugin .emit (' plugin-theme-set' , ' BetterWrite - Dark' )
35+ })
36+
37+ const onCreateAccount = (type : ' common' | ' adventure' | ' force' ) => {
38+ plugin .emit (' plugin-backend-register-user' , type )
39+ }
40+ </script >
0 commit comments