Skip to content

Commit

Permalink
create general stats for everything
Browse files Browse the repository at this point in the history
  • Loading branch information
FREDVUNI committed Feb 9, 2023
1 parent 7c6bc28 commit f044324
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 1 deletion.
14 changes: 13 additions & 1 deletion client/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,16 @@ body,
height:100%;
width:100%;
font-family:"Inter",sans-serif;
}
}
::-webkit-scrollbar{
width: 10px;
}
::-webkit-scrollbar-track{
background: #7a7f9d;
}
::-webkit-scrollbar-thumb{
background: #21295c;
}
::-webkit-scrollbar-track:hover{
background: #21295c;
}
50 changes: 50 additions & 0 deletions client/src/scenes/dashboard/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,56 @@ const Dashboard = () =>{
<Traffic sx={{ color: theme.palette.secondary[300], fontSize: "26px" }} />
}
/>
<Box
gridColumn="span 8"
gridRow="span 3"
sx={{
"& .MuiDataGrid-root":{
border:"none"
},
"& .MuiDataGrid-cell":{
borderBottom:"none"
},
"& .MuiDataGrid-columnHeaders":{
backgroundColor:theme.palette.background.alt,
color: theme.palette.secondary[100],
borderBottom: "none"
},
"& .MuiDataGrid-virtualScroller":{
backgroundColor:theme.palette.primary.light
},
"& .MuiDataGrid-footerContainer":{
backgroundColor:theme.palette.background.alt,
color: theme.palette.secondary[100],
borderTop:"none"
},
"& .MuiDataGrid-toolbarContainer .MuiButton-text":{
color: `${theme.palette.secondary[200]} !important`
}
}}
>
<DataGrid
loading={isLoading || !data}
getRowId={(row) => row._id}
rows={(data && data.transactions) || []}
columns={columns}
/>
</Box>
<Box
gridColumn='span 4'
gridRow='span 3'
background={theme.palette.background.alt}
p='1.5rem'
borderRadius='0.55rem'
>
<Typography variant='h6' sx={{ color: theme.palette.secondary[100] }}>
Sales By Category
</Typography>
<BreakdownChart isDashboard={true}/>
<Typography p='0 0.6rem' fontSize='0.8rem' sx={{ color:theme.palette.secondary[200]}}>
Breakdown real states and and information via category for revenue made this year
</Typography>
</Box>
</Box>
</Box>
)
Expand Down

0 comments on commit f044324

Please sign in to comment.