Init mdx
This commit is contained in:
24
components/PostLayout.js
Normal file
24
components/PostLayout.js
Normal file
@@ -0,0 +1,24 @@
|
||||
import { Grid, Container, Typography, Paper } from "@mui/material";
|
||||
|
||||
export default function PostLayout({ children, meta }) {
|
||||
return (
|
||||
<Container>
|
||||
<Grid container spacing={3}>
|
||||
<Grid item xs={12}>
|
||||
<Paper
|
||||
style={{
|
||||
padding: "1rem",
|
||||
margin: "1rem",
|
||||
backgroundColor: "#fafafa",
|
||||
}}
|
||||
>
|
||||
<Typography variant="h4">{meta.title}</Typography>
|
||||
<Typography variant="body1">{meta.description}</Typography>
|
||||
<hr />
|
||||
{children}
|
||||
</Paper>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user