From b299554a923addecd71dcd349dca61bc5a04d54b Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Wed, 19 Mar 2025 16:13:31 +0100 Subject: [PATCH] fix: guest forms --- .../(public)/(guest)/login/+page.svelte | 45 +++++----- .../(public)/(guest)/register/+page.svelte | 84 ++++++++++--------- .../register/invite/[slug]/+page.svelte | 81 +++++++++--------- src/routes/(public)/invite/+page.svelte | 56 +++++++------ src/routes/(public)/recover/+page.svelte | 48 ++++++----- 5 files changed, 166 insertions(+), 148 deletions(-) diff --git a/src/routes/(public)/(guest)/login/+page.svelte b/src/routes/(public)/(guest)/login/+page.svelte index 74c765077..207d91927 100644 --- a/src/routes/(public)/(guest)/login/+page.svelte +++ b/src/routes/(public)/(guest)/login/+page.svelte @@ -12,6 +12,7 @@ import { OAuthProvider } from '@appwrite.io/console'; import { redirectTo } from '$routes/store'; import { user } from '$lib/stores/user'; + import { Layout } from '@appwrite.io/pink-svelte'; let mail: string, pass: string, disabled: boolean; @@ -83,27 +84,29 @@ Sign in
- - - - {#if isCloud} - or - - {/if} + + + + + {#if isCloud} + or + + {/if} +
diff --git a/src/routes/(public)/(guest)/register/+page.svelte b/src/routes/(public)/(guest)/register/+page.svelte index ef2772b3b..4a9302016 100644 --- a/src/routes/(public)/(guest)/register/+page.svelte +++ b/src/routes/(public)/(guest)/register/+page.svelte @@ -19,7 +19,7 @@ import { page } from '$app/stores'; import { redirectTo } from '$routes/store'; import { checkPricingRefAndRedirect } from '$lib/helpers/pricingRedirect'; - import { Link, Typography } from '@appwrite.io/pink-svelte'; + import { Layout, Link, Typography } from '@appwrite.io/pink-svelte'; export let data; @@ -88,46 +88,48 @@ 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} + + + + + + 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} +
diff --git a/src/routes/(public)/(guest)/register/invite/[slug]/+page.svelte b/src/routes/(public)/(guest)/register/invite/[slug]/+page.svelte index 0b16a5f33..92308df14 100644 --- a/src/routes/(public)/(guest)/register/invite/[slug]/+page.svelte +++ b/src/routes/(public)/(guest)/register/invite/[slug]/+page.svelte @@ -19,6 +19,7 @@ import LoginLight from '$lib/images/login/login-light-mode.svg'; import LoginDark from '$lib/images/login/login-dark-mode.svg'; import { isCloud } from '$lib/system'; + import { Layout } from '@appwrite.io/pink-svelte'; let slug = $page.params.slug; let imgLight = LoginLight; @@ -95,45 +96,47 @@ {title}
- - - - - - By registering, you agree that you have read, understand, and acknowledge our - Privacy Policy - and accept our - General Terms of Use. - + + + + + + + By registering, you agree that you have read, understand, and acknowledge our + Privacy Policy + and accept our + General Terms of Use. + +
diff --git a/src/routes/(public)/invite/+page.svelte b/src/routes/(public)/invite/+page.svelte index e99653b02..21e043c7f 100644 --- a/src/routes/(public)/invite/+page.svelte +++ b/src/routes/(public)/invite/+page.svelte @@ -53,38 +53,44 @@ {#if !userId || !secret || !membershipId || !teamId} - - Please ask the project owner to send you a new invite. - - + + + Please ask the project owner to send you a new invite. + +
+ +
+
{:else} You have been invited to join an organization on Appwrite
- - By accepting the invitation, you agree to the Terms and Conditions - and - - Privacy Policy. + + + By accepting the invitation, you agree to the Terms and Conditions + and + + Privacy Policy. -
- - -
+ + + + +
{/if} diff --git a/src/routes/(public)/recover/+page.svelte b/src/routes/(public)/recover/+page.svelte index 49636b78f..a125f1a83 100644 --- a/src/routes/(public)/recover/+page.svelte +++ b/src/routes/(public)/recover/+page.svelte @@ -68,33 +68,37 @@ {#if userId && secret}
- - + + + - + + {:else}
- + + - + + {/if}