-
Notifications
You must be signed in to change notification settings - Fork 451
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(app): add maintenance page and config (#1342)
* feat(app): add maintenance mode page and config * feat(app): remove /maintenance route * feat(app): adding more instructions in the app/.env-example for NEXT_PUBLIC_MAINTENANCE_MODE_ON --------- Co-authored-by: Gerald Iakobinyi-Pich <nutrina9@gmail.com>
- Loading branch information
Showing
6 changed files
with
100 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* eslint-disable react-hooks/exhaustive-deps, @next/next/no-img-element */ | ||
// --- React Methods | ||
import React from "react"; | ||
|
||
// --- Components | ||
import PageRoot from "../components/PageRoot"; | ||
import MinimalHeader from "../components/MinimalHeader"; | ||
import PageWidthGrid, { PAGE_PADDING } from "../components/PageWidthGrid"; | ||
import HeaderContentFooterGrid from "../components/HeaderContentFooterGrid"; | ||
import BodyWrapper from "../components/BodyWrapper"; | ||
|
||
const Footer = () => ( | ||
<> | ||
<div className="h-20 lg:hidden" /> | ||
<div className="hidden h-[360px] bg-[url(/assets/backgroundRock.png)] bg-contain bg-top bg-no-repeat lg:block" /> | ||
</> | ||
); | ||
|
||
export default function Maintenance() { | ||
return ( | ||
<PageRoot className="text-color-2"> | ||
<HeaderContentFooterGrid> | ||
<div className={`${PAGE_PADDING} bg-background`}> | ||
<MinimalHeader className={`border-b border-accent-2`} /> | ||
</div> | ||
<BodyWrapper className="mt-8 self-center"> | ||
<PageWidthGrid> | ||
<div className="col-span-4 flex flex-col items-center text-center md:col-start-2 lg:col-start-3 xl:col-span-6 xl:col-start-4"> | ||
<img src="/assets/gitcoinLogoType.svg" alt="Gitcoin Logo" /> | ||
<img src="/assets/passportLandingPageLogo.svg" alt="Passport Logo" className="pt-6" /> | ||
<div className="py-4 font-heading text-2xl text-color-3">Sorry, we're down for maintenance.</div> | ||
<div className="text-base"> | ||
Gitcoin Passport is currently down for scheduled maintenance. Please check back again as we will be back | ||
up shortly. For more information, check{" "} | ||
<a | ||
className="text-accent-3 hover:underline" | ||
href="https://twitter.com/gitcoinpassport" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
@GitcoinPassport | ||
</a>{" "} | ||
for updates. | ||
</div> | ||
</div> | ||
</PageWidthGrid> | ||
</BodyWrapper> | ||
<Footer /> | ||
</HeaderContentFooterGrid> | ||
</PageRoot> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters