client/pages/sign-in.tsx

41 lines
1.0 KiB
TypeScript
Raw Normal View History

2022-04-24 23:12:11 +02:00
import { NextPage } from 'next'
import AuthLayout, {
AuthInput,
AuthPassword,
} from '../components/layout/authentication/AuthLayout'
import Link from '../components/common/Link'
const SignInPage: NextPage = () => {
return (
<AuthLayout>
<div className="space-y-8">
<h2 className="text-xl text-pink-300">Sign in</h2>
<div>
<form className="space-y-8">
<div className="space-y-3">
<AuthInput name="username" required>
Username
</AuthInput>
<AuthPassword name="password" required>
Password
</AuthPassword>
</div>
<button
type="submit"
className="w-full py-2 px-4 rounded bg-pink-300 text-white font-bold"
>
Ok
</button>
</form>
</div>
<Link page="/sign-up" className="text-center block text-gray-600">
Sign up instead?
</Link>
</div>
</AuthLayout>
)
}
export default SignInPage