feat: initial commit.
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
export interface Props {
|
||||
email: string;
|
||||
error?: string;
|
||||
}
|
||||
|
||||
export function SignInForm(props: Props) {
|
||||
return (
|
||||
<form method="post" class="flex flex-col gap-4">
|
||||
<input
|
||||
type="email"
|
||||
name="email"
|
||||
class="input w-full"
|
||||
placeholder="E-Mail"
|
||||
autocomplete="email"
|
||||
value={props.email}
|
||||
/>
|
||||
<input
|
||||
type="password"
|
||||
name="password"
|
||||
class="input w-full"
|
||||
placeholder="Password"
|
||||
autocomplete="current-password"
|
||||
/>
|
||||
{props.error && (
|
||||
<div class="alert alert-error">
|
||||
{props.error}
|
||||
</div>
|
||||
)}
|
||||
<button type="submit" class="btn btn-primary self-start">Sign up</button>
|
||||
</form>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user