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

41 lines
728 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)"
>
2023-02-03 23:25:33 +05:30
<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}
2023-02-03 23:25:33 +05:30
<button
type="submit"
class="transition-all duration-200 text-text hover:brightness-70"
>Submit</button
>
</form>