From 0b733ca5941f2871cf53c40bb8bc412ff60e076c Mon Sep 17 00:00:00 2001 From: rustdesk Date: Sat, 12 Oct 2024 01:43:25 +0800 Subject: [PATCH] custom2 --- v3/src/components/widgets/Pricing.astro | 32 +++++-- v3/src/pages/pricing.astro | 117 +++++++++++++++++++++++- v3/src/types.d.ts | 1 + 3 files changed, 137 insertions(+), 13 deletions(-) diff --git a/v3/src/components/widgets/Pricing.astro b/v3/src/components/widgets/Pricing.astro index 1db236e..b2968ff 100644 --- a/v3/src/components/widgets/Pricing.astro +++ b/v3/src/components/widgets/Pricing.astro @@ -21,7 +21,14 @@ const {
-
+
{ prices && prices.map( @@ -35,11 +42,16 @@ const { callToAction2, hasRibbon = false, content, + id, ribbonTitle, }) => ( -
+
+ {id && } {price && period && ( -
+
{hasRibbon && ribbonTitle && (
@@ -53,8 +65,12 @@ const { {title} )} - {subtitle &&

{subtitle}

} -
+ {subtitle && ( +

+ +

+ )} +
$ @@ -64,12 +80,12 @@ const { {period}
{items && ( -
    +
      {items.map( ({ description, icon }) => description && ( -
    • -
      +
    • +
      diff --git a/v3/src/pages/pricing.astro b/v3/src/pages/pricing.astro index 85843e0..73c38cb 100644 --- a/v3/src/pages/pricing.astro +++ b/v3/src/pages/pricing.astro @@ -54,7 +54,7 @@ const metadata = { prices={[ { title: 'Free', - subtitle: 'Free Self-hosting Plan', + subtitle: 'Free self-hosting plan', price: '0 /month', period: 'Open source and free', items: [ @@ -73,7 +73,7 @@ const metadata = { }, { title: 'Individual', - subtitle: 'Individual Self-hosting Pro Plan', + subtitle: 'Individual self-hosting Pro plan', price: '9.90 /month', period: 'billed annually', items: [ @@ -127,7 +127,7 @@ const metadata = { }, { title: 'Basic', - subtitle: 'Basic Self-hosting Pro Plan', + subtitle: 'Basic self-hosting Pro plan', price: '19.90 /month', period: 'billed annually', items: [ @@ -169,7 +169,7 @@ const metadata = { }, { title: 'Customized', - subtitle: 'Customized Pro Plan', + subtitle: 'Customized Pro plan', price: '19.90 /month', period: 'billed annually', items: [ @@ -185,7 +185,7 @@ const metadata = { }, ], content: ` -
      + @@ -193,6 +193,7 @@ const metadata = {
      +
      +`, + callToAction: { + text: 'Buy now', + onclick: 'submit2()', + variant: 'primary', + }, + }, + ]} + /> +