|
|
@ -60,18 +60,18 @@ export default function ForgotPasswordForm() { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<form class="mx-auto max-w-md" onSubmit={handleSubmit}> |
|
|
|
<form className="mx-auto max-w-md" onSubmit={handleSubmit}> |
|
|
|
<h2 class="text-3xl font-bold sm:text-center sm:text-4xl"> |
|
|
|
<h2 className="text-3xl font-bold sm:text-center sm:text-4xl"> |
|
|
|
Forgot password? |
|
|
|
Forgot password? |
|
|
|
</h2> |
|
|
|
</h2> |
|
|
|
<p class="mt-2 mb-6 sm:text-center"> |
|
|
|
<p className="mt-2 mb-6 sm:text-center"> |
|
|
|
Enter the email address associated with your account, and we'll email |
|
|
|
Enter the email address associated with your account, and we'll email |
|
|
|
you a link to reset your password. |
|
|
|
you a link to reset your password. |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
|
|
|
|
|
|
|
|
<label |
|
|
|
<label |
|
|
|
for="email" |
|
|
|
for="email" |
|
|
|
class='text-sm leading-none text-slate-500 after:text-red-400 after:content-["*"]' |
|
|
|
className='text-sm leading-none text-slate-500 after:text-red-400 after:content-["*"]' |
|
|
|
> |
|
|
|
> |
|
|
|
Email |
|
|
|
Email |
|
|
|
</label> |
|
|
|
</label> |
|
|
@ -79,7 +79,7 @@ export default function ForgotPasswordForm() { |
|
|
|
type="email" |
|
|
|
type="email" |
|
|
|
name="email" |
|
|
|
name="email" |
|
|
|
id="email" |
|
|
|
id="email" |
|
|
|
class="mt-2 block w-full appearance-none rounded-lg border border-gray-300 px-3 py-2 shadow-sm outline-none transition duration-150 ease-in-out placeholder:text-gray-400 focus:ring-2 focus:ring-black focus:ring-offset-1" |
|
|
|
className="mt-2 block w-full appearance-none rounded-lg border border-gray-300 px-3 py-2 shadow-sm outline-none transition duration-150 ease-in-out placeholder:text-gray-400 focus:ring-2 focus:ring-black focus:ring-offset-1" |
|
|
|
required |
|
|
|
required |
|
|
|
placeholder="arik@roadmap.sh" |
|
|
|
placeholder="arik@roadmap.sh" |
|
|
|
value={email} |
|
|
|
value={email} |
|
|
@ -88,7 +88,7 @@ export default function ForgotPasswordForm() { |
|
|
|
|
|
|
|
|
|
|
|
{message && ( |
|
|
|
{message && ( |
|
|
|
<div |
|
|
|
<div |
|
|
|
class={`mt-2 rounded-lg p-2 ${ |
|
|
|
className={`mt-2 rounded-lg p-2 ${ |
|
|
|
message.type === 'error' |
|
|
|
message.type === 'error' |
|
|
|
? 'bg-red-100 text-red-700' |
|
|
|
? 'bg-red-100 text-red-700' |
|
|
|
: message.type === 'success' |
|
|
|
: message.type === 'success' |
|
|
@ -102,24 +102,24 @@ export default function ForgotPasswordForm() { |
|
|
|
|
|
|
|
|
|
|
|
<button |
|
|
|
<button |
|
|
|
type="submit" |
|
|
|
type="submit" |
|
|
|
class="mt-2 inline-flex h-10 w-full items-center justify-center rounded-lg border border-slate-300 bg-black p-2 px-4 text-sm font-medium text-white outline-none transition duration-150 ease-in-out focus:ring-2 focus:ring-black focus:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-60" |
|
|
|
className="mt-2 inline-flex h-10 w-full items-center justify-center rounded-lg border border-slate-300 bg-black p-2 px-4 text-sm font-medium text-white outline-none transition duration-150 ease-in-out focus:ring-2 focus:ring-black focus:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-60" |
|
|
|
> |
|
|
|
> |
|
|
|
{isLoading ? ( |
|
|
|
{isLoading ? ( |
|
|
|
<svg |
|
|
|
<svg |
|
|
|
class={`h-5 w-5 animate-spin text-white`} |
|
|
|
className={`h-5 w-5 animate-spin text-white`} |
|
|
|
xmlns="http://www.w3.org/2000/svg" |
|
|
|
xmlns="http://www.w3.org/2000/svg" |
|
|
|
fill="none" |
|
|
|
fill="none" |
|
|
|
viewBox="0 0 24 24" |
|
|
|
viewBox="0 0 24 24" |
|
|
|
> |
|
|
|
> |
|
|
|
<circle |
|
|
|
<circle |
|
|
|
class="stroke-[4px] opacity-25" |
|
|
|
className="stroke-[4px] opacity-25" |
|
|
|
cx="12" |
|
|
|
cx="12" |
|
|
|
cy="12" |
|
|
|
cy="12" |
|
|
|
r="10" |
|
|
|
r="10" |
|
|
|
stroke="currentColor" |
|
|
|
stroke="currentColor" |
|
|
|
></circle> |
|
|
|
></circle> |
|
|
|
<path |
|
|
|
<path |
|
|
|
class="opacity-75" |
|
|
|
className="opacity-75" |
|
|
|
fill="currentColor" |
|
|
|
fill="currentColor" |
|
|
|
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" |
|
|
|
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" |
|
|
|
></path> |
|
|
|
></path> |
|
|
|