BodyLayout.js
1.14 KB
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
39
40
41
42
43
44
45
46
import React from "react";
import { makeStyles } from "@material-ui/core/styles";
import Grid from "@material-ui/core/Grid";
import Container from "@material-ui/core/Container";
import TodoCard from "./TodoCard.js";
const useStyles = makeStyles((theme) => ({
root: {
flexGrow: 1,
marginTop: "1rem",
},
item: {
marginLeft: "auto",
marginRight: "auto",
},
}));
export default function CenteredGrid() {
const classes = useStyles();
return (
<Container className={classes.root} maxwidth="sm">
<Grid className={classes.item} container spacing={3}>
<Grid item xs="6" sm="6" md="3">
<TodoCard></TodoCard>
</Grid>
<Grid item xs="6" sm="6" md="3">
<TodoCard></TodoCard>
</Grid>
<Grid item xs="6" sm="6" md="3">
<TodoCard></TodoCard>
</Grid>
<Grid item xs="6" sm="6" md="3">
<TodoCard></TodoCard>
</Grid>
<Grid item xs="6" sm="6" md="3">
<TodoCard></TodoCard>
</Grid>
<Grid item xs="6" sm="6" md="3">
<TodoCard></TodoCard>
</Grid>
</Grid>
</Container>
);
}