mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
feat: Init announcement console banner
This commit is contained in:
1 parent
ee60d8ed26
commit
60e7ba53e5
3 files changed
+10
-10
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 319 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.5 MiB |
@@ -1,33 +1,33 @@
|
|||||||
import { isCloud } from '$lib/system';
|
import { isCloud } from '$lib/system';
|
||||||
import { isSameDay } from '$lib/helpers/date';
|
import { isSameDay } from '$lib/helpers/date';
|
||||||
import { type BottomModalAlertItem, showBottomModalAlert } from '$lib/stores/bottom-alerts';
|
import { type BottomModalAlertItem, showBottomModalAlert } from '$lib/stores/bottom-alerts';
|
||||||
import StateOfAppwriteSurvey from '$lib/images/promos/state-of-appwrite-survey.png';
|
import InitPromo from '$lib/images/promos/init-2026.png';
|
||||||
|
|
||||||
const listOfPromotions: BottomModalAlertItem[] = [];
|
const listOfPromotions: BottomModalAlertItem[] = [];
|
||||||
|
|
||||||
if (isCloud) {
|
if (isCloud) {
|
||||||
const stateOfAppwriteSurveyPromo: BottomModalAlertItem = {
|
const initPromo: BottomModalAlertItem = {
|
||||||
id: 'modal:state_of_appwrite_survey_announcement',
|
id: 'modal:init_2026_announcement',
|
||||||
src: {
|
src: {
|
||||||
dark: StateOfAppwriteSurvey,
|
dark: InitPromo,
|
||||||
light: StateOfAppwriteSurvey
|
light: InitPromo
|
||||||
},
|
},
|
||||||
title: 'State of Appwrite Cloud',
|
title: 'Init is happening August 31 - September 4',
|
||||||
message:
|
message:
|
||||||
'Share your experience building with Appwrite Cloud and using AI tools, and help shape our product roadmap for 2026 and beyond.',
|
'Five days of product launches, live sessions, and community events. Claim your ticket to join.',
|
||||||
plan: 'free',
|
plan: 'free',
|
||||||
importance: 8,
|
importance: 8,
|
||||||
scope: 'everywhere',
|
scope: 'everywhere',
|
||||||
cta: {
|
cta: {
|
||||||
text: 'Take the survey',
|
text: 'Claim your ticket',
|
||||||
link: () => 'https://forms.gle/5cvWxTwhonoDCWsi7',
|
link: () => 'https://new.appwrite.io/init',
|
||||||
external: true,
|
external: true,
|
||||||
hideOnClick: true,
|
hideOnClick: true,
|
||||||
skipUpgradeRedirect: true
|
skipUpgradeRedirect: true
|
||||||
},
|
},
|
||||||
show: true
|
show: true
|
||||||
};
|
};
|
||||||
listOfPromotions.push(stateOfAppwriteSurveyPromo);
|
listOfPromotions.push(initPromo);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function addBottomModalAlerts() {
|
export function addBottomModalAlerts() {
|
||||||
|
|||||||
Reference in new issue
Block a user