diff --git a/AquaNet/src/pages/Welcome.svelte b/AquaNet/src/pages/Welcome.svelte index f01748c9..1af1ae4c 100644 --- a/AquaNet/src/pages/Welcome.svelte +++ b/AquaNet/src/pages/Welcome.svelte @@ -1,251 +1,255 @@ - - - - - AquaNet - {#if state === "home"} - - state = 'login'}>{t('welcome.btn-login')} - state = 'signup'}>{t('welcome.btn-signup')} - - {:else if state === "login" || state === "signup"} - - {#if error} - {error} - {/if} - state = 'home'} on:keypress={() => state = 'home'} - role="button" tabindex="0" class="clickable"> - - {t('back')} - - {#if isSignup} - - {/if} - - - - {#if submitting} - - {:else} - {isSignup ? t('welcome.btn-signup') : t('welcome.btn-login')} - {/if} - - console.log(turnstile = e.detail.token)} - on:turnstile-error={_ => console.log(error = t("welcome.turnstile-error"))} - on:turnstile-expired={_ => window.location.reload()} - on:turnstile-timeout={_ => console.log(error = t('welcome.turnstile-timeout'))} /> - - {:else if state === "verify"} - - {verifyMsg} - {#if !submitting} - state = 'home'} transition:slide>{t('back')} - {/if} - - {/if} - - - - - - - - - - + + + + + AquaNet + {#if state === "home"} + + state = 'login'}>{t('welcome.btn-login')} + state = 'signup'}>{t('welcome.btn-signup')} + + {:else if state === "login" || state === "signup"} + + {#if error} + {error} + {/if} + state = 'home'} on:keypress={() => state = 'home'} + role="button" tabindex="0" class="clickable"> + + {t('back')} + + {#if isSignup} + + {/if} + + + + {#if submitting} + + {:else} + {isSignup ? t('welcome.btn-signup') : t('welcome.btn-login')} + {/if} + + console.log(turnstile = e.detail.token)} + on:turnstile-error={_ => console.log(error = t("welcome.turnstile-error"))} + on:turnstile-expired={_ => window.location.reload()} + on:turnstile-timeout={_ => console.log(error = t('welcome.turnstile-timeout'))} /> + + {:else if state === "verify"} + + {verifyMsg} + {#if !submitting} + state = 'home'} transition:slide>{t('back')} + {/if} + + {/if} + + + + + + + + + +