diff --git a/src/lib/profiles.ts b/src/lib/profiles.ts index 805bc06eb..4cd8d764e 100644 --- a/src/lib/profiles.ts +++ b/src/lib/profiles.ts @@ -7,6 +7,7 @@ type Profile = { hasStorage: boolean; hasSites: boolean; hasProjectProgressBars: boolean; + hasFullPageSignup: boolean; }; export const ConsoleCloudProfile: Profile = { @@ -17,7 +18,8 @@ export const ConsoleCloudProfile: Profile = { hasMessages: true, hasStorage: true, hasSites: true, - hasProjectProgressBars: true + hasProjectProgressBars: true, + hasFullPageSignup: false }; export const ConsoleSelfhostedProfile: Profile = { @@ -28,7 +30,8 @@ export const ConsoleSelfhostedProfile: Profile = { hasMessages: true, hasStorage: true, hasSites: true, - hasProjectProgressBars: true + hasProjectProgressBars: true, + hasFullPageSignup: false }; export const StudioProfile: Profile = { @@ -39,5 +42,6 @@ export const StudioProfile: Profile = { hasMessages: true, hasStorage: true, hasSites: true, - hasProjectProgressBars: false + hasProjectProgressBars: false, + hasFullPageSignup: true }; diff --git a/src/routes/(public)/(guest)/login/+page.svelte b/src/routes/(public)/(guest)/login/+page.svelte index fda23c7b4..d26f31b42 100644 --- a/src/routes/(public)/(guest)/login/+page.svelte +++ b/src/routes/(public)/(guest)/login/+page.svelte @@ -7,12 +7,13 @@ import { Unauthenticated } from '$lib/layout'; import { Dependencies } from '$lib/constants'; import { Submit, trackEvent, trackError } from '$lib/actions/analytics'; - import { isCloud } from '$lib/system'; + import { consoleProfile, isCloud } from '$lib/system'; import { page } from '$app/state'; import { OAuthProvider } from '@appwrite.io/console'; import { redirectTo } from '$routes/store'; import { user } from '$lib/stores/user'; - import { Layout } from '@appwrite.io/pink-svelte'; + import { Layout, Card, Modal } from '@appwrite.io/pink-svelte'; + import DesktopLight from './assets/desktop-light.png'; let mail: string, pass: string, disabled: boolean; @@ -82,43 +83,109 @@ Sign in - Appwrite - - Sign in - -
- - - - - {#if isCloud} - or - - {/if} - -
-
- - - - -
+{#if consoleProfile.hasFullPageSignup} +
+ +
+ + + + + {#if isCloud} + or + + {/if} + + Forgot Password? + + Sign Up + + + +
+
+
+
+{:else} + + Sign in + +
+ + + + + {#if isCloud} + or + + {/if} + +
+
+ + + + +
+{/if} + + diff --git a/src/routes/(public)/(guest)/login/assets/desktop-light.png b/src/routes/(public)/(guest)/login/assets/desktop-light.png new file mode 100644 index 000000000..cc4ae8911 Binary files /dev/null and b/src/routes/(public)/(guest)/login/assets/desktop-light.png differ diff --git a/src/routes/(public)/(guest)/register/+page.svelte b/src/routes/(public)/(guest)/register/+page.svelte index f9b0084bc..0525c7f6a 100644 --- a/src/routes/(public)/(guest)/register/+page.svelte +++ b/src/routes/(public)/(guest)/register/+page.svelte @@ -15,11 +15,12 @@ import { Dependencies } from '$lib/constants'; import { Submit, trackError, trackEvent } from '$lib/actions/analytics'; import { ID, OAuthProvider } from '@appwrite.io/console'; - import { isCloud } from '$lib/system'; + import { consoleProfile, isCloud } from '$lib/system'; import { page } from '$app/state'; import { redirectTo } from '$routes/store'; import { checkPricingRefAndRedirect } from '$lib/helpers/pricingRedirect'; - import { Layout, Link, Typography } from '@appwrite.io/pink-svelte'; + import { Layout, Link, Modal, Typography } from '@appwrite.io/pink-svelte'; + import DesktopLight from '../login/assets/desktop-light.png'; export let data; @@ -84,58 +85,143 @@ Sign up - Appwrite - - Sign up - -
- - - - - - By registering, you agree that you have read, understand, and acknowledge our - Privacy Policy - and accept our - General Terms of Use. - - {#if isCloud} - or - - {/if} - -
-
- - - Already got an account? Sign in - - -
+{#if consoleProfile.hasFullPageSignup} +
+ +
+ + + + + + By registering, you agree that you have read, understand, and acknowledge + our + Privacy Policy + and accept our + General Terms of Use. + + {#if isCloud} + or + + {/if} + + Already got an account? Sign in + + +
+
+
+
+{:else} + + Sign up + +
+ + + + + + By registering, you agree that you have read, understand, and acknowledge + our + Privacy Policy + and accept our + General Terms of Use. + + {#if isCloud} + or + + {/if} + +
+
+ + + Already got an account? Sign in + + +
+{/if} + +