Files
fnx_web/svelte/src/home_page/GetStarted.svelte

31 lines
832 B
Svelte
Raw Normal View History

<script lang="ts">
import Checkout from "layout/checkout/Checkout.svelte";
import { user } from "lib/UserStore";
import LoginRegister from "login/LoginRegister.svelte";
import Euro from "util/Euro.svelte";
2024-11-18 17:09:27 +01:00
</script>
{#if $user !== null}
2024-11-18 17:09:27 +01:00
<div class="page_content">
<section>
{#if $user.subscription.id !== ""}
2024-11-18 17:09:27 +01:00
<p>
You already have the {$user.subscription.name} plan active.
Your account balance is <Euro
amount={$user.balance_micro_eur}/>. Subscriptions are
charged from this balance every day, use the form below to
top it up or to switch to another plan.
2024-11-18 17:09:27 +01:00
</p>
{:else}
<p>
Pick a subscription plan to upgrade your account. Your
account balance is <Euro amount={$user.balance_micro_eur}/>.
2024-11-18 17:09:27 +01:00
</p>
{/if}
<Checkout/>
2024-11-18 17:09:27 +01:00
</section>
</div>
{:else}
<LoginRegister/>
{/if}