diff --git a/src/lib/components/billing/estimatedTotalBox.svelte b/src/lib/components/billing/estimatedTotalBox.svelte index 52ac4faba..c600dadad 100644 --- a/src/lib/components/billing/estimatedTotalBox.svelte +++ b/src/lib/components/billing/estimatedTotalBox.svelte @@ -35,6 +35,7 @@ class="card u-margin-block-start-32 u-flex u-flex-vertical u-gap-8" style:--p-card-padding="1.5rem" style:--p-card-border-radius="var(--border-radius-small)"> +

{currentPlan.name} plan

{formatCurrency(currentPlan.price)}

diff --git a/src/lib/elements/forms/inputText.svelte b/src/lib/elements/forms/inputText.svelte index ac354e3f2..0da7f7b38 100644 --- a/src/lib/elements/forms/inputText.svelte +++ b/src/lib/elements/forms/inputText.svelte @@ -108,7 +108,7 @@
- import { Avatar, Card, Heading } from '$lib/components'; + import { Avatar, AvatarInitials, Card, Heading } from '$lib/components'; import AppwriteLogoDark from '$lib/images/appwrite-logo-dark.svg'; import AppwriteLogoLight from '$lib/images/appwrite-logo-light.svg'; import LoginDark from '$lib/images/login/login-dark-mode.png'; @@ -112,13 +112,13 @@ {:else if variation === 'review'}
-
-
+ class="u-flex u-flex-vertical u-main-center u-cross-center u-height-100-percent u-width-full-line auth-container"> +
+
{generateTitle()} @@ -135,16 +135,22 @@
-
+ +

{generateDesc()}

+
-

+

{currentReview.review}

- + {#if currentReview?.img} + + {:else} + + {/if}

{currentReview.name}

{currentReview.desc}

diff --git a/src/lib/stores/campaigns.ts b/src/lib/stores/campaigns.ts index 786f31e07..7f4cf86e6 100644 --- a/src/lib/stores/campaigns.ts +++ b/src/lib/stores/campaigns.ts @@ -54,6 +54,9 @@ campaigns "We're excited to have you on board. Add your credit code to your Appwrite Pro account to join.", onlyNewOrgs: true, data: { + cta: 'Get everything out of Cloud with Pro', + claimed: 'Your credits will be valid for 12 months.', + unclaimed: 'Apply your code to join the Startups program.', reviews: [ { name: 'David Foster', diff --git a/src/routes/console/apply-credit/+page.svelte b/src/routes/console/apply-credit/+page.svelte index 6a30262da..e5cec5f21 100644 --- a/src/routes/console/apply-credit/+page.svelte +++ b/src/routes/console/apply-credit/+page.svelte @@ -254,15 +254,7 @@ - {#if campaign?.template === 'review'} -
-

- {campaign.description} -

-
- {:else if campaign?.template === 'card'} + {#if campaign?.template === 'card'}
@@ -303,7 +295,20 @@ billingPlan={BillingPlan.PRO} {collaborators} bind:couponData - bind:billingBudget /> + bind:billingBudget> + {#if campaign?.template === 'review' && (campaign?.data?.cta || campaign?.data?.claimed || campaign?.data?.unclaimed)} +
+

{campaign?.data?.cta}

+

+ {#if couponData?.code && couponData?.status === 'active' && campaign?.data?.claimed} + {campaign?.data?.claimed} + {:else if campaign?.data?.unclaimed} + {campaign?.data?.unclaimed} + {/if} +

+
+ {/if} + {/if}