Skip to content

Commit 7a2e6c5

Browse files
committed
feat: add maintenance page
1 parent 91a5b3e commit 7a2e6c5

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

apps/arkmarket/src/app/layout.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import Footer from "~/components/footer";
1919
import Providers from "~/components/providers";
2020
import UnframedFooter from "~/components/unframed-footer";
2121
import { env } from "~/env";
22+
import { Maintenance } from "~/components/maintenance";
2223

2324
export const dynamic = "force-dynamic";
2425
export const fetchCache = "force-no-store";
@@ -151,7 +152,8 @@ export default function RootLayout({ children }: PropsWithChildren) {
151152
<Providers>
152153
<div className="flex-col md:flex">
153154
<SiteHeader />
154-
{children}
155+
{/* {children} */}
156+
<Maintenance />
155157
<SpeedInsights />
156158
</div>
157159
{env.NEXT_PUBLIC_THEME === "unframed" ? (
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export function Maintenance() {
2+
return (
3+
<main className="flex h-[calc(100vh-var(--site-header-height)-var(--site-footer-height))] items-center justify-center">
4+
<h1 className="text-6xl font-semibold">
5+
Under active maintenance
6+
<small className="block text-sm text-muted-foreground font-mono">Team is working hard, you can reach us out on discord</small>
7+
</h1>
8+
</main>
9+
)
10+
}

0 commit comments

Comments
 (0)