mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Merge pull request #3191 from appwrite/feat-new-console-banner
feat(console): add new Console announcement banner
This commit is contained in:
3 files changed
+11
-10
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 319 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 858 KiB |
@@ -1,33 +1,34 @@
|
||||
import { isCloud } from '$lib/system';
|
||||
import { isSameDay } from '$lib/helpers/date';
|
||||
import { type BottomModalAlertItem, showBottomModalAlert } from '$lib/stores/bottom-alerts';
|
||||
import InitPromo from '$lib/images/promos/init-2026.png';
|
||||
import NewConsolePromo from '$lib/images/promos/new-console.png';
|
||||
|
||||
const listOfPromotions: BottomModalAlertItem[] = [];
|
||||
|
||||
if (isCloud) {
|
||||
const initPromo: BottomModalAlertItem = {
|
||||
id: 'modal:init_2026_announcement',
|
||||
const newConsolePromo: BottomModalAlertItem = {
|
||||
id: 'modal:new_console_announcement',
|
||||
src: {
|
||||
dark: InitPromo,
|
||||
light: InitPromo
|
||||
dark: NewConsolePromo,
|
||||
light: NewConsolePromo
|
||||
},
|
||||
title: 'Init is happening August 31 - September 4',
|
||||
title: 'Introducing the new Appwrite Console',
|
||||
message:
|
||||
'Five days of product launches, live sessions, and community events. Claim your ticket to join.',
|
||||
'Rebuilt from the ground up using the power of TanStack Start. Faster, cleaner, and everything you’re working on comes with you.',
|
||||
plan: 'free',
|
||||
importance: 8,
|
||||
scope: 'everywhere',
|
||||
cta: {
|
||||
text: 'Claim your ticket',
|
||||
link: () => 'https://new.appwrite.io/init',
|
||||
text: 'Try it now',
|
||||
link: () =>
|
||||
'https://appwrite.io/?utm_source=old-console&utm_medium=promo_card&utm_campaign=new-console',
|
||||
external: true,
|
||||
hideOnClick: true,
|
||||
skipUpgradeRedirect: true
|
||||
},
|
||||
show: true
|
||||
};
|
||||
listOfPromotions.push(initPromo);
|
||||
listOfPromotions.push(newConsolePromo);
|
||||
}
|
||||
|
||||
export function addBottomModalAlerts() {
|
||||
|
||||
Reference in new issue
Block a user