diff --git a/app/page.tsx b/app/page.tsx index f22f5c9..3c505f2 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,9 +1,13 @@ import Search from "@/components/Search"; import DataTable from "./DataTable"; import { SettingsProvider } from "@/context/settings"; +import MaintananceContent from "@/components/maintanance/maintanance"; export default async function Home() { + if (process.env.NEXT_PUBLIC_MAINTANANCE == String(true)) + return + return (
diff --git a/components/cardContainer.tsx b/components/cardContainer.tsx new file mode 100644 index 0000000..f097550 --- /dev/null +++ b/components/cardContainer.tsx @@ -0,0 +1,10 @@ +export default function CardContainer(props:any) { + return (
+
+
+
+ {props.children} +
+
+
); +} \ No newline at end of file diff --git a/components/icons/spinIcon.tsx b/components/icons/spinIcon.tsx new file mode 100644 index 0000000..809ad35 --- /dev/null +++ b/components/icons/spinIcon.tsx @@ -0,0 +1,10 @@ +import * as React from 'react' +const SpinIcon = (props:any) => ( + + + + +) + +export default SpinIcon; + diff --git a/components/maintanance/maintanance.tsx b/components/maintanance/maintanance.tsx new file mode 100644 index 0000000..166bd68 --- /dev/null +++ b/components/maintanance/maintanance.tsx @@ -0,0 +1,26 @@ +import LayerswapExplorerLogo from "../icons/layerswapExplorer"; +import CardContainer from "../cardContainer"; + +function MaintananceContent(props: any) { + + return ( +
+ + +
+

+

+ We're upgrading our systems and infrastructure to give you the best experience yet. +

+ We'll be back at 15:00 UTC +

+ Any pending swaps will be completed after maintenance. +

+

+
+
+
+ ); +} + +export default MaintananceContent;