2026-07-30 17:07:46 +02:00
|
|
|
<script lang="ts">
|
2025-05-15 17:00:20 +02:00
|
|
|
import Checkout from "layout/checkout/Checkout.svelte";
|
2026-07-30 17:07:46 +02:00
|
|
|
import { user } from "lib/UserStore";
|
2025-03-27 15:38:59 +01:00
|
|
|
import LoginRegister from "login/LoginRegister.svelte";
|
|
|
|
|
import Euro from "util/Euro.svelte";
|
2024-11-18 17:09:27 +01:00
|
|
|
</script>
|
|
|
|
|
|
2026-07-30 17:07:46 +02:00
|
|
|
{#if $user !== null}
|
2024-11-18 17:09:27 +01:00
|
|
|
<div class="page_content">
|
|
|
|
|
<section>
|
2026-07-30 17:07:46 +02:00
|
|
|
{#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>
|
2026-07-30 17:07:46 +02:00
|
|
|
{:else if $user.subscription.type === "prepaid"}
|
2024-11-18 17:09:27 +01:00
|
|
|
<p>
|
|
|
|
|
You already have a Prepaid subscription active. Your account
|
2026-07-30 17:07:46 +02:00
|
|
|
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>
|
2025-05-15 17:00:20 +02:00
|
|
|
<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}
|