status box update and res card update

This commit is contained in:
Alex Holliday committed 2025-12-08 21:25:33 +00:00
1 parent 8274eb2ec9
commit 4525f8035b
2 files changed
+14 -3

No files matched your search

@@ -26,7 +26,14 @@ export const ResolutionCard = ({
return (
<BaseBox sx={{ width: "100%", maxWidth: 420 }}>
<Box sx={{ bgcolor: bg, p: 6 }}>
<Box
sx={{
bgcolor: bg,
p: 6,
borderTopLeftRadius: theme.shape.borderRadius,
borderTopRightRadius: theme.shape.borderRadius,
}}
>
<Typography variant="h6" color="textPrimary">
Resolution
</Typography>
@@ -2,6 +2,7 @@ import Stack from "@mui/material/Stack";
import Typography from "@mui/material/Typography";
import Box from "@mui/material/Box";
import { useTheme } from "@mui/material/styles";
import { lighten, darken } from "@mui/material/styles";
import useMediaQuery from "@mui/material/useMediaQuery";
import type { PaletteKey } from "@/theme/theme";
import { BaseBox, TooltipWithInfo } from "@/components/design-elements";
@@ -19,16 +20,19 @@ export const GradientBox: React.FC<GradientBox> = ({
}) => {
const theme = useTheme();
const isSmall = useMediaQuery(theme.breakpoints.down("md"));
const isLight = theme.palette.mode === "light";
const paper = theme.palette.background.paper;
const paperStart = lighten(paper, isLight ? 0.06 : 0.08);
const paperEnd = paper;
const bg = palette
? `linear-gradient(135deg, ${theme.palette[palette].light} 0%, ${theme.palette[palette].main} 100%)`
: theme.palette.background.paper;
: `linear-gradient(135deg, ${paperStart} 0%, ${paperEnd} 100%)`;
return (
<BaseBox
sx={{
padding: `${theme.spacing(4)} ${theme.spacing(8)}`,
width: isSmall ? `100%` : `calc(25% - (3 * ${theme.spacing(8)} / 4))`,
background: bg,
...sx,
}}