File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed
Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 11NEXT_PUBLIC_NETWORK = " mainnet"
22NEXT_PUBLIC_TOURNAMENT_ENDED = " true"
3- NEXT_PUBLIC_SEASON_ACTIVE = " true "
3+ NEXT_PUBLIC_SEASON_ACTIVE = " false "
44NEXT_PUBLIC_DS_TOURNAMENT_ACTIVE = " false"
55NEXT_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"
Original file line number Diff line number Diff line change 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'll be back soon.</ p >
8+ </ div >
9+ ) ;
10+ } ;
11+
12+ export default TemporaryOutage ;
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import { BurnerManager } from "@dojoengine/create-burner";
1616import { Analytics } from "@vercel/analytics/react" ;
1717import { useEffect , useState } from "react" ;
1818import { RpcProvider } from "starknet" ;
19+ import TemporaryOutage from "./components/intro/TemporaryOutage" ;
1920import { networkConfig } from "./lib/networkConfig" ;
2021
2122type 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 /> }
You can’t perform that action at this time.
0 commit comments