From 62a337f3ccf181a618a0cdabdc96d2b0490fb502 Mon Sep 17 00:00:00 2001 From: dtoro Date: Mon, 13 Jul 2026 23:12:16 +0200 Subject: [PATCH] feat(web): redesign config screen with animated particle background and unified auth layout --- .../lib/components/ConfigBackground.svelte | 171 +++++++++++++++ web/src/pages/Config.svelte | 204 +++++++++++------- 2 files changed, 295 insertions(+), 80 deletions(-) create mode 100644 web/src/lib/components/ConfigBackground.svelte diff --git a/web/src/lib/components/ConfigBackground.svelte b/web/src/lib/components/ConfigBackground.svelte new file mode 100644 index 0000000..3295d55 --- /dev/null +++ b/web/src/lib/components/ConfigBackground.svelte @@ -0,0 +1,171 @@ + + +
+ +
diff --git a/web/src/pages/Config.svelte b/web/src/pages/Config.svelte index 4b68ee6..a1f2301 100644 --- a/web/src/pages/Config.svelte +++ b/web/src/pages/Config.svelte @@ -1,11 +1,12 @@ -
- - - Connect to Oikos - Enter the server URL and your access token. - - - - - Token - Login with Authentik - - -
{ e.preventDefault(); connect() }}> -
- - -
-
- - -
- {#if error} -

{error}

- {/if} -
- - {#if onCancel} - - {/if} -
- {#if existing.token} - - {/if} -
-
- -
- {#if oidcConfigured && oidcUser} -

- Logged in as {oidcUser} -

- - - {:else} -

- Sign in with your Authentik account to access the control room. -

- {#if error} -

{error}

- {/if} - - {/if} - {#if existing.token} - +
+ + +
+
+ + +
+ +
+

Connect to Oikos

+

Configure your control room connection

+
+
+ + +
+ +
+ + +
+
+ + {#if showOidcContinue} + +
+

+ Logged in as {oidcUser} +

+
+ + {#if onCancel} + {/if}
- - - - + +
+ {:else} +
+ + authenticate with + +
+ + +
+ +
+

Single sign-on

+ +
+ + +
+

Access token

+
{ e.preventDefault(); connect() }} + > +
+ + +
+ +
+
+
+ {/if} + + + {#if error} +

{error}

+ {/if} + + + {#if !showOidcContinue && (onCancel || existing.token)} +
+ {#if onCancel} + + {/if} + {#if existing.token} + + {/if} +
+ {/if} +
+