diff --git a/dashboard/src/states/Error/Error.jsx b/dashboard/src/states/Error/Error.jsx new file mode 100644 index 0000000..d95dfe4 --- /dev/null +++ b/dashboard/src/states/Error/Error.jsx @@ -0,0 +1,22 @@ +import {Stack, Typography, useMediaQuery, useTheme} from "@mui/material"; +import ServerDown from "@/common/assets/images/error/server_down.svg"; + +export const Error = () => { + const theme = useTheme(); + const isMobile = useMediaQuery(theme.breakpoints.down("lg")); + + return ( + + + Oh no.. + The backend is currently not reachable. + + + This page will reload automatically once the backend is reachable again. + + + + {!isMobile && Server down} + + ) +} \ No newline at end of file diff --git a/dashboard/src/states/Error/index.js b/dashboard/src/states/Error/index.js new file mode 100644 index 0000000..ec75d25 --- /dev/null +++ b/dashboard/src/states/Error/index.js @@ -0,0 +1 @@ +export {Error as default} from "./Error.jsx"; \ No newline at end of file