mirror of
https://github.com/ProjectSegfault/website.git
synced 2024-11-26 16:52:08 +05:30
make pubnix form better
This commit is contained in:
parent
8cc9e334c1
commit
392296ce89
@ -5,25 +5,40 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<h1>{data.title}</h1>
|
<h1>{data.title}</h1>
|
||||||
|
|
||||||
<form
|
<form
|
||||||
method="POST"
|
method="POST"
|
||||||
class="flex flex-col gap-4 w-fit children:(!bg-secondary text-start text-text rounded p-2)"
|
class="flex flex-col gap-5"
|
||||||
>
|
>
|
||||||
<input
|
<div>
|
||||||
type="text"
|
<label for="username">Username</label>
|
||||||
name="username"
|
<input
|
||||||
placeholder="Username"
|
type="text"
|
||||||
/>
|
name="username"
|
||||||
<input
|
placeholder="Username"
|
||||||
type="email"
|
required
|
||||||
name="email"
|
/>
|
||||||
placeholder="Email"
|
</div>
|
||||||
/>
|
|
||||||
<textarea
|
<div>
|
||||||
name="ssh"
|
<label for="email">Email</label>
|
||||||
placeholder="SSH public key"
|
<input
|
||||||
class="resize w-60 h-30 sm:(w-100 h-50)"
|
type="email"
|
||||||
/>
|
name="email"
|
||||||
|
placeholder="name@example.com"
|
||||||
|
required
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label for="ssh"><a href="https://wiki.projectsegfau.lt/index.php?title=Generating_an_SSH_key">SSH public key</a></label>
|
||||||
|
<textarea
|
||||||
|
name="ssh"
|
||||||
|
placeholder="[...]"
|
||||||
|
rows="5"
|
||||||
|
required
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
{#if form?.success}
|
{#if form?.success}
|
||||||
{form.message}
|
{form.message}
|
||||||
@ -32,9 +47,24 @@
|
|||||||
{#if form?.error}
|
{#if form?.error}
|
||||||
{form.message}
|
{form.message}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
class="transition-all duration-200 text-text hover:brightness-70"
|
class="transition-filter duration-200 hover:brightness-75"
|
||||||
>Submit</button
|
>Submit registration <div class="i-ic:outline-arrow-circle-right" /></button
|
||||||
>
|
>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
form > div {
|
||||||
|
@apply flex flex-col items-start gap-2 w-fit;
|
||||||
|
}
|
||||||
|
form > div > label {
|
||||||
|
@apply text-xl font-semibold;
|
||||||
|
}
|
||||||
|
form > div > input,
|
||||||
|
form > div > textarea,
|
||||||
|
form > button {
|
||||||
|
@apply w-110 lt-sm\:w-70 px-2 py-1 bg-secondary rounded flex items-center gap-2 text-lg;
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in New Issue
Block a user