mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-04-26 02:48:54 -05:00
94 lines
2.3 KiB
React
94 lines
2.3 KiB
React
import { Box, Stack, styled } from "@mui/material";
|
|
|
|
export const ChartBox = styled(Stack)(({ theme }) => ({
|
|
display: "grid",
|
|
height: 300,
|
|
minWidth: 250,
|
|
border: 1,
|
|
borderStyle: "solid",
|
|
borderColor: theme.palette.border.light,
|
|
borderRadius: 4,
|
|
borderTopRightRadius: 16,
|
|
borderBottomRightRadius: 16,
|
|
backgroundColor: theme.palette.background.main,
|
|
"& h2": {
|
|
color: theme.palette.text.secondary,
|
|
fontSize: 15,
|
|
fontWeight: 500,
|
|
},
|
|
"& p": { color: theme.palette.text.tertiary },
|
|
"& > :nth-of-type(1)": {
|
|
gridColumn: 1,
|
|
gridRow: 1,
|
|
height: "fit-content",
|
|
paddingTop: theme.spacing(8),
|
|
paddingLeft: theme.spacing(8),
|
|
},
|
|
"& > :nth-of-type(2)": { gridColumn: 1, gridRow: 2 },
|
|
"& > :nth-of-type(3)": {
|
|
gridColumn: 2,
|
|
gridRow: "span 2",
|
|
padding: theme.spacing(8),
|
|
borderLeft: 1,
|
|
borderLeftStyle: "solid",
|
|
borderLeftColor: theme.palette.border.light,
|
|
borderRadius: 16,
|
|
backgroundColor: theme.palette.background.main,
|
|
background: `linear-gradient(325deg, ${theme.palette.background.accent} 20%, ${theme.palette.background.main} 45%)`,
|
|
},
|
|
"& path": {
|
|
transition: "stroke-width 400ms ease",
|
|
},
|
|
}));
|
|
|
|
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,
|
|
},
|
|
},
|
|
}));
|
|
|
|
export const StatBox = styled(Box)(({ theme }) => ({
|
|
padding: `${theme.spacing(4)} ${theme.spacing(8)}`,
|
|
minWidth: 200,
|
|
width: 225,
|
|
border: 1,
|
|
borderStyle: "solid",
|
|
borderColor: theme.palette.border.light,
|
|
borderRadius: 4,
|
|
backgroundColor: theme.palette.background.main,
|
|
background: `linear-gradient(340deg, ${theme.palette.background.accent} 20%, ${theme.palette.background.main} 45%)`,
|
|
"& h2": {
|
|
fontSize: 13,
|
|
fontWeight: 500,
|
|
color: theme.palette.text.secondary,
|
|
textTransform: "uppercase",
|
|
},
|
|
"& p": {
|
|
fontSize: 18,
|
|
color: theme.palette.text.primary,
|
|
marginTop: theme.spacing(2),
|
|
"& span": {
|
|
color: theme.palette.text.tertiary,
|
|
marginLeft: theme.spacing(2),
|
|
fontSize: 15,
|
|
},
|
|
},
|
|
}));
|