update ui for dashboard
This commit is contained in:
parent
02b7e73ceb
commit
165f1fd4ea
|
@ -43,20 +43,20 @@ export default function LineChartCard() {
|
||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
sx={{ width: "100%", height: "100%", backgroundColor: "#F2F2F2" }}
|
sx={{ width: "100%", height: "100%", backgroundColor: "#202020" }}
|
||||||
>
|
>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
color: "#202020",
|
color: "#F2F2F2",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
variant="h6"
|
variant="h6"
|
||||||
align="left"
|
align="left"
|
||||||
color="#202020"
|
color="#F2F2F2"
|
||||||
sx={{
|
sx={{
|
||||||
fontFamily: "Gilroy",
|
fontFamily: "Gilroy",
|
||||||
fontWeight: 500,
|
fontWeight: 500,
|
||||||
|
@ -70,7 +70,7 @@ export default function LineChartCard() {
|
||||||
sx={{
|
sx={{
|
||||||
mt: 2,
|
mt: 2,
|
||||||
mb: 2,
|
mb: 2,
|
||||||
backgroundColor: "#FFFFFF",
|
backgroundColor: "#202020",
|
||||||
marginLeft: "auto",
|
marginLeft: "auto",
|
||||||
marginRight: "16px",
|
marginRight: "16px",
|
||||||
display: "flex",
|
display: "flex",
|
||||||
|
@ -81,7 +81,7 @@ export default function LineChartCard() {
|
||||||
border: "1px solid #454545",
|
border: "1px solid #454545",
|
||||||
|
|
||||||
padding: "4px 8px",
|
padding: "4px 8px",
|
||||||
color: "#FFFFFF",
|
color: "#F2F2F2",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
|
@ -90,13 +90,13 @@ export default function LineChartCard() {
|
||||||
fontWeight: 500,
|
fontWeight: 500,
|
||||||
fontSize: "14px",
|
fontSize: "14px",
|
||||||
lineHeight: "24px",
|
lineHeight: "24px",
|
||||||
color: "#202020",
|
color: "#F2F2F2",
|
||||||
p: "4px",
|
p: "4px",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Weekly
|
Weekly
|
||||||
</Typography>
|
</Typography>
|
||||||
<ArrowDropDownIcon sx={{ color: "#202020" }} />
|
<ArrowDropDownIcon sx={{ color: "#F2F2F2" }} />
|
||||||
</Box>
|
</Box>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -77,9 +77,12 @@ export default function OptionsMenu({ avatar }: { avatar?: boolean }) {
|
||||||
[`& .${dividerClasses.root}`]: {
|
[`& .${dividerClasses.root}`]: {
|
||||||
margin: "4px -4px",
|
margin: "4px -4px",
|
||||||
},
|
},
|
||||||
|
backgroundColor:"#202020"
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<MenuItem onClick={handleProfile}>Profile</MenuItem>
|
<MenuItem onClick={handleProfile} >
|
||||||
|
Profile
|
||||||
|
</MenuItem>
|
||||||
{/* <MenuItem onClick={handleClose}>My account</MenuItem>
|
{/* <MenuItem onClick={handleClose}>My account</MenuItem>
|
||||||
<Divider />
|
<Divider />
|
||||||
<MenuItem onClick={handleClose}>Add another account</MenuItem>
|
<MenuItem onClick={handleClose}>Add another account</MenuItem>
|
||||||
|
@ -99,7 +102,7 @@ export default function OptionsMenu({ avatar }: { avatar?: boolean }) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
setLogoutModal(true);
|
setLogoutModal(true);
|
||||||
}}
|
}}
|
||||||
sx={{color:"red"}}
|
sx={{ color: "red" }}
|
||||||
>
|
>
|
||||||
Logout
|
Logout
|
||||||
</ListItemText>
|
</ListItemText>
|
||||||
|
|
|
@ -32,14 +32,14 @@ export default function ResourcePieChart() {
|
||||||
flexGrow: 1,
|
flexGrow: 1,
|
||||||
width: "100%",
|
width: "100%",
|
||||||
height: "100%",
|
height: "100%",
|
||||||
backgroundColor: "#F2F2F2",
|
backgroundColor: "#202020",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
<Typography
|
<Typography
|
||||||
component="h2"
|
component="h2"
|
||||||
variant="subtitle2"
|
variant="subtitle2"
|
||||||
color="#202020"
|
color="#F2F2F2"
|
||||||
sx={{
|
sx={{
|
||||||
fontFamily: "Gilroy",
|
fontFamily: "Gilroy",
|
||||||
fontWeight: 500,
|
fontWeight: 500,
|
||||||
|
@ -93,7 +93,7 @@ export default function ResourcePieChart() {
|
||||||
borderRadius: "50%",
|
borderRadius: "50%",
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Typography variant="body2" color="#202020">
|
<Typography variant="body2" color="#F2F2F2">
|
||||||
{entry.title}
|
{entry.title}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|
|
@ -12,7 +12,7 @@ export default function SessionsChart() {
|
||||||
sx={{
|
sx={{
|
||||||
width: "100%",
|
width: "100%",
|
||||||
height: "100%",
|
height: "100%",
|
||||||
backgroundColor: "#F2F2F2",
|
backgroundColor: "#202020",
|
||||||
p: 2,
|
p: 2,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
@ -20,7 +20,7 @@ export default function SessionsChart() {
|
||||||
<Typography
|
<Typography
|
||||||
variant="h6"
|
variant="h6"
|
||||||
align="left"
|
align="left"
|
||||||
color="#202020"
|
color="#F2F2F2"
|
||||||
sx={{
|
sx={{
|
||||||
fontFamily: "Gilroy",
|
fontFamily: "Gilroy",
|
||||||
fontWeight: 500,
|
fontWeight: 500,
|
||||||
|
@ -36,7 +36,7 @@ export default function SessionsChart() {
|
||||||
sx={{
|
sx={{
|
||||||
mt: 2,
|
mt: 2,
|
||||||
mb: 2,
|
mb: 2,
|
||||||
backgroundColor: "#FFFFFF",
|
backgroundColor: "#202020",
|
||||||
fontSize: "14px",
|
fontSize: "14px",
|
||||||
lineHeight: "20px",
|
lineHeight: "20px",
|
||||||
width: { xs: "100%" },
|
width: { xs: "100%" },
|
||||||
|
@ -55,13 +55,13 @@ export default function SessionsChart() {
|
||||||
fontWeight: 500,
|
fontWeight: 500,
|
||||||
fontSize: "14px",
|
fontSize: "14px",
|
||||||
lineHeight: "24px",
|
lineHeight: "24px",
|
||||||
color: "#202020",
|
color: "#F2F2F2",
|
||||||
p: "4px",
|
p: "4px",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Delhi NCR EV Station
|
Delhi NCR EV Station
|
||||||
</Typography>
|
</Typography>
|
||||||
<ArrowDropDownIcon sx={{ color: "#202020" }} />
|
<ArrowDropDownIcon sx={{ color: "#F2F2F2" }} />
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
{/* Grid container for the four boxes */}
|
{/* Grid container for the four boxes */}
|
||||||
|
@ -86,8 +86,8 @@ export default function SessionsChart() {
|
||||||
height: "84px",
|
height: "84px",
|
||||||
borderRadius: "8px",
|
borderRadius: "8px",
|
||||||
p: "12px 16px",
|
p: "12px 16px",
|
||||||
backgroundColor: "#FFFFFF",
|
backgroundColor: "#272727",
|
||||||
color: "#202020",
|
color: "#F2F2F2",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
|
|
|
@ -18,13 +18,13 @@ export default function StatCard({ title, value }: StatCardProps) {
|
||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
sx={{ height: "100%", backgroundColor: "#F2F2F2" }}
|
sx={{ height: "100%", backgroundColor: "#202020" }}
|
||||||
>
|
>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
<Typography
|
<Typography
|
||||||
component="h2"
|
component="h2"
|
||||||
variant="subtitle2"
|
variant="subtitle2"
|
||||||
color="#202020"
|
color="#F2F2F2"
|
||||||
gutterBottom
|
gutterBottom
|
||||||
>
|
>
|
||||||
{title}
|
{title}
|
||||||
|
@ -32,7 +32,7 @@ export default function StatCard({ title, value }: StatCardProps) {
|
||||||
<Typography
|
<Typography
|
||||||
component="h1"
|
component="h1"
|
||||||
variant="body1"
|
variant="body1"
|
||||||
color="#202020"
|
color="#F2F2F2"
|
||||||
fontSize={30}
|
fontSize={30}
|
||||||
fontWeight={700}
|
fontWeight={700}
|
||||||
gutterBottom
|
gutterBottom
|
||||||
|
|
|
@ -30,20 +30,20 @@ export default function RoundedBarChart() {
|
||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
variant="outlined"
|
variant="outlined"
|
||||||
sx={{ width: "100%", height: "100%", backgroundColor: "#F2F2F2" }}
|
sx={{ width: "100%", height: "100%", backgroundColor: "#202020" }}
|
||||||
>
|
>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
color: "#202020",
|
color: "#F2F2F2",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
variant="h6"
|
variant="h6"
|
||||||
align="left"
|
align="left"
|
||||||
color="#202020"
|
color="#F2F2F2"
|
||||||
sx={{
|
sx={{
|
||||||
fontFamily: "Gilroy",
|
fontFamily: "Gilroy",
|
||||||
fontWeight: 500,
|
fontWeight: 500,
|
||||||
|
@ -57,7 +57,7 @@ export default function RoundedBarChart() {
|
||||||
sx={{
|
sx={{
|
||||||
mt: 2,
|
mt: 2,
|
||||||
mb: 2,
|
mb: 2,
|
||||||
backgroundColor: "#FFFFFF",
|
backgroundColor: "#202020",
|
||||||
marginLeft: "auto",
|
marginLeft: "auto",
|
||||||
marginRight: "16px",
|
marginRight: "16px",
|
||||||
display: "flex",
|
display: "flex",
|
||||||
|
@ -68,7 +68,7 @@ export default function RoundedBarChart() {
|
||||||
border: "1px solid #454545",
|
border: "1px solid #454545",
|
||||||
|
|
||||||
padding: "4px 8px",
|
padding: "4px 8px",
|
||||||
color: "#202020",
|
color: "#F2F2F2",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography
|
<Typography
|
||||||
|
@ -77,13 +77,13 @@ export default function RoundedBarChart() {
|
||||||
fontWeight: 500,
|
fontWeight: 500,
|
||||||
fontSize: "14px",
|
fontSize: "14px",
|
||||||
lineHeight: "24px",
|
lineHeight: "24px",
|
||||||
color: "#202020",
|
color: "#F2F2F2",
|
||||||
p: "4px",
|
p: "4px",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Monthly
|
Monthly
|
||||||
</Typography>
|
</Typography>
|
||||||
<ArrowDropDownIcon sx={{ color: "#202020" }} />
|
<ArrowDropDownIcon sx={{ color: "#F2F2F2" }} />
|
||||||
</Box>
|
</Box>
|
||||||
</div>
|
</div>
|
||||||
<BarChart
|
<BarChart
|
||||||
|
|
Loading…
Reference in a new issue