Issue 225: update maintenance checklist component structure
This commit is contained in:
1 parent
5cd7e362e9
commit
7d27a72f62
2 files changed
+54
-48
No files matched your search
@@ -1,13 +1,33 @@
|
|||||||
.maintenance-checklist-card {
|
.maintenance-checklist-main {
|
||||||
max-width: 314;
|
max-width: 350px;
|
||||||
|
min-height: 390px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
padding: 2;
|
padding: 5px;
|
||||||
box-shadow: 3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.maintenance-checklist-box {
|
.maintenance-image {
|
||||||
height: 100;
|
width: 280px;
|
||||||
background-color: grey;
|
height: 150px;
|
||||||
border-radius: 1px;
|
background-color: whitesmoke;
|
||||||
margin-bottom: 2px;
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.maintenance-title {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-top: 40px;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.checklist-item {
|
||||||
|
display: flex;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.checklist-item-text {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.maintenance-checklist-main .maintenance-checklist-button {
|
||||||
|
margin-top: 30px;
|
||||||
}
|
}
|
||||||
@@ -1,51 +1,37 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import "./index.css";
|
import "./index.css";
|
||||||
import {
|
import { Button } from "@mui/material";
|
||||||
Card,
|
|
||||||
CardContent,
|
|
||||||
Box,
|
|
||||||
Typography,
|
|
||||||
Button,
|
|
||||||
List,
|
|
||||||
ListItem,
|
|
||||||
ListItemIcon,
|
|
||||||
ListItemText,
|
|
||||||
} from "@mui/material";
|
|
||||||
import CheckCircleOutlineIcon from "@mui/icons-material/CheckCircleOutline";
|
import CheckCircleOutlineIcon from "@mui/icons-material/CheckCircleOutline";
|
||||||
|
|
||||||
const Incidents = () => {
|
const Incidents = () => {
|
||||||
const maintenanceItems = [
|
const maintenanceItems = [
|
||||||
"Mark your maintenance periods",
|
{ id: 1, text: "Mark your maintenance periods" },
|
||||||
"Eliminate any misunderstandings",
|
{ id: 2, text: "Eliminate any misunderstandings" },
|
||||||
"Stop sending alerts in maintenance windows",
|
{ id: 3, text: "Stop sending alerts in maintenance windows" },
|
||||||
];
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Card>
|
<div className="maintenance-checklist-main">
|
||||||
<CardContent>
|
<div className="maintenance-image"></div>
|
||||||
<Box />
|
<div className="maintenance-title">Create a maintenance window to</div>
|
||||||
<Typography>Create a maintenance window to</Typography>
|
<div>
|
||||||
<List>
|
{maintenanceItems.map((item) => (
|
||||||
{maintenanceItems.map((item, index) => {
|
<div key={item.id} className="checklist-item">
|
||||||
<ListItem key={index}>
|
<CheckCircleOutlineIcon color="primary" />
|
||||||
<ListItemIcon>
|
<div className="checklist-item-text">{item.text}</div>
|
||||||
<CheckCircleOutlineIcon color="primary" />
|
</div>
|
||||||
</ListItemIcon>
|
))}
|
||||||
<ListItemText primary={item} />
|
</div>
|
||||||
</ListItem>;
|
|
||||||
})}
|
<Button
|
||||||
</List>
|
variant="contained"
|
||||||
</CardContent>
|
color="primary"
|
||||||
<Box>
|
className="maintenance-checklist-button"
|
||||||
<Button
|
sx={{ textTransform: "none" }}
|
||||||
variant="contained"
|
>
|
||||||
color="primary"
|
Let's create your maintenance window
|
||||||
sx={{ textTransform: "none" }}
|
</Button>
|
||||||
>
|
</div>
|
||||||
Let's create your maintenance window
|
|
||||||
</Button>
|
|
||||||
</Box>
|
|
||||||
</Card>
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user