Style !
This commit is contained in:
+8
-4
@@ -1,5 +1,7 @@
|
||||
import { Signal, useSignal, useSignalEffect } from "@preact/signals";
|
||||
|
||||
import Button from "@/components/Button.tsx";
|
||||
import InputField from "@/components/InputField.tsx";
|
||||
import Form from "@/islands/Form.tsx";
|
||||
import { post_json } from "@/src/client.ts";
|
||||
|
||||
@@ -37,13 +39,15 @@ export default function AskCode({ page }: AskCodeProps) {
|
||||
});
|
||||
|
||||
if (checking.value) {
|
||||
return <p>Verifying code...</p>;
|
||||
return <p class="text-center text-gray-800 dark:text-gray-400">Verifying code...</p>;
|
||||
}
|
||||
|
||||
return (
|
||||
<Form action="/api/verify_code" on_success={on_success}>
|
||||
<input type="text" name="code" />
|
||||
<button type="submit">Enter</button>
|
||||
<Form class="mx-auto w-full max-w-md py-8" action="/api/verify_code" on_success={on_success}>
|
||||
<div class="flex flex-col gap-4">
|
||||
<InputField type="text" name="code" placeholder="Code" />
|
||||
<Button type="submit" variant="primary">Enter</Button>
|
||||
</div>
|
||||
</Form>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user