Skip to content

Commit 567bb29

Browse files
authored
Merge pull request #7399 from mermaid-js/sidv/banner
chore: Update banner with coupon
2 parents cbe7015 + 547e6d5 commit 567bb29

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

  • packages/mermaid/src/docs/.vitepress/components

packages/mermaid/src/docs/.vitepress/components/TopBar.vue

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,15 @@ interface Taglines {
66
label: string;
77
campaign: string;
88
button: string;
9+
params?: Record<string, string>;
910
}
1011
1112
const 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
4942
onMounted(() => {

0 commit comments

Comments
 (0)