Newer
Older
import {Grid, Paper, Typography} from "@mui/material";
Emily Nicole Adams
committed
function BasicStatistics() {
let stats = [
{
id: 1,
name: "Total Enrollment",
value: "50"
}, {
id: 2,
name: "Percentage Passing",
value: "88%"
}, {
id: 3,
name: "Percentage Active Users",
value: "90%"
}
];
Emily Nicole Adams
committed
return (
<Grid sx={{ flexGrow: 1, padding: 40 + 'px'}} container spacing={2}>
Emily Nicole Adams
committed
<Grid item xs={12}>
<Grid container justifyContent="center" spacing={5}>
{ stats.map((stat) => (
<Grid key={stat.id} item>
Emily Nicole Adams
committed
<Paper
sx={{
height: 140,
width: 200,
display: "flex",
flexDirection:"column",
alignItems: "center",
justifyContent:"center"
Emily Nicole Adams
committed
}}
>
<Typography variant="h3">{stat.value}</Typography>
{stat.name}