2022-12-05 20:14:56 +00:00
|
|
|
import { component$ } from '@builder.io/qwik'
|
2023-01-09 19:40:08 +00:00
|
|
|
import { WildebeestLogo } from '~/components/MastodonLogo'
|
2022-12-05 20:14:56 +00:00
|
|
|
import { useDomain } from '~/utils/useDomain'
|
|
|
|
|
|
|
|
export default component$(() => {
|
|
|
|
const domain = useDomain()
|
|
|
|
|
|
|
|
return (
|
2023-01-04 21:48:23 +00:00
|
|
|
<div class="flex flex-col p-5 items-center">
|
2023-01-07 14:30:20 +00:00
|
|
|
<h1 class="text-center mt-7 mb-9 flex items-center">
|
2023-01-09 19:40:08 +00:00
|
|
|
<WildebeestLogo size="large" />
|
2022-12-05 20:14:56 +00:00
|
|
|
</h1>
|
2023-01-04 21:48:23 +00:00
|
|
|
<form method="post" class="flex flex-col w-full max-w-md">
|
|
|
|
<div class="flex flex-col mb-6">
|
2022-12-05 20:14:56 +00:00
|
|
|
<label class="mb-2 max-w-max text-semi text-sm" for="login-username">
|
|
|
|
Username
|
|
|
|
</label>
|
|
|
|
<div class="flex justify-center items-center flex-wrap gap-1">
|
|
|
|
<input
|
|
|
|
id="login-username"
|
|
|
|
name="username"
|
|
|
|
pattern="[^@]+"
|
2023-01-09 22:49:18 +00:00
|
|
|
class="bg-black text-white p-3 rounded outline-none border border-black hover:border-wildebeest-vibrant-500 focus:border-wildebeest-vibrant-500 invalid:border-red-500 flex-1 w-full"
|
2022-12-05 20:14:56 +00:00
|
|
|
/>
|
|
|
|
<span>@{domain}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-01-04 21:48:23 +00:00
|
|
|
<div class="flex flex-col mb-6">
|
2022-12-05 20:14:56 +00:00
|
|
|
<label class="mb-2 max-w-max text-semi text-sm" for="login-name">
|
|
|
|
Display Name
|
|
|
|
</label>
|
|
|
|
<input
|
|
|
|
id="login-name"
|
|
|
|
name="name"
|
2023-01-09 22:49:18 +00:00
|
|
|
class="bg-black text-white p-3 rounded outline-none border border-black hover:border-wildebeest-vibrant-500 focus:border-wildebeest-vibrant-500"
|
2022-12-05 20:14:56 +00:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<button
|
|
|
|
type="submit"
|
2023-01-09 22:49:18 +00:00
|
|
|
class="mb-9 bg-wildebeest-vibrant-600 hover:bg-wildebeest-vibrant-500 p-3 text-white text-uppercase border-wildebeest-vibrant-600 text-lg text-semi outline-none border rounded hover:border-wildebeest-vibrant-500 focus:border-wildebeest-vibrant-500"
|
2022-12-05 20:14:56 +00:00
|
|
|
>
|
|
|
|
Register
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
})
|