mirror of
https://github.com/hanzoai/dataroom.git
synced 2026-10-30 18:41:07 +00:00
47 lines
1.7 KiB
TypeScript
47 lines
1.7 KiB
TypeScript
export default function EmailForm({ onSubmitHandler, setEmail }: any) {
|
|
return (
|
|
<>
|
|
<div className="flex h-screen flex-1 flex-col bg-black px-6 py-12 lg:px-8">
|
|
<div className="sm:mx-auto sm:w-full sm:max-w-md">
|
|
<h2 className="mt-10 text-2xl font-bold leading-9 tracking-tight text-white">
|
|
Enter your email to view the document
|
|
</h2>
|
|
</div>
|
|
|
|
<div className="mt-10 sm:mx-auto sm:w-full sm:max-w-md">
|
|
<form className="space-y-6" onSubmit={onSubmitHandler}>
|
|
<div>
|
|
<label
|
|
htmlFor="email"
|
|
className="block text-sm font-medium leading-6 text-white"
|
|
>
|
|
Email address
|
|
</label>
|
|
<div className="mt-2">
|
|
<input
|
|
id="email"
|
|
name="email"
|
|
type="email"
|
|
autoComplete="email"
|
|
onChange={(e) => setEmail(e.target.value)}
|
|
required
|
|
className="block w-full rounded-md border-0 bg-white/5 py-1.5 text-white shadow-sm ring-1 ring-inset ring-white/10 focus:ring-2 focus:ring-inset focus:ring-indigo-500 sm:text-sm sm:leading-6"
|
|
/>
|
|
</div>
|
|
</div>
|
|
|
|
<div>
|
|
<button
|
|
type="submit"
|
|
className="flex w-full justify-center rounded-md bg-indigo-500 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-500"
|
|
>
|
|
View Document
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</>
|
|
);
|
|
}
|