Skip to content

Commit

Permalink
maintenance mode
Browse files Browse the repository at this point in the history
  • Loading branch information
berekuk committed Mar 19, 2024
1 parent 6788723 commit f1c3162
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 10 additions & 0 deletions src/components/layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ export const AppLayout: FC<Props> = ({
>
<ModalContainer />
{!embed && <Header isFluid={isFluid} isBare={simpleHeader} />}
{process.env.NEXT_PUBLIC_PLANNED_MAINTENANCE && (
<div className="bg-purple-2 p-2 text-sm text-white">
<div className="container mx-auto">
Guesstimate will be down for maintenance in the next few hours.
<br />
Loading models should work for most of that period, but editing
will be unavailable for a short time.
</div>
</div>
)}
<Main isFluid={isFluid} backgroundColor={backgroundColor}>
{children}
</Main>
Expand Down
2 changes: 0 additions & 2 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ const MyApp = ({ Component }: AppProps) => {
store = configureStore();
}

// titleTemplate="%s | Guesstimate"

return (
<>
<Script id="elev">{`var _elev = window._elev || {};(function() {
Expand Down

0 comments on commit f1c3162

Please sign in to comment.