Fix title.svelte
This commit is contained in:
parent
70da1db833
commit
8ba5b8ec90
5 changed files with 8 additions and 5 deletions
BIN
database.db
BIN
database.db
Binary file not shown.
|
|
@ -1,6 +1,9 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
const {size}: {size: string} = $props();
|
import { cn } from "$lib/utils";
|
||||||
|
import type { ClassValue } from 'svelte/elements';
|
||||||
|
|
||||||
|
const props: { class: ClassValue } = $props();
|
||||||
</script>
|
</script>
|
||||||
<div class="text-{size || "2xl"} bg-clip-text text-transparent bg-linear-to-r from-amber-500 to-orange-500">
|
<div class={cn(props.class, "bg-clip-text text-transparent bg-linear-to-r from-amber-500 to-orange-500")}>
|
||||||
chat.sad.ovh
|
chat.sad.ovh
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="p-6 md:w-1/2">
|
<div class="p-6 md:w-1/2">
|
||||||
<Title size="5xl"></Title>
|
<Title class="text-5xl"></Title>
|
||||||
<div class="pb-2">A extremely simple chatting application. Supports mobile devices (as a PWA), and also works on almost every single screen size (responsive design!)</div>
|
<div class="pb-2">A extremely simple chatting application. Supports mobile devices (as a PWA), and also works on almost every single screen size (responsive design!)</div>
|
||||||
|
|
||||||
<div class="pb-2">
|
<div class="pb-2">
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
<div class="flex min-h-screen flex-col items-center justify-center gap-2">
|
<div class="flex min-h-screen flex-col items-center justify-center gap-2">
|
||||||
<div class='w-1/2 p-2 bg-secondary rounded-md '>
|
<div class='w-1/2 p-2 bg-secondary rounded-md '>
|
||||||
<div class="text-center pb-2">
|
<div class="text-center pb-2">
|
||||||
<Title size="2xl"></Title>
|
<Title class="text-2xl"></Title>
|
||||||
</div>
|
</div>
|
||||||
<form method="post" action="?/login">
|
<form method="post" action="?/login">
|
||||||
<Input name="username" class="mb-2" type="text" placeholder="Username or E-mail"></Input>
|
<Input name="username" class="mb-2" type="text" placeholder="Username or E-mail"></Input>
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ export const actions: Actions = {
|
||||||
const sessionToken = auth.generateSessionToken();
|
const sessionToken = auth.generateSessionToken();
|
||||||
const session = await auth.createSession(sessionToken, userId);
|
const session = await auth.createSession(sessionToken, userId);
|
||||||
auth.setSessionTokenCookie(event, sessionToken, session.expiresAt);
|
auth.setSessionTokenCookie(event, sessionToken, session.expiresAt);
|
||||||
} catch(e) {
|
} catch {
|
||||||
return fail(500, { message: 'An error has occurred' });
|
return fail(500, { message: 'An error has occurred' });
|
||||||
}
|
}
|
||||||
return redirect(302, '/app');
|
return redirect(302, '/app');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue