Revamped chart cards 1/2

This commit is contained in:
Daniel Cojocea committed 2024-09-02 18:46:51 -04:00
1 parent f046f250ec
commit e5b347e14b
6 files changed
+171 -28

No files matched your search

@@ -0,0 +1,61 @@
import { Box, styled } from "@mui/material";
export const ChartBox = styled(Box)(({ theme }) => ({
flex: "1 30%",
height: 300,
minWidth: 250,
padding: theme.spacing(8),
border: 1,
borderStyle: "solid",
borderColor: theme.palette.border.light,
borderRadius: 4,
backgroundColor: theme.palette.background.main,
"& h2": {
color: theme.palette.text.secondary,
fontSize: 15,
},
"& p": {
color: theme.palette.text.tertiary,
fontSize: 13,
},
"& span": {
color: theme.palette.text.primary,
fontSize: 20,
"& span": {
opacity: 0.8,
marginLeft: 2,
fontSize: 15,
},
},
"& .MuiStack-root": {
flexDirection: "row",
alignItems: "center",
gap: theme.spacing(6),
},
"& > .MuiBox-root:not(:first-of-type)": {
marginTop: theme.spacing(8),
},
}));
export const IconBox = styled(Box)(({ theme }) => ({
height: 34,
minWidth: 34,
width: 34,
position: "relative",
border: 1,
borderStyle: "solid",
borderColor: theme.palette.border.dark,
borderRadius: 4,
backgroundColor: theme.palette.background.accent,
"& svg": {
position: "absolute",
top: "50%",
left: "50%",
transform: "translate(-50%, -50%)",
width: 20,
height: 20,
"& path": {
stroke: theme.palette.text.tertiary,
},
},
}));