mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-21 21:06:20 +02:00
First public commit
This commit is contained in:
commit
e05cd62e53
228 changed files with 17717 additions and 0 deletions
31
pages/maintenance.tsx
Normal file
31
pages/maintenance.tsx
Normal file
|
@ -0,0 +1,31 @@
|
|||
import { GetStaticProps, NextPage } from "next";
|
||||
|
||||
import Logo from "../public/logo.svg";
|
||||
import { isInMaintenanceMode } from "../utils/constants";
|
||||
|
||||
const Maintenance: NextPage = () => {
|
||||
return (
|
||||
<div className="h-full bg-gray-100 flex flex-col justify-center items-center">
|
||||
<div className="bg-white text-center p-8 rounded-lg border shadow-sm w-96">
|
||||
<Logo className="h-8 inline-block text-indigo-500 mb-4" />
|
||||
<div className="">
|
||||
The site is currently under maintenance and will be back shortly…
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export const getStaticProps: GetStaticProps = () => {
|
||||
if (isInMaintenanceMode) {
|
||||
return {
|
||||
redirect: {
|
||||
destination: "/",
|
||||
permanent: true,
|
||||
},
|
||||
};
|
||||
}
|
||||
return { props: {} };
|
||||
};
|
||||
|
||||
export default Maintenance;
|
Loading…
Add table
Add a link
Reference in a new issue