charts
This commit is contained in:
1 parent
8a1fc94c31
commit
29fbf0a362
11 files changed
+587
-20
No files matched your search
@@ -4,6 +4,7 @@ import Box from "@mui/material/Box";
|
||||
import { useTheme } from "@mui/material/styles";
|
||||
import { useMediaQuery } from "@mui/material";
|
||||
import type { PaletteKey } from "@/Utils/Theme/v2/theme";
|
||||
import { BaseBox } from "@/Components/v2/DesignElements";
|
||||
|
||||
type GradientBox = React.PropsWithChildren<{ palette?: PaletteKey }>;
|
||||
|
||||
@@ -15,22 +16,18 @@ export const GradientBox: React.FC<GradientBox> = ({ children, palette }) => {
|
||||
: `linear-gradient(340deg, ${theme.palette.tertiary.main} 10%, ${theme.palette.primary.main} 45%)`;
|
||||
|
||||
return (
|
||||
<Box
|
||||
border={1}
|
||||
<BaseBox
|
||||
sx={{
|
||||
padding: `${theme.spacing(4)} ${theme.spacing(8)}`,
|
||||
width: isSmall
|
||||
? `calc(50% - (1 * ${theme.spacing(8)} / 2))`
|
||||
: `calc(25% - (3 * ${theme.spacing(8)} / 4))`,
|
||||
|
||||
borderStyle: "solid",
|
||||
borderRadius: 4,
|
||||
borderColor: theme.palette.primary.lowContrast,
|
||||
background: bg,
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
</Box>
|
||||
</BaseBox>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user