Added fallback component to maintenance page
This commit is contained in:
1 parent
baaae40ba2
commit
f28e19c53e
3 files changed
+25
-31
No files matched your search
@@ -1,5 +1,5 @@
|
|||||||
[class*="fallback__"] {
|
[class*="fallback__"] {
|
||||||
width: 255px;
|
width: fit-content;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
margin-top: 100px;
|
margin-top: 100px;
|
||||||
}
|
}
|
||||||
@@ -18,6 +18,11 @@
|
|||||||
[class*="fallback__"] button.MuiButtonBase-root {
|
[class*="fallback__"] button.MuiButtonBase-root {
|
||||||
height: 34px;
|
height: 34px;
|
||||||
}
|
}
|
||||||
[class*="fallback__"] .check span.MuiTypography-root {
|
[class*="fallback__"] .check span.MuiTypography-root,
|
||||||
|
[class*="fallback__"] button.MuiButtonBase-root {
|
||||||
font-size: var(--env-var-font-size-medium);
|
font-size: var(--env-var-font-size-medium);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fallback__status > .MuiStack-root {
|
||||||
|
margin-left: var(--env-var-spacing-2);
|
||||||
|
}
|
||||||
@@ -25,6 +25,7 @@ const Fallback = ({ title, checks, link = "/" }) => {
|
|||||||
return (
|
return (
|
||||||
<Stack
|
<Stack
|
||||||
className={`fallback__${title.trim().split(" ")[0]}`}
|
className={`fallback__${title.trim().split(" ")[0]}`}
|
||||||
|
alignItems="center"
|
||||||
gap={theme.gap.xl}
|
gap={theme.gap.xl}
|
||||||
>
|
>
|
||||||
<Skeleton />
|
<Skeleton />
|
||||||
|
|||||||
@@ -1,37 +1,25 @@
|
|||||||
import React from "react";
|
import { useTheme } from "@emotion/react";
|
||||||
|
import Fallback from "../../Components/Fallback";
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
import WindowFrame from "./../../assets/Images/maintenance_window_frame.svg";
|
|
||||||
import { Button } from "@mui/material";
|
|
||||||
import CheckCircleOutlineIcon from "@mui/icons-material/CheckCircleOutline";
|
|
||||||
|
|
||||||
const Maintenance = () => {
|
const Maintenance = () => {
|
||||||
const maintenanceItems = [
|
const theme = useTheme();
|
||||||
{ id: 1, text: "Mark your maintenance periods" },
|
|
||||||
{ id: 2, text: "Eliminate any misunderstandings" },
|
|
||||||
{ id: 3, text: "Stop sending alerts in maintenance windows" },
|
|
||||||
];
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="maintenance-checklist-main">
|
<div
|
||||||
<img className="maintenance-image" src={WindowFrame} alt="WindowFrame" />
|
className="maintenance"
|
||||||
<div className="maintenance-title">Create a maintenance window to</div>
|
style={{
|
||||||
<div>
|
padding: `${theme.content.pY} ${theme.content.pX}`,
|
||||||
{maintenanceItems.map((item) => (
|
}}
|
||||||
<div key={item.id} className="checklist-item">
|
>
|
||||||
<CheckCircleOutlineIcon color="primary" />
|
<Fallback
|
||||||
<div className="checklist-item-text">{item.text}</div>
|
title="maintenance window"
|
||||||
</div>
|
checks={[
|
||||||
))}
|
"Mark your maintenance periods",
|
||||||
</div>
|
"Eliminate any misunderstandings",
|
||||||
|
"Stop sending alerts in maintenance windows",
|
||||||
<Button
|
]}
|
||||||
variant="contained"
|
/>
|
||||||
color="primary"
|
|
||||||
className="maintenance-checklist-button"
|
|
||||||
sx={{ textTransform: "none" }}
|
|
||||||
>
|
|
||||||
Let's create your maintenance window
|
|
||||||
</Button>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user