Skip to content

Commit ac4f75d

Browse files
committed
temp outage page
1 parent ba1f063 commit ac4f75d

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

ui/.env

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
NEXT_PUBLIC_NETWORK="mainnet"
22
NEXT_PUBLIC_TOURNAMENT_ENDED="true"
3-
NEXT_PUBLIC_SEASON_ACTIVE="true"
3+
NEXT_PUBLIC_SEASON_ACTIVE="false"
44
NEXT_PUBLIC_DS_TOURNAMENT_ACTIVE="false"
55
NEXT_PUBLIC_DS_TOURNAMENT_ID=1
6-
NEXT_PUBLIC_DS_TOURNAMENT_START_TIME=1737727200
6+
NEXT_PUBLIC_DS_TOURNAMENT_START_TIME=1737727200
7+
NEXT_PUBLIC_TEMPORARY_OUTAGE="true"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
const TemporaryOutage = () => {
2+
return (
3+
<div className="absolute inset-0 flex flex-col gap-2 items-center justify-center h-screen">
4+
<h1 className="text-4xl font-bold">
5+
Survivors, we are experiencing an issue with VRF.
6+
</h1>
7+
<p className="text-lg">We&apos;ll be back soon.</p>
8+
</div>
9+
);
10+
};
11+
12+
export default TemporaryOutage;

ui/src/app/layout.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { BurnerManager } from "@dojoengine/create-burner";
1616
import { Analytics } from "@vercel/analytics/react";
1717
import { useEffect, useState } from "react";
1818
import { RpcProvider } from "starknet";
19+
import TemporaryOutage from "./components/intro/TemporaryOutage";
1920
import { networkConfig } from "./lib/networkConfig";
2021

2122
type SetupResult = {
@@ -37,6 +38,8 @@ export default function RootLayout({
3738
const [setupResult, setSetupResult] = useState<SetupResult | null>(null);
3839
const [createBurner, setCreateBurner] = useState(false);
3940

41+
const temporaryOutage = process.env.NEXT_PUBLIC_TEMPORARY_OUTAGE === "true";
42+
4043
const handleIntroComplete = () => {
4144
setIntroComplete(true);
4245
};
@@ -72,7 +75,9 @@ export default function RootLayout({
7275
<main
7376
className={`min-h-screen container mx-auto flex flex-col sm:pt-8 sm:p-8 lg:p-10 2xl:p-20 `}
7477
>
75-
{introComplete ? (
78+
{temporaryOutage ? (
79+
<TemporaryOutage />
80+
) : introComplete ? (
7681
<>
7782
<LoginIntro />
7883
{createBurner && <BurnerLoader />}

0 commit comments

Comments
 (0)