diff --git a/WebApp/src/lib/auth/AuthPanel.svelte b/WebApp/src/lib/auth/AuthPanel.svelte index 559ce7d..89a22df 100644 --- a/WebApp/src/lib/auth/AuthPanel.svelte +++ b/WebApp/src/lib/auth/AuthPanel.svelte @@ -3,10 +3,9 @@ import { appController } from '$lib/app/controller'; import { appState } from '$lib/app/store'; import { Button } from '$lib/components/ui/button/index.js'; - import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '$lib/components/ui/card/index.js'; + import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '$lib/components/ui/card/index.js'; import { Input } from '$lib/components/ui/input/index.js'; import { Label } from '$lib/components/ui/label/index.js'; - import { ArrowRight } from '@lucide/svelte'; let { mode = 'login' } = $props<{ mode?: 'login' | 'signup' }>(); @@ -14,10 +13,11 @@ const title = () => (isSignup() ? 'Create your PhoneCam account' : 'Sign in to PhoneCam'); const description = () => isSignup() - ? 'Start setting up browser-based monitoring and client viewing in a few steps.' - : 'Return to your live monitoring workspace and pick up where you left off.'; + ? 'Create an account to finish setting up this browser.' + : 'Use your account to open the dashboard and continue setup.'; const primaryLabel = () => (isSignup() ? 'Create account' : 'Sign in'); - const secondaryLabel = () => (isSignup() ? 'I already have an account' : 'Create an account'); + const secondaryLabel = () => (isSignup() ? 'Sign in instead' : 'Create an account'); + const secondaryPrompt = () => (isSignup() ? 'Already have an account?' : 'Need an account?'); const secondaryHref = () => (isSignup() ? '/auth/login' : '/auth/signup'); $effect(() => { @@ -25,111 +25,86 @@ }); -
-
-
-
- - PhoneCam Browser Console -
+
+ -
-

- Turn any browser into a live security surface. -

-

- Authenticate once, assign this browser as a camera or client, and manage motion alerts, recordings, and live feeds from a single control plane. -

-
- -
-
-

Assign roles

-

Register this browser as a camera station or a client viewer without leaving the web app.

-
-
-

Stay live

-

Watch feeds, monitor connection health, and see motion activity arrive in real time.

-
-
-

Carry context

-

Your saved device and session restore cleanly so returning to the workspace is fast.

-
-
-
- - -
- -

PhoneCam

+
+ + +

PhoneCam

{title()} {description()}
- + + {#if isSignup()} +
+ + appController.setAuthField('name', (event.currentTarget as HTMLInputElement).value)} + /> +
+ {/if} +
- + appController.setAuthField('email', (event.currentTarget as HTMLInputElement).value)} />
- + appController.setAuthField('password', (event.currentTarget as HTMLInputElement).value)} />
- {#if isSignup()} -
- - appController.setAuthField('name', (event.currentTarget as HTMLInputElement).value)} - /> -
- {/if} -
- - -
- {isSignup() ? 'Already provisioned?' : 'Need a new workspace?'} +
+ {secondaryPrompt()}
- +