From 7d1c52e2814b3e2866df0c0a115773b05bf0edde Mon Sep 17 00:00:00 2001 From: robinbraemer Date: Thu, 29 Feb 2024 19:30:00 +0100 Subject: [PATCH] docs(pricing): Launch Plus plan! --- .../theme/components/plans/countdown.vue | 45 +++++++++++++++++++ .../theme/components/plans/settings.ts | 15 +++++++ .../plans/two_tiers_with_emphasized_tier.vue | 19 +++++--- .../plans/with_comparison_table_on_dark.vue | 14 +++--- 4 files changed, 81 insertions(+), 12 deletions(-) create mode 100644 .web/docs/.vitepress/theme/components/plans/countdown.vue create mode 100644 .web/docs/.vitepress/theme/components/plans/settings.ts diff --git a/.web/docs/.vitepress/theme/components/plans/countdown.vue b/.web/docs/.vitepress/theme/components/plans/countdown.vue new file mode 100644 index 0000000..08a2d6d --- /dev/null +++ b/.web/docs/.vitepress/theme/components/plans/countdown.vue @@ -0,0 +1,45 @@ + + + \ No newline at end of file diff --git a/.web/docs/.vitepress/theme/components/plans/settings.ts b/.web/docs/.vitepress/theme/components/plans/settings.ts new file mode 100644 index 0000000..c3c7c09 --- /dev/null +++ b/.web/docs/.vitepress/theme/components/plans/settings.ts @@ -0,0 +1,15 @@ +export const plans = { + plus: { + price: '$10', + href: 'https://app.minekube.com/:org/checkout?plan=plus', + ctaText: 'Upgrade to Plus' + } +} + +const endTime = "2024-03-31T23:59:59" +export const discount = { + active: new Date() < new Date(endTime), + endTime: endTime, + price: '$5', + note: 'This is our Plus plan launch discount!' +} diff --git a/.web/docs/.vitepress/theme/components/plans/two_tiers_with_emphasized_tier.vue b/.web/docs/.vitepress/theme/components/plans/two_tiers_with_emphasized_tier.vue index a6a733a..9c81d78 100644 --- a/.web/docs/.vitepress/theme/components/plans/two_tiers_with_emphasized_tier.vue +++ b/.web/docs/.vitepress/theme/components/plans/two_tiers_with_emphasized_tier.vue @@ -12,10 +12,16 @@

{{ tier.name }}

- {{ tier.priceMonthly }} + {{ tier.priceMonthly }} + {{ discount.price }} + {{ tier.priceMonthly }} /month

-

{{ tier.description }}

+
+ +

{{ discount.note }}

+
+

{{ tier.description }}