From 98cbcf1abeb7b5a9ee5731aedd286948867da0e0 Mon Sep 17 00:00:00 2001 From: Steph <35910788+huynhicode@users.noreply.github.com> Date: Tue, 22 Oct 2024 00:07:40 -0700 Subject: [PATCH] update taglines --- src/lib/util/promos/October2024.svelte | 55 ++++++++++++++++++++++++++ src/lib/util/promos/promo.ts | 9 ++++- 2 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 src/lib/util/promos/October2024.svelte diff --git a/src/lib/util/promos/October2024.svelte b/src/lib/util/promos/October2024.svelte new file mode 100644 index 00000000..cca33f8a --- /dev/null +++ b/src/lib/util/promos/October2024.svelte @@ -0,0 +1,55 @@ + + +
+ {#key currentTagline} + + {currentTagline.label} + + + {/key} +
diff --git a/src/lib/util/promos/promo.ts b/src/lib/util/promos/promo.ts index 98ed7fec..d58536c4 100644 --- a/src/lib/util/promos/promo.ts +++ b/src/lib/util/promos/promo.ts @@ -1,6 +1,7 @@ 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'; interface Promotion { @@ -14,8 +15,14 @@ const promotions: Promotion[] = [ { id: 'promo-2024', startDate: new Date('2024-08-01'), - endDate: new Date('2024-12-31'), + endDate: new Date('2024-10-20'), component: August2024 + }, + { + id: 'promo-october-2024', + startDate: new Date('2024-10-21'), + endDate: new Date('2024-12-31'), + component: October2024 } ];