Skip to content

Commit

Permalink
feat: add maintenance page
Browse files Browse the repository at this point in the history
  • Loading branch information
MartianGreed committed Dec 6, 2024
1 parent 91a5b3e commit 7a2e6c5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/arkmarket/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import Footer from "~/components/footer";
import Providers from "~/components/providers";
import UnframedFooter from "~/components/unframed-footer";
import { env } from "~/env";
import { Maintenance } from "~/components/maintenance";

export const dynamic = "force-dynamic";
export const fetchCache = "force-no-store";
Expand Down Expand Up @@ -151,7 +152,8 @@ export default function RootLayout({ children }: PropsWithChildren) {
<Providers>
<div className="flex-col md:flex">
<SiteHeader />
{children}
{/* {children} */}
<Maintenance />
<SpeedInsights />
</div>
{env.NEXT_PUBLIC_THEME === "unframed" ? (
Expand Down
10 changes: 10 additions & 0 deletions apps/arkmarket/src/components/maintenance.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export function Maintenance() {
return (
<main className="flex h-[calc(100vh-var(--site-header-height)-var(--site-footer-height))] items-center justify-center">
<h1 className="text-6xl font-semibold">
Under active maintenance
<small className="block text-sm text-muted-foreground font-mono">Team is working hard, you can reach us out on discord</small>
</h1>
</main>
)
}

0 comments on commit 7a2e6c5

Please sign in to comment.