|
|
|
@ -10,6 +10,7 @@
|
|
|
|
import { cancelSubscriptionSchema } from './schema'
|
|
|
|
import { cancelSubscriptionSchema } from './schema'
|
|
|
|
import { superForm } from 'sveltekit-superforms'
|
|
|
|
import { superForm } from 'sveltekit-superforms'
|
|
|
|
import { toast } from 'svelte-sonner'
|
|
|
|
import { toast } from 'svelte-sonner'
|
|
|
|
|
|
|
|
import { ScrollArea } from '$lib/components/ui/scroll-area'
|
|
|
|
|
|
|
|
|
|
|
|
export let data: PageData
|
|
|
|
export let data: PageData
|
|
|
|
|
|
|
|
|
|
|
|
@ -45,11 +46,15 @@
|
|
|
|
<p class="text-muted-foreground">Checkout our pricings here.</p>
|
|
|
|
<p class="text-muted-foreground">Checkout our pricings here.</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<Separator class="my-4 lg:my-6" />
|
|
|
|
<Separator class="my-4 lg:my-6" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<ScrollArea>
|
|
|
|
<div class="flex w-full flex-wrap-reverse justify-center gap-8">
|
|
|
|
<div class="flex w-full flex-wrap-reverse justify-center gap-8">
|
|
|
|
<div class="flex w-[400px] gap-8 rounded-lg border p-8">
|
|
|
|
<div class="flex w-[400px] gap-8 rounded-lg border p-8">
|
|
|
|
<div class="flex w-full flex-col gap-3 text-start">
|
|
|
|
<div class="flex w-full flex-col gap-3 text-start">
|
|
|
|
<h2 class="text-2xl font-bold">Free</h2>
|
|
|
|
<h2 class="text-2xl font-bold">Free</h2>
|
|
|
|
<p class="text-muted-foreground">No credit card required.</p>
|
|
|
|
<p class="text-muted-foreground">
|
|
|
|
|
|
|
|
No credit card required.
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<Separator />
|
|
|
|
<Separator />
|
|
|
|
<div class="flex flex-col gap-2">
|
|
|
|
<div class="flex flex-col gap-2">
|
|
|
|
<div class="flex items-end gap-2">
|
|
|
|
<div class="flex items-end gap-2">
|
|
|
|
@ -77,7 +82,9 @@
|
|
|
|
{#if data.user.plan === 'owner'}
|
|
|
|
{#if data.user.plan === 'owner'}
|
|
|
|
<Button variant={'brand'} disabled>Owner</Button>
|
|
|
|
<Button variant={'brand'} disabled>Owner</Button>
|
|
|
|
{:else if data.user.plan === 'free'}
|
|
|
|
{:else if data.user.plan === 'free'}
|
|
|
|
<Button variant={'default'} disabled>Current Plan</Button>
|
|
|
|
<Button variant={'default'} disabled>
|
|
|
|
|
|
|
|
Current Plan
|
|
|
|
|
|
|
|
</Button>
|
|
|
|
{:else}
|
|
|
|
{:else}
|
|
|
|
<Button variant={'brand'} disabled>Select Plan</Button>
|
|
|
|
<Button variant={'brand'} disabled>Select Plan</Button>
|
|
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
@ -126,6 +133,10 @@
|
|
|
|
<Check class="text-brand" />
|
|
|
|
<Check class="text-brand" />
|
|
|
|
<p>2 years of tracked clicks and history</p>
|
|
|
|
<p>2 years of tracked clicks and history</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="flex items-center gap-2">
|
|
|
|
|
|
|
|
<Check class="text-brand" />
|
|
|
|
|
|
|
|
<p>Custom QR Code</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{#if data.user.plan === 'owner'}
|
|
|
|
{#if data.user.plan === 'owner'}
|
|
|
|
<Button variant={'brand'} disabled>Owner</Button>
|
|
|
|
<Button variant={'brand'} disabled>Owner</Button>
|
|
|
|
@ -179,4 +190,5 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</ScrollArea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|