website/src/routes/pubnix/register/+page.svelte

25 lines
698 B
Svelte
Raw Normal View History

2023-01-07 22:59:58 +05:30
<script lang="ts">
2023-01-25 22:41:11 +05:30
import type { ActionData, PageData } from "./$types";
2023-01-07 22:59:58 +05:30
export let form: ActionData;
2023-01-25 22:41:11 +05:30
export let data: PageData;
2023-01-07 22:59:58 +05:30
</script>
2023-01-25 22:41:11 +05:30
<h1>{data.title}</h1>
<form
method="POST"
class="flex flex-col gap-4 w-fit children:(!bg-secondary text-start text-text rounded p-2)"
>
<input type="text" name="username" placeholder="Username" />
<input type="email" name="email" placeholder="Email" />
<textarea name="ssh" placeholder="SSH public key" class="resize w-60 h-30 sm:(w-100 h-50)" />
2023-01-07 22:59:58 +05:30
2023-01-25 22:41:11 +05:30
{#if form?.success}
{form.message}
{/if}
2023-01-07 22:59:58 +05:30
2023-01-25 22:41:11 +05:30
{#if form?.error}
{form.message}
{/if}
<button type="submit" class="transition-all duration-200 text-text hover:brightness-70">Submit</button>
</form>