Skip to content

Commit 83f3c07

Browse files
committed
Merge branch 'master' into develop
* master: update whiteboard tagline remove august promo update dates update taglines remove product hunt promo add and update product hunt promo for whiteboard add product hunt badge to navbar
2 parents 3e3a016 + d8401a8 commit 83f3c07

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

src/lib/util/promos/August2024.svelte renamed to src/lib/util/promos/October2024.svelte

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,21 @@
88
}
99
1010
const taglines: Taglines[] = [
11+
{
12+
label: 'Explore the Mermaid Whiteboard from the creators of Mermaid',
13+
url: 'https://www.mermaidchart.com/whiteboard?utm_source=mermaid_live_editor&utm_medium=banner_ad&utm_campaign=whiteboard'
14+
},
1115
{
1216
label: 'Use the Visual Editor in Mermaid Chart to design and build diagrams',
13-
url: 'https://www.mermaidchart.com/landing?utm_source=mermaid_live_editor&utm_medium=banner_ad&utm_campaign=visual_editor'
17+
url: 'https://www.mermaidchart.com/play?utm_source=mermaid_live_editor&utm_medium=banner_ad&utm_campaign=visual_editor'
1418
},
1519
{
1620
label: 'Diagram live with teammates in Mermaid Chart',
17-
url: 'https://www.mermaidchart.com/landing?utm_source=mermaid_live_editor&utm_medium=banner_ad&utm_campaign=teams'
21+
url: 'https://www.mermaidchart.com/play?utm_source=mermaid_live_editor&utm_medium=banner_ad&utm_campaign=teams'
1822
},
1923
{
20-
label: 'Skip the rough draft with Mermaid AI in Mermaid Chart',
21-
url: 'https://www.mermaidchart.com/mermaid-ai?utm_source=mermaid_live_editor&utm_medium=banner_ad&utm_campaign=mermaid_ai'
24+
label: 'Replace ChatGPT Pro, Mermaid.live, and LucidChart with Mermaid Pro',
25+
url: 'https://www.mermaidchart.com/play?utm_source=mermaid_live_editor&utm_medium=banner_ad&utm_campaign=AIbundle'
2226
}
2327
];
2428
@@ -28,7 +32,7 @@
2832
const interval = setInterval(() => {
2933
index = (index + 1) % taglines.length;
3034
currentTagline = taglines[index];
31-
}, 60_000);
35+
}, 40_000);
3236
3337
onDestroy(() => {
3438
clearInterval(interval);
@@ -45,7 +49,7 @@
4549
out:fade={{ duration: 1000 }}>
4650
<span class="text-sm tracking-wider">{currentTagline.label}</span>
4751
<button class="rounded bg-[#111113] p-1 px-2 text-sm font-semibold tracking-wide"
48-
>Try it now</button>
52+
>Try now</button>
4953
</a>
5054
{/key}
5155
</div>

src/lib/util/promos/promo.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { writable, type Writable, get } from 'svelte/store';
22
import { persist, localStorage } from '../persist';
3-
import August2024 from './August2024.svelte';
3+
import October2024 from './October2024.svelte';
44
import { env } from '$lib/util/env';
55

66
interface Promotion {
@@ -12,10 +12,10 @@ interface Promotion {
1212

1313
const promotions: Promotion[] = [
1414
{
15-
id: 'promo-2024',
16-
startDate: new Date('2024-08-01'),
15+
id: 'promo-october-2024',
16+
startDate: new Date('2024-10-22'),
1717
endDate: new Date('2024-12-31'),
18-
component: August2024
18+
component: October2024
1919
}
2020
];
2121

0 commit comments

Comments
 (0)