add basic login page
This commit is contained in:
parent
6cef945bdf
commit
f42febb7b3
@ -143,7 +143,7 @@ const Footer: NextPage = () => {
|
|||||||
<section>
|
<section>
|
||||||
<Link
|
<Link
|
||||||
className="text-sm text-neutral-300 hover:underline"
|
className="text-sm text-neutral-300 hover:underline"
|
||||||
href="/"
|
href="/admin/login"
|
||||||
>
|
>
|
||||||
Site Admin Login
|
Site Admin Login
|
||||||
</Link>
|
</Link>
|
||||||
|
53
src/pages/admin/login.tsx
Normal file
53
src/pages/admin/login.tsx
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
import { ArrowUpRightIcon } from "@heroicons/react/24/solid";
|
||||||
|
import Footer from "~/components/Footer";
|
||||||
|
import Header from "~/components/Header";
|
||||||
|
import { TopLabel } from "~/components/Labels";
|
||||||
|
|
||||||
|
const SignInForm = () => {
|
||||||
|
return (
|
||||||
|
<div className="mx-auto max-w-lg overflow-hidden rounded-xl border border-neutral-400 bg-neutral-200 drop-shadow">
|
||||||
|
<TopLabel>
|
||||||
|
<h1 className="text-md font-bold text-gray-300">Admin Login</h1>
|
||||||
|
</TopLabel>
|
||||||
|
<form id="admin-login">
|
||||||
|
<div className="space-y-4 p-4">
|
||||||
|
{/** Username section */}
|
||||||
|
<section className="flex flex-col space-y-2">
|
||||||
|
<label className="text-md font-semibold">Username:</label>
|
||||||
|
<input className="rounded-md p-2" type="text" />
|
||||||
|
</section>
|
||||||
|
|
||||||
|
{/** Password section */}
|
||||||
|
<section className="flex flex-col space-y-2">
|
||||||
|
<label className="text-md font-semibold">Password:</label>
|
||||||
|
<input className="rounded-md p-2" type="text" />
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<button
|
||||||
|
type="submit"
|
||||||
|
className="mx-auto inline-block flex w-fit flex-row rounded-md border border-neutral-900 bg-yellow-200 px-4 py-2 align-middle font-semibold shadow-md shadow-black/50 duration-200 ease-out hover:bg-yellow-300 hover:shadow-md"
|
||||||
|
>
|
||||||
|
sign in
|
||||||
|
<ArrowUpRightIcon className="ml-2 inline-block w-4 align-middle" />
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
const AdminLogin = () => {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Header />
|
||||||
|
<div className="my-16">
|
||||||
|
<SignInForm />
|
||||||
|
</div>
|
||||||
|
<Footer />
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default AdminLogin;
|
Loading…
x
Reference in New Issue
Block a user