From 83a29e72888bf0329ec24303aa35a1577d8b4ecb Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Wed, 28 Sep 2022 23:36:04 +0800 Subject: refactor: Rename to signin --- .../src/routes/(main)/(public)/login/+page.svelte | 107 --------------------- .../src/routes/(main)/(public)/signin/+page.svelte | 107 +++++++++++++++++++++ apps/kit/src/routes/(main)/+layout.svelte | 2 +- 3 files changed, 108 insertions(+), 108 deletions(-) delete mode 100644 apps/kit/src/routes/(main)/(public)/login/+page.svelte create mode 100644 apps/kit/src/routes/(main)/(public)/signin/+page.svelte diff --git a/apps/kit/src/routes/(main)/(public)/login/+page.svelte b/apps/kit/src/routes/(main)/(public)/login/+page.svelte deleted file mode 100644 index 46b9f7f..0000000 --- a/apps/kit/src/routes/(main)/(public)/login/+page.svelte +++ /dev/null @@ -1,107 +0,0 @@ - - -
-
-

- {$LL.login.loginToYourAccount()} -

-

- {$LL.common.or()} - {$LL.login.createANewAccount()} -

-
-
-
- {#if error.text || error.title} -
- {#if error.title} -

- {error.title} -

- {/if} - {#if error.text} -
- {error.text} -
- {/if} -
- {/if} -
- - - - - - -
-
-
diff --git a/apps/kit/src/routes/(main)/(public)/signin/+page.svelte b/apps/kit/src/routes/(main)/(public)/signin/+page.svelte new file mode 100644 index 0000000..46b9f7f --- /dev/null +++ b/apps/kit/src/routes/(main)/(public)/signin/+page.svelte @@ -0,0 +1,107 @@ + + +
+
+

+ {$LL.login.loginToYourAccount()} +

+

+ {$LL.common.or()} + {$LL.login.createANewAccount()} +

+
+
+
+ {#if error.text || error.title} +
+ {#if error.title} +

+ {error.title} +

+ {/if} + {#if error.text} +
+ {error.text} +
+ {/if} +
+ {/if} +
+ + + + + + +
+
+
diff --git a/apps/kit/src/routes/(main)/+layout.svelte b/apps/kit/src/routes/(main)/+layout.svelte index b2b4818..7b0aad1 100644 --- a/apps/kit/src/routes/(main)/+layout.svelte +++ b/apps/kit/src/routes/(main)/+layout.svelte @@ -24,7 +24,7 @@ if (sessionIsValid && isPublicRoute) { await goto("/home"); } else if (!sessionIsValid && !isPublicRoute) { - await goto("/login"); + await goto("/signin"); } } -- cgit v1.3