Updated color values

This commit is contained in:
Daniel Cojocea committed 2024-09-02 20:43:27 -04:00
1 parent 9ae8c93cb0
commit f1fbbe2e3a
3 files changed
+25 -11

No files matched your search

+18 -4
View File
@@ -346,9 +346,23 @@ const DetailsPage = ({ isAdmin }) => {
)}
</Stack>
</Stack>
<Stack direction="row" gap={theme.spacing(8)} maxWidth={712}>
<StatBox>
<Typography component="h2">up for</Typography>
<Stack direction="row" gap={theme.spacing(8)}>
<StatBox
sx={
monitor?.status
? {
backgroundColor: theme.palette.success.bg,
borderColor: theme.palette.success.light,
"& h2": { color: theme.palette.success.main },
}
: {
backgroundColor: theme.palette.error.bg,
borderColor: theme.palette.error.light,
"& h2": { color: theme.palette.error.main },
}
}
>
<Typography component="h2">active for</Typography>
<Typography>
{splitDuration(monitor?.uptimeDuration)}
</Typography>
@@ -448,7 +462,7 @@ const DetailsPage = ({ isAdmin }) => {
<AverageResponseIcon />
</IconBox>
<Typography component="h2">
Average response time
Average Response Time
</Typography>
</Stack>
</ChartBox>
+1 -1
View File
@@ -64,7 +64,7 @@ export const IconBox = styled(Box)(({ theme }) => ({
export const StatBox = styled(Box)(({ theme }) => ({
padding: `${theme.spacing(4)} ${theme.spacing(8)}`,
minWidth: 200,
flex: 1,
width: 225,
border: 1,
borderStyle: "solid",
borderColor: theme.palette.border.light,