2021-08-02 20:51:57 +00:00
|
|
|
import { useRouter } from "next/router";
|
|
|
|
import { XIcon } from "@heroicons/react/outline";
|
2021-08-27 12:35:20 +00:00
|
|
|
import { HeadSeo } from "@components/seo/head-seo";
|
2021-08-02 20:51:57 +00:00
|
|
|
import Link from "next/link";
|
2021-03-29 21:01:12 +00:00
|
|
|
|
|
|
|
export default function Error() {
|
2021-08-02 20:51:57 +00:00
|
|
|
const router = useRouter();
|
|
|
|
const { error } = router.query;
|
2021-03-29 21:01:12 +00:00
|
|
|
|
2021-08-02 20:51:57 +00:00
|
|
|
return (
|
|
|
|
<div
|
2021-08-08 19:21:33 +00:00
|
|
|
className="fixed z-50 inset-0 overflow-y-auto"
|
2021-08-02 20:51:57 +00:00
|
|
|
aria-labelledby="modal-title"
|
|
|
|
role="dialog"
|
|
|
|
aria-modal="true">
|
2021-08-27 12:35:20 +00:00
|
|
|
<HeadSeo title="Error" description="Error" />
|
2021-08-02 20:51:57 +00:00
|
|
|
<div className="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
|
|
|
|
<span className="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">
|
|
|
|
​
|
|
|
|
</span>
|
|
|
|
<div className="inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-sm sm:w-full sm:p-6">
|
|
|
|
<div>
|
|
|
|
<div className="mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-red-100">
|
|
|
|
<XIcon className="h-6 w-6 text-red-600" />
|
2021-03-29 21:01:12 +00:00
|
|
|
</div>
|
2021-08-02 20:51:57 +00:00
|
|
|
<div className="mt-3 text-center sm:mt-5">
|
|
|
|
<h3 className="text-lg leading-6 font-medium text-gray-900" id="modal-title">
|
|
|
|
{error}
|
|
|
|
</h3>
|
|
|
|
<div className="mt-2">
|
|
|
|
<p className="text-sm text-gray-500">
|
|
|
|
An error occurred when logging you in. Head back to the login screen and try again.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className="mt-5 sm:mt-6">
|
|
|
|
<Link href="/auth/login">
|
|
|
|
<a className="inline-flex justify-center w-full rounded-sm border border-transparent shadow-sm px-4 py-2 bg-neutral-900 text-base font-medium text-white hover:bg-neutral-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-neutral-500 sm:text-sm">
|
|
|
|
Go back to the login page
|
|
|
|
</a>
|
|
|
|
</Link>
|
|
|
|
</div>
|
2021-03-29 21:01:12 +00:00
|
|
|
</div>
|
2021-08-02 20:51:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
2021-07-30 23:05:38 +00:00
|
|
|
}
|