diff --git a/src/lib/components/Navbar.svelte b/src/lib/components/Navbar.svelte index 775db8a3..fbfe2af0 100644 --- a/src/lib/components/Navbar.svelte +++ b/src/lib/components/Navbar.svelte @@ -62,7 +62,7 @@ {#if activePromotion}
+ class="z-10 w-full h-fit top-bar bg-gradient-to-r from-[#bd34fe] to-[#ff3670] flex items-center text-center justify-center p-1 text-white">
diff --git a/src/lib/util/promos/Jan2024.svelte b/src/lib/util/promos/Jan2024.svelte new file mode 100644 index 00000000..462d4c85 --- /dev/null +++ b/src/lib/util/promos/Jan2024.svelte @@ -0,0 +1,15 @@ + + + + {taglines[Math.floor(Math.random() * taglines.length)]} + + diff --git a/src/lib/util/promos/promo.ts b/src/lib/util/promos/promo.ts index 150fcfa0..5781ccc6 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 Holiday2023 from './Holiday2023.svelte'; +import Jan2024 from './Jan2024.svelte'; interface Promotion { id: string; @@ -13,8 +14,14 @@ const promotions: Promotion[] = [ { id: 'holiday-2023', startDate: new Date('2023-11-27'), - endDate: new Date('2024-01-01'), + endDate: new Date('2024-01-10'), component: Holiday2023 + }, + { + id: 'jan-2024', + startDate: new Date('2024-01-10'), + endDate: new Date('2024-06-01'), + component: Jan2024 } ];