From 7f9f440789df8d77a43e4fdaa818f68fa46e2209 Mon Sep 17 00:00:00 2001 From: Kaname <56084970+kaname-png@users.noreply.github.com> Date: Mon, 5 Sep 2022 19:21:19 +0000 Subject: [PATCH] feat(routes): rework ui from login and register page --- apps/ui/src/routes/__layout.svelte | 2 +- apps/ui/src/routes/login.svelte | 127 ++++++++++++++++------------- apps/ui/src/routes/register.svelte | 100 ++++++++++++++--------- 3 files changed, 133 insertions(+), 96 deletions(-) diff --git a/apps/ui/src/routes/__layout.svelte b/apps/ui/src/routes/__layout.svelte index cd6033532..901aedea5 100644 --- a/apps/ui/src/routes/__layout.svelte +++ b/apps/ui/src/routes/__layout.svelte @@ -404,7 +404,7 @@ {/if} {/if}
-
+
diff --git a/apps/ui/src/routes/login.svelte b/apps/ui/src/routes/login.svelte index c97987f0d..40f5fc2fe 100644 --- a/apps/ui/src/routes/login.svelte +++ b/apps/ui/src/routes/login.svelte @@ -49,66 +49,83 @@ {$t('login.login')} -
-
-
+
+ +
+
{#if $appSession.whiteLabeledDetails.icon} - Icon for white labeled version of Coolify +
+ Icon for white labeled version of Coolify +
{:else} -
Coolify
+
+
+ Coolify icon +
+
+
+

Coolify dashboard

+
{/if} - - +
+
+
+

Welcome back

+
Please login to continue.
+
+ + + -
- - {#if $appSession.registrationEnabled} - + + - {:else} -
- Registration is disabled. Please ask an admin to activate it. -
- {/if} -
- +
+ + {#if browser && window.location.host === 'demo.coolify.io'} +
+ Registration is open, just fill in an email (does not + need to be live email address for the demo instance) and a password. +
+
+ All users gets an own namespace, so you won't be able + to access other users data. +
+ {/if} +
- {#if browser && window.location.host === 'demo.coolify.io'} -
- Registration is open, just fill in an email (does not need - to be live email address for the demo instance) and a password. -
-
- All users gets an own namespace, so you won't be able to - access other users data. -
- {/if}
diff --git a/apps/ui/src/routes/register.svelte b/apps/ui/src/routes/register.svelte index 1a2eb7487..0cdf81c4a 100644 --- a/apps/ui/src/routes/register.svelte +++ b/apps/ui/src/routes/register.svelte @@ -61,38 +61,58 @@ } -
goto('/')}> - - - - - - -
-
- {#if $appSession.userId} -
{$t('login.already_logged_in')}
- {:else} -
-
+
+ +
+
+
goto('/')}> + + + + + + +
+
{#if $appSession.whiteLabeledDetails.icon} - Icon for white labeled version of Coolify +
+ Icon for white labeled version of Coolify +
{:else} -
Coolify
+
+
+ Coolify icon +
+
+
+

Coolify dashboard

+
{/if} +
+
+
+
+

Get started

+
Enter the required fields to complete the registration.
+
+ -
+
+ {#if userCount === 0} +
+ {$t('register.first_user')} +
+ {/if}
- {#if userCount === 0} -
- {$t('register.first_user')} -
- {/if} - {/if} +