Updated layout (#450)

* Updated layout

* Fixed error

* Changed integration background to white
This commit is contained in:
Daniel C authored and GitHub committed 2024-07-26 09:39:18 -07:00
1 parent 0339922db8
commit 40a268ab18
54 files changed
+441 -773

No files matched your search

+30 -31
View File
@@ -11,6 +11,7 @@ import OpenInNewPage from "../../assets/icons/open-in-new-page.svg?react";
import BasicTable from "../../Components/BasicTable";
import { StatusLabel } from "../../Components/Label";
import ResponseTimeChart from "../../Components/Charts/ResponseTimeChart";
import { Box, Stack, Typography } from "@mui/material";
/**
* Host component.
@@ -124,49 +125,47 @@ const Monitors = () => {
});
return (
<div
className="monitors"
style={{
padding: `${theme.content.pY} ${theme.content.pX}`,
backgroundColor: "var(--env-var-color-30)",
}}
>
<div className="monitors-bar">
<div className="monitors-bar-title">
<Stack className="monitors" gap={theme.gap.large}>
<Stack direction="row" justifyContent="space-between" alignItems="center">
<Typography component="h1">
Hello, {authState.user.firstName}
</div>
</Typography>
<Button
level="primary"
label="Create new monitor"
onClick={() => {
navigate("/monitors/create");
}}
sx={{ padding: "6px 25px", fontSize: "13px" }}
/>
</div>
<div className="monitors-stats">
</Stack>
<Stack
gap={theme.gap.large}
direction="row"
justifyContent="space-between"
>
<ServerStatus title="Up" value={up} state="up" />
<ServerStatus title="Down" value={down} state="down" />
<ServerStatus title="Paused" value={0} state="pause" />
</div>
<div className="current-monitors">
<div className="current-monitors-bar">
<div className="current-monitors-title-holder">
<div className="current-monitors-title">Current monitors</div>
<div className="current-monitors-counter">
{monitorState.monitors.length}
</div>
</div>
<div className="current-monitors-search-bar">
{/* TODO - add search bar */}
</div>
</div>
<div className="monitors-v-gaping" />
</Stack>
<Stack
gap={theme.gap.large}
p={theme.gap.xl}
sx={{
border: `solid 1px ${theme.palette.otherColors.graishWhite}`,
borderRadius: `${theme.shape.borderRadius}px`,
backgroundColor: theme.palette.otherColors.white,
}}
>
<Stack direction="row" alignItems="center">
<Typography component="h2">Current monitors</Typography>
<Box className="current-monitors-counter">
{monitorState.monitors.length}
</Box>
{/* TODO - add search bar */}
</Stack>
<BasicTable data={data} paginated={true} />
</div>
</div>
</Stack>
</Stack>
);
};