Major UI revamp, follow standard scheme
This commit is contained in:
+9
-1
@@ -37,7 +37,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dark {
|
.dark {
|
||||||
--background: 0 0% 3.9%;
|
--background: 0 0% 0%;
|
||||||
--foreground: 0 0% 98%;
|
--foreground: 0 0% 98%;
|
||||||
|
|
||||||
--muted: 0 0% 14.9%;
|
--muted: 0 0% 14.9%;
|
||||||
@@ -75,4 +75,12 @@
|
|||||||
body {
|
body {
|
||||||
@apply bg-background text-foreground;
|
@apply bg-background text-foreground;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
@apply col-span-2 p-6 border-l border-neutral-900;
|
||||||
|
}
|
||||||
|
|
||||||
|
.background {
|
||||||
|
@apply col-span-3;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -6,6 +6,34 @@
|
|||||||
|
|
||||||
<ModeWatcher />
|
<ModeWatcher />
|
||||||
|
|
||||||
<div class="w-screen h-screen flex flex-col items-center justify-center">
|
<div class="w-screen h-screen font-mono">
|
||||||
|
<!-- Mobile: Single Column, Larger Screens: 5 Columns -->
|
||||||
|
<div class="flex flex-row w-full h-full">
|
||||||
|
<div
|
||||||
|
class="background hidden sm:flex w-full h-full flex-col items-center justify-center select-none"
|
||||||
|
>
|
||||||
|
<pre>
|
||||||
|
______________
|
||||||
|
/ /|
|
||||||
|
/ / |
|
||||||
|
/____________ / |
|
||||||
|
| ___________ | |
|
||||||
|
|| || |
|
||||||
|
|| Hello || |
|
||||||
|
|| World || |
|
||||||
|
||___________|| |
|
||||||
|
| _______ | /
|
||||||
|
/| (_______) | /
|
||||||
|
( |_____________|/
|
||||||
|
\
|
||||||
|
.=======================.
|
||||||
|
| :::::::::::::::: ::: |
|
||||||
|
| ::::::::::::::[] ::: |
|
||||||
|
| ----------- ::: |
|
||||||
|
`-----------------------'</pre>
|
||||||
|
</div>
|
||||||
|
<div class="content">
|
||||||
{@render children()}
|
{@render children()}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
import { page } from '$app/state';
|
import { page } from '$app/state';
|
||||||
import { Button } from '$lib/components/ui/button/index.js';
|
import { Button } from '$lib/components/ui/button/index.js';
|
||||||
import * as Card from '$lib/components/ui/card/index.js';
|
|
||||||
import { Input } from '$lib/components/ui/input/index.js';
|
import { Input } from '$lib/components/ui/input/index.js';
|
||||||
import { Label } from '$lib/components/ui/label/index.js';
|
import { Label } from '$lib/components/ui/label/index.js';
|
||||||
|
|
||||||
@@ -40,14 +39,11 @@
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Card.Root class="w-[350px]">
|
<form class=" gap-4 flex flex-col h-full" on:submit|preventDefault={login}>
|
||||||
<form on:submit={login}>
|
<div class="mb-4">
|
||||||
<Card.Header>
|
<h1 class="text-2xl font-bold">Welcome back</h1>
|
||||||
<Card.Title>Login to Account</Card.Title>
|
<h3 class="text-sm">Please login to your account to access the application</h3>
|
||||||
<Card.Description>Please enter your credentials below to login.</Card.Description>
|
</div>
|
||||||
<Card.Description>You will be redirected to .</Card.Description>
|
|
||||||
</Card.Header>
|
|
||||||
<Card.Content>
|
|
||||||
<!-- Display success or error message -->
|
<!-- Display success or error message -->
|
||||||
{#if successMessage}
|
{#if successMessage}
|
||||||
<p class="text-green-500 mb-4">{successMessage}</p>
|
<p class="text-green-500 mb-4">{successMessage}</p>
|
||||||
@@ -61,12 +57,8 @@
|
|||||||
<Input id="password" type="password" bind:value={password} required />
|
<Input id="password" type="password" bind:value={password} required />
|
||||||
|
|
||||||
<!-- Submit button within the form -->
|
<!-- Submit button within the form -->
|
||||||
</Card.Content>
|
<Button class="mt-auto" type="submit">Login</Button>
|
||||||
<Card.Footer class="flex justify-between">
|
|
||||||
<Button variant="outline" on:click={() => goto(`/register?redirect=${redirectUrl}`)}
|
<Button variant="outline" on:click={() => goto(`/register?redirect=${redirectUrl}`)}
|
||||||
>Register</Button
|
>Register</Button
|
||||||
>
|
>
|
||||||
<Button type="submit">Login</Button>
|
</form>
|
||||||
</Card.Footer>
|
|
||||||
</form>
|
|
||||||
</Card.Root>
|
|
||||||
|
|||||||
@@ -50,13 +50,12 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Card.Root class="w-[350px]">
|
<form class=" gap-4 flex flex-col h-full" on:submit|preventDefault={submitForm}>
|
||||||
<form on:submit|preventDefault={submitForm}>
|
<div class="mb-4">
|
||||||
<Card.Header>
|
<h1 class="text-2xl font-bold">New here?</h1>
|
||||||
<Card.Title>Register Account</Card.Title>
|
<h3 class="text-sm">Please fill in the details below to create an account.</h3>
|
||||||
<Card.Description>Please fill in the details below to create an account.</Card.Description>
|
</div>
|
||||||
</Card.Header>
|
<!-- Display success or error message -->
|
||||||
<Card.Content>
|
|
||||||
{#if successMessage}
|
{#if successMessage}
|
||||||
<p class="text-green-500">{successMessage}</p>
|
<p class="text-green-500">{successMessage}</p>
|
||||||
{:else if errorMessage}
|
{:else if errorMessage}
|
||||||
@@ -73,12 +72,8 @@
|
|||||||
|
|
||||||
<Label for="lastName">Last Name:</Label>
|
<Label for="lastName">Last Name:</Label>
|
||||||
<Input id="lastName" type="text" bind:value={lastName} />
|
<Input id="lastName" type="text" bind:value={lastName} />
|
||||||
</Card.Content>
|
|
||||||
<Card.Footer class="flex justify-between">
|
<!-- Submit button within the form -->
|
||||||
<Button variant="outline" on:click={() => goto(`/login?redirect=${redirectUrl}`)}
|
<Button class="mt-auto" type="submit">Register</Button>
|
||||||
>Login</Button
|
<Button variant="outline" on:click={() => goto(`/login?redirect=${redirectUrl}`)}>Login</Button>
|
||||||
>
|
</form>
|
||||||
<Button type="submit">Register</Button>
|
|
||||||
</Card.Footer>
|
|
||||||
</form>
|
|
||||||
</Card.Root>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user