Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | 1x 1x 4x | import { Box, Grid, Paper, Skeleton, Stack } from "@mui/material";
const DashboardMock = () => (
<Box className="teacher-dashboard-content" sx={{ p: 2 }}>
<Grid container spacing={2} sx={{ mb: 2 }}>
{Array.from({ length: 4 }).map((_, i) => (
<Grid item xs={12} sm={6} md={3} key={i}>
<Paper variant="outlined" sx={{ p: 2, minHeight: 100 }}>
<Skeleton variant="text" width="60%" height={22} />
<Skeleton variant="text" width="40%" height={36} sx={{ mt: 1 }} />
</Paper>
</Grid>
))}
</Grid>
<Grid container spacing={2}>
<Grid item xs={12} md={8}>
<Paper variant="outlined" sx={{ p: 2, minHeight: 280 }}>
<Skeleton variant="text" width="30%" height={28} sx={{ mb: 2 }} />
<Skeleton variant="rectangular" height={220} sx={{ borderRadius: 1 }} />
</Paper>
</Grid>
<Grid item xs={12} md={4}>
<Stack spacing={2}>
<Paper variant="outlined" sx={{ p: 2, minHeight: 130 }}>
<Skeleton variant="text" width="50%" />
<Skeleton variant="rectangular" height={80} sx={{ mt: 1, borderRadius: 1 }} />
</Paper>
<Paper variant="outlined" sx={{ p: 2, minHeight: 130 }}>
<Skeleton variant="circular" width={72} height={72} sx={{ mx: "auto" }} />
</Paper>
</Stack>
</Grid>
</Grid>
</Box>
);
export default DashboardMock;
|