File tree Expand file tree Collapse file tree
packages/mermaid/src/docs/.vitepress/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,23 +6,15 @@ interface Taglines {
66 label: string ;
77 campaign: string ;
88 button: string ;
9+ params? : Record <string , string >;
910}
1011
1112const taglines: Taglines [] = [
12- {
13- label: ' Use code NEWYEAR for 10% off Mermaid Advanced Editor (limited time)' ,
14- campaign: ' variant_a' ,
15- button: ' Try now' ,
16- },
1713 {
1814 label: ' Limited time: 10% off Mermaid Advanced Editor with code NEWYEAR' ,
19- campaign: ' variant_b ' ,
15+ campaign: ' newyear ' ,
2016 button: ' Claim Discount' ,
21- },
22- {
23- label: ' Try Mermaid Advanced Editor — get 10% off with code NEWYEAR' ,
24- campaign: ' variant_c' ,
25- button: ' Get started' ,
17+ params: { coupon: ' dmIuNbqx' },
2618 },
2719];
2820
@@ -42,8 +34,9 @@ const currentUrl = computed(() => {
4234 utm_medium: ' banner_ad' ,
4335 utm_campaign: taglines [index .value ].campaign ,
4436 utm_source: isMermaidAi ? ' ai_open_source' : ' mermaid_js' ,
37+ ... taglines [index .value ].params ,
4538 });
46- return ` https://mermaid.ai/?${params .toString ()} ` ;
39+ return ` https://mermaid.ai/app/user/billing/checkout ?${params .toString ()} ` ;
4740});
4841
4942onMounted (() => {
You can’t perform that action at this time.
0 commit comments