From 039adac60c7fa93f71715c1502b1baffc20cd400 Mon Sep 17 00:00:00 2001 From: TZGyn Date: Sat, 31 Aug 2024 01:29:31 +0800 Subject: [PATCH] update pro plan pricing card to include custom qr code --- .../(app)/dashboard/billing/+page.svelte | 240 +++++++++--------- .../routes/(public)/(landing)/+page.svelte | 4 + 2 files changed, 130 insertions(+), 114 deletions(-) diff --git a/frontend/src/routes/(app)/dashboard/billing/+page.svelte b/frontend/src/routes/(app)/dashboard/billing/+page.svelte index b379f31..1b38ca8 100644 --- a/frontend/src/routes/(app)/dashboard/billing/+page.svelte +++ b/frontend/src/routes/(app)/dashboard/billing/+page.svelte @@ -10,6 +10,7 @@ import { cancelSubscriptionSchema } from './schema' import { superForm } from 'sveltekit-superforms' import { toast } from 'svelte-sonner' + import { ScrollArea } from '$lib/components/ui/scroll-area' export let data: PageData @@ -45,75 +46,81 @@

Checkout our pricings here.

-
-
-
-

Free

-

No credit card required.

- -
-
-

$0

- /month -
- Free Forever -
- -
-
-
- -

Unlimited Links

-
-
- -

Unlimited Projects

+ + +
+
+
+

Free

+

+ No credit card required. +

+ +
+
+

$0

+ /month
-
- -

Click history up to 1 month

+ Free Forever +
+ +
+
+
+ +

Unlimited Links

+
+
+ +

Unlimited Projects

+
+
+ +

Click history up to 1 month

+
+ {#if data.user.plan === 'owner'} + + {:else if data.user.plan === 'free'} + + {:else} + + {/if}
- {#if data.user.plan === 'owner'} - - {:else if data.user.plan === 'free'} - - {:else} - - {/if}
-
-
- Recommended -
-
-

Pro

-

- More customizations, more data. -

- -
-
-

$9

- /month -
- Billed Monthly + class="border-brand relative flex w-[400px] gap-8 rounded-lg border p-8"> +
+ Recommended
- -
-
-
- -

Everything in free

+
+

Pro

+

+ More customizations, more data. +

+ +
+
+

$9

+ /month
-
- -

5 custom domains

- +
+
+ +

2 years of tracked clicks and history

+
+
+ +

Custom QR Code

+
-
- -

2 years of tracked clicks and history

-
+ {#if data.user.plan === 'owner'} + + {:else if data.user.plan === 'pro'} + + + Cancel Plan + + + + Cancel plan? + + Your subscription will still be valid until the + next billing + + + + +
+ + {#if $submittingCancelSubscription} + + {/if} + Proceed + +
+
+
+
+ {:else} + + {/if}
- {#if data.user.plan === 'owner'} - - {:else if data.user.plan === 'pro'} - - - Cancel Plan - - - - Cancel plan? - - Your subscription will still be valid until the - next billing - - - - -
- - {#if $submittingCancelSubscription} - - {/if} - Proceed - -
-
-
-
- {:else} - - {/if}
-
+
diff --git a/frontend/src/routes/(public)/(landing)/+page.svelte b/frontend/src/routes/(public)/(landing)/+page.svelte index a002197..2fd69ea 100644 --- a/frontend/src/routes/(public)/(landing)/+page.svelte +++ b/frontend/src/routes/(public)/(landing)/+page.svelte @@ -138,6 +138,10 @@

2 years click history

+
+ +

Custom QR Code

+