mirror of
https://github.com/Xevion/bus-reminder.git
synced 2025-12-06 01:14:30 -06:00
Remove small shadow on login, increase padding for mobile views
This commit is contained in:
@@ -12,7 +12,7 @@ const LoginPage: NextPage = () => {
|
|||||||
|
|
||||||
async function onSubmit(data: FormProps) {
|
async function onSubmit(data: FormProps) {
|
||||||
const response = await fetch(`/api/check?key=${data.token}`);
|
const response = await fetch(`/api/check?key=${data.token}`);
|
||||||
|
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
setError(false);
|
setError(false);
|
||||||
router.push({ pathname: '/', query: { key: data.token } }).then();
|
router.push({ pathname: '/', query: { key: data.token } }).then();
|
||||||
@@ -21,8 +21,8 @@ const LoginPage: NextPage = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout>
|
<Layout>
|
||||||
<div className="mt-8 sm:mx-auto sm:w-full sm:max-w-md">
|
<div className="mt-8 sm:mx-auto sm:w-full sm:max-w-md mx-4">
|
||||||
<div className="bg-black/ py-8 px-4 shadow sm:rounded-lg sm:px-10">
|
<div className="bg-black/ py-8 px-4 sm:rounded-lg sm:px-10">
|
||||||
<form className="space-y-6" onSubmit={handleSubmit(onSubmit)}>
|
<form className="space-y-6" onSubmit={handleSubmit(onSubmit)}>
|
||||||
<div>
|
<div>
|
||||||
<label
|
<label
|
||||||
|
|||||||
Reference in New Issue
Block a user