diff --git a/src/lib/components/Input.svelte b/src/lib/components/Input.svelte index 278ad119..5ba2b4a5 100644 --- a/src/lib/components/Input.svelte +++ b/src/lib/components/Input.svelte @@ -231,6 +231,7 @@ $: { {/if} + {#if errors} {/if} + \ No newline at end of file diff --git a/src/lib/components/LoginPopup.svelte b/src/lib/components/LoginPopup.svelte index 51fd3b7e..eb759447 100644 --- a/src/lib/components/LoginPopup.svelte +++ b/src/lib/components/LoginPopup.svelte @@ -7,8 +7,11 @@ export let form; let oauthLoading = false; - + let isClicked = false; + let loading = false; + const submitLogin = () => { + loading = true; return async ({ result, update}) => { switch (result.type) { case 'success': @@ -26,7 +29,8 @@ await update(); break; } - case 'redirect': + case 'redirect': + isClicked = true; toast.success('Login successfully!', { style: 'border-radius: 200px; background: #333; color: #fff;'}); await update(); @@ -56,18 +60,18 @@ }, 280); */ - + loading = false; + } } - let loading = false; const submitRegistration= () => { loading = true; return async ({ result, update}) => { - console.log(result.type); switch (result.type) { case 'success': + isClicked = true; toast.success('Registration successfully!', { style: 'border-radius: 200px; background: #333; color: #fff;'}); await update(); @@ -113,10 +117,6 @@ const output = await response.json(); let displaySection = 'login'; -function changeSection(state) -{ - displaySection = state; -} let isHoveredGoogle = false; let isHoveredDiscord = false; @@ -140,22 +140,21 @@ function handleHoverGithub() { + - - {#if $screenWidth > 640} - + -