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

34 lines
892 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.type === "patreon"}
2024-11-18 17:09:27 +01:00
<p>
You already have a Patreon subscription active. You cannot use
Prepaid while that subscription is active.
</p>
{:else if $user.subscription.type === "prepaid"}
2024-11-18 17:09:27 +01:00
<p>
You already have a Prepaid subscription active. Your account
balance is <Euro amount={$user.balance_micro_eur}/>. Use
2024-11-18 17:09:27 +01:00
the form below to top up your balance.
</p>
<Checkout/>
2024-11-18 17:09:27 +01:00
{:else}
<p>
2026-07-30 23:15:00 +02:00
Pick one of the subscription plans above to upgrade your
account to premium.
2024-11-18 17:09:27 +01:00
</p>
{/if}
</section>
</div>
{:else}
<LoginRegister/>
{/if}