Created
January 16, 2023 03:45
-
-
Save dipeshhkc/628502dc3a4e0a97fd77b4d526396d53 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Form } from '@remix-run/react'; | |
export default function Index() { | |
return ( | |
<div className="flex min-h-full flex-col justify-center py-12 sm:px-6 lg:px-8"> | |
<h2 className="mt-6 text-center text-3xl font-bold tracking-tight text-gray-900"> | |
Sign in to your account | |
</h2> | |
<div className="mt-8 sm:mx-auto sm:w-full sm:max-w-md"> | |
<Form | |
action="/dashboard" | |
className="bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10" | |
> | |
<div> | |
<label | |
htmlFor="email" | |
className="block text-sm font-medium text-gray-700" | |
> | |
Email address | |
</label> | |
<div className="mt-1"> | |
<input | |
id="email" | |
name="email" | |
type="email" | |
autoComplete="email" | |
required | |
className="block mb-2 w-full appearance-none rounded-md border border-gray-300 px-3 py-2 placeholder-gray-400 shadow-sm focus:border-indigo-500 focus:outline-none focus:ring-indigo-500 sm:text-sm" | |
/> | |
</div> | |
</div> | |
<div> | |
<button | |
type="submit" | |
className="flex w-full justify-center rounded-md border border-transparent bg-indigo-600 py-2 px-4 text-sm font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2" | |
> | |
Sign in | |
</button> | |
</div> | |
</Form> | |
</div> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment