remove august promo

This commit is contained in:
Steph
2024-10-22 07:35:08 -07:00
parent 76c937a878
commit 659e82e9ae
2 changed files with 0 additions and 58 deletions
-51
View File
@@ -1,51 +0,0 @@
<script lang="ts">
import { onDestroy } from 'svelte';
import { fade } from 'svelte/transition';
interface Taglines {
label: string;
url: string;
}
const taglines: Taglines[] = [
{
label: 'Use the Visual Editor in Mermaid Chart to design and build diagrams',
url: 'https://www.mermaidchart.com/landing?utm_source=mermaid_live_editor&utm_medium=banner_ad&utm_campaign=visual_editor'
},
{
label: 'Diagram live with teammates in Mermaid Chart',
url: 'https://www.mermaidchart.com/landing?utm_source=mermaid_live_editor&utm_medium=banner_ad&utm_campaign=teams'
},
{
label: 'Skip the rough draft with Mermaid AI in Mermaid Chart',
url: 'https://www.mermaidchart.com/mermaid-ai?utm_source=mermaid_live_editor&utm_medium=banner_ad&utm_campaign=mermaid_ai'
}
];
let index = Math.floor(Math.random() * taglines.length);
let currentTagline = taglines[index];
const interval = setInterval(() => {
index = (index + 1) % taglines.length;
currentTagline = taglines[index];
}, 60_000);
onDestroy(() => {
clearInterval(interval);
});
</script>
<div class="grid w-full">
{#key currentTagline}
<a
href={currentTagline.url}
target="_blank"
class="col-start-1 row-start-1 flex items-center justify-center gap-4 no-underline"
in:fade={{ delay: 750 }}
out:fade={{ duration: 1000 }}>
<span class="text-sm tracking-wider">{currentTagline.label}</span>
<button class="rounded bg-[#111113] p-1 px-2 text-sm font-semibold tracking-wide"
>Try it now</button>
</a>
{/key}
</div>
-7
View File
@@ -1,6 +1,5 @@
import { writable, type Writable, get } from 'svelte/store';
import { persist, localStorage } from '../persist';
import August2024 from './August2024.svelte';
import October2024 from './October2024.svelte';
import { env } from '$lib/util/env';
@@ -12,12 +11,6 @@ interface Promotion {
}
const promotions: Promotion[] = [
{
id: 'promo-2024',
startDate: new Date('2024-08-01'),
endDate: new Date('2024-10-21'),
component: August2024
},
{
id: 'promo-october-2024',
startDate: new Date('2024-10-22'),