From 593e35c847ef10a51fc31d0ac7cc5963c8e74465 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sun, 30 Jul 2023 19:05:00 +0200 Subject: [PATCH] Created the Error.jsx state --- src/states/Error/Error.jsx | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/states/Error/Error.jsx diff --git a/src/states/Error/Error.jsx b/src/states/Error/Error.jsx new file mode 100644 index 0000000..8be32c0 --- /dev/null +++ b/src/states/Error/Error.jsx @@ -0,0 +1,28 @@ +import {Box, Button, Stack, Typography, useMediaQuery, useTheme} from "@mui/material"; +import ServerDown from "@/common/assets/images/error/server_down.svg"; +import {OpenInNew} from "@mui/icons-material"; + +export const Error = () => { + const theme = useTheme(); + const isMobile = useMediaQuery(theme.breakpoints.down("lg")); + + return ( + + + Oh nein.. + Unser Backend ist derzeit nicht erreichbar. + + + Die Seite wird automatisch neu geladen, sobald das Backend wieder erreichbar ist. + + + + + + + + {!isMobile && Imprint} + + ) +} \ No newline at end of file