2021-08-03 18:53:10 +00:00
|
|
|
import { useRouter } from "blitz";
|
|
|
|
|
2021-10-17 22:06:45 +00:00
|
|
|
import AppLayout from "../core/layouts/layout";
|
2021-08-03 18:53:10 +00:00
|
|
|
|
|
|
|
export default function Offline() {
|
|
|
|
const router = useRouter();
|
|
|
|
return (
|
2021-10-17 22:06:45 +00:00
|
|
|
<AppLayout title="App went offline">
|
2021-08-03 18:53:10 +00:00
|
|
|
<h2 className="mt-6 text-center text-3xl leading-9 font-extrabold text-gray-900">
|
|
|
|
Oops, looks like you went offline.
|
|
|
|
</h2>
|
|
|
|
<p className="mt-2 text-center text-lg leading-5 text-gray-600">
|
|
|
|
Once you're back online,{" "}
|
|
|
|
<button className="inline-flex space-x-2 items-center text-left" onClick={router.reload}>
|
|
|
|
<span className="transition-colors duration-150 border-b border-primary-200 hover:border-primary-500">
|
|
|
|
reload the page
|
|
|
|
</span>
|
|
|
|
</button>
|
|
|
|
</p>
|
2021-10-17 22:06:45 +00:00
|
|
|
</AppLayout>
|
2021-08-03 18:53:10 +00:00
|
|
|
);
|
|
|
|
}
|