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> </Stack>
<Stack direction="row" gap={theme.spacing(8)} maxWidth={712}> <Stack direction="row" gap={theme.spacing(8)}>
<StatBox> <StatBox
<Typography component="h2">up for</Typography> 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> <Typography>
{splitDuration(monitor?.uptimeDuration)} {splitDuration(monitor?.uptimeDuration)}
</Typography> </Typography>
@@ -448,7 +462,7 @@ const DetailsPage = ({ isAdmin }) => {
<AverageResponseIcon /> <AverageResponseIcon />
</IconBox> </IconBox>
<Typography component="h2"> <Typography component="h2">
Average response time Average Response Time
</Typography> </Typography>
</Stack> </Stack>
</ChartBox> </ChartBox>
+1 -1
View File
@@ -64,7 +64,7 @@ export const IconBox = styled(Box)(({ theme }) => ({
export const StatBox = styled(Box)(({ theme }) => ({ export const StatBox = styled(Box)(({ theme }) => ({
padding: `${theme.spacing(4)} ${theme.spacing(8)}`, padding: `${theme.spacing(4)} ${theme.spacing(8)}`,
minWidth: 200, minWidth: 200,
flex: 1, width: 225,
border: 1, border: 1,
borderStyle: "solid", borderStyle: "solid",
borderColor: theme.palette.border.light, borderColor: theme.palette.border.light,
+6 -6
View File
@@ -39,22 +39,22 @@ const darkTheme = createTheme({
success: { success: {
text: "#079455", text: "#079455",
main: "#45bb7a", main: "#45bb7a",
light: "#1e1e1e", light: "#1c4428",
bg: "#27272a", bg: "#12261e",
}, },
error: { error: {
text: "#f04438", text: "#f04438",
main: "#d32f2f", main: "#d32f2f",
light: "#1e1e1e", light: "#542426",
bg: "#27272a", bg: "#301a1f",
dark: "#932020", dark: "#932020",
border: "#f04438", border: "#f04438",
}, },
warning: { warning: {
text: "#e88c30", text: "#e88c30",
main: "#FF9F00", main: "#FF9F00",
light: "#27272a", light: "#272115",
bg: "#1E1E1E", bg: "#624711",
border: "#e88c30", border: "#e88c30",
}, },
unresolved: { main: "#4e5ba6", light: "#e2eaf7", bg: "#f2f4f7" }, unresolved: { main: "#4e5ba6", light: "#e2eaf7", bg: "#f2f4f7" },