diff --git a/src/routes/(console)/project-[region]-[project]/databases/(assets)/mongo.svelte b/src/routes/(console)/project-[region]-[project]/databases/(assets)/mongo.svelte new file mode 100644 index 000000000..1c60684d3 --- /dev/null +++ b/src/routes/(console)/project-[region]-[project]/databases/(assets)/mongo.svelte @@ -0,0 +1,27 @@ + + + +
+ mongo-db artwork +
+ + diff --git a/src/routes/(console)/project-[region]-[project]/databases/create/+page.svelte b/src/routes/(console)/project-[region]-[project]/databases/create/+page.svelte index 6b1658e00..0709790d1 100644 --- a/src/routes/(console)/project-[region]-[project]/databases/create/+page.svelte +++ b/src/routes/(console)/project-[region]-[project]/databases/create/+page.svelte @@ -15,17 +15,17 @@ import { upgradeURL } from '$lib/stores/billing'; import { BillingPlan } from '$lib/constants'; import { organization } from '$lib/stores/organization'; - import { isSmallViewport, isTabletViewport } from '$lib/stores/viewport'; import EmptyDarkMobile from '$lib/images/backups/upgrade/backups-mobile-dark.png'; import EmptyLightMobile from '$lib/images/backups/upgrade/backups-mobile-light.png'; import { app } from '$lib/stores/app'; - import EmptyDarkTablet from '$lib/images/backups/upgrade/backups-tablet-dark.png'; - import EmptyLightTablet from '$lib/images/backups/upgrade/backups-tablet-light.png'; import { sdk } from '$lib/stores/sdk'; import { trackEvent } from '$lib/actions/analytics'; import CreatePolicy from '$database/backups/createPolicy.svelte'; import { cronExpression, type UserBackupPolicy } from '$lib/helpers/backups'; + import Mongo from '../(assets)/mongo.svelte'; + import { isTabletViewport } from '$lib/stores/viewport'; + let formComponent: Form; let databaseId = $state(null); @@ -43,10 +43,7 @@ let type = $state(typeFromParams ?? 'tablesdb') as DatabaseType; const isDark = $derived($app.themeInUse === 'dark'); - - const theme = $derived(isDark ? 'u-only-dark' : 'u-only-light'); - const mobileImg = $derived(isDark ? EmptyDarkMobile : EmptyLightMobile); - const tabletImg = $derived(isDark ? EmptyDarkTablet : EmptyLightTablet); + const backupsImg = $derived(isDark ? EmptyDarkMobile : EmptyLightMobile); const databaseTypes: Array<{ type: DatabaseType; @@ -171,6 +168,12 @@ columnSize="s">
+ {#if typeFromParams === null} +
+ {@render selectDatabaseType()} +
+ {/if} +
- {#if typeFromParams === null} -
- {@render selectDatabaseType()} -
- {/if} -
{#if isCloud} {@render cloudBackupOptions()} @@ -248,82 +245,31 @@ {#snippet selfHostedBackupOptions()} - {@const length = $isTabletViewport ? 2 : 3} - {@const gridsColumn = $isSmallViewport ? 2 : 3} - - {#if $isSmallViewport} -
- -
- Mock Numbers Example -
-
- {:else if $isTabletViewport} - -
-
- Backups Example -
-
- {:else} - {#each Array.from({ length }) as _, index} - {@const options = [ - { - title: 'Backup every 24 hours', - description: 'One backup every 24 hours, retained for 30 days' - }, - { - title: 'Custom policy', - description: 'Define your own schedule and retention' - }, - { - title: 'No backup', - description: 'Skip backups. You can change this later' - } - ]} - - {options[index].description} - - {/each} - {/if} -
+ + Backups promo - - - - Database Backups are available on Appwrite Cloud - + + + + Backups are available on Appwrite Cloud + - - Sign up now to access Appwrite's backups. Schedule automatic or manual backups - to protect your data and ensure quick recovery. - + + Sign up to access backups. Schedule automatic or manual backups to protect + your data and ensure quick recovery. + + + + + + - - {/snippet} @@ -331,16 +277,42 @@ {#snippet selectDatabaseType()} {#each databaseTypes as databaseType} - - {databaseType.subtitle} - +
+ + {databaseType.subtitle} + +
{/each}
{/snippet} + +