Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dfd2f03

Browse files
committed
Set basic grid for the panels
1 parent fdcf23f commit dfd2f03

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed
Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
1+
import Box from "@mui/material/Box"
2+
import { styled } from "@mui/material/styles"
3+
14
const TemplateInsightsPage = () => {
2-
return <div>TemplateInsightsPage</div>
5+
return (
6+
<Box
7+
sx={{
8+
display: "grid",
9+
gridTemplateColumns: "repeat(3, minmax(0, 1fr))",
10+
gridTemplateRows: "440px auto",
11+
gap: (theme) => theme.spacing(3),
12+
}}
13+
>
14+
<Panel sx={{ gridColumn: "span 2" }}>
15+
<PanelHeader>Active daily users</PanelHeader>
16+
</Panel>
17+
18+
<Panel>
19+
<PanelHeader>Latency by user</PanelHeader>
20+
</Panel>
21+
22+
<Panel sx={{ gridColumn: "span 3" }}>
23+
<PanelHeader>App&lsquo;s & IDE usage</PanelHeader>
24+
</Panel>
25+
</Box>
26+
)
327
}
428

529
export default TemplateInsightsPage
30+
31+
const Panel = styled(Box)(({ theme }) => ({
32+
borderRadius: theme.shape.borderRadius,
33+
border: `1px solid ${theme.palette.divider}`,
34+
backgroundColor: theme.palette.background.paper,
35+
}))
36+
37+
const PanelHeader = styled(Box)(({ theme }) => ({
38+
fontSize: 14,
39+
fontWeight: 500,
40+
padding: theme.spacing(3),
41+
lineHeight: 1,
42+
}))

0 commit comments

Comments
 (0)