1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-31 06:18:07 +00:00

update theme

This commit is contained in:
Nebel 2020-02-09 02:46:41 +09:00
parent df0068432c
commit 8c9a40cfed
3 changed files with 13 additions and 8 deletions

View file

@ -1,3 +1,11 @@
# About # About
- [Back to Home](/) Next.js、MDX、Material-UI の組み合わせで作ってみたサンプルページ。
## ソースコード
[https://github.com/kou029w/next-example](https://github.com/kou029w/next-example)
## ライセンス
MIT

View file

@ -1,3 +1,3 @@
# Hello Next.js # Hello Next.js
- [/about](/about) - [About](/about)

View file

@ -58,7 +58,8 @@ export const components = {
<MuiLink variant="body1" color="secondary" href={url} {...props} /> <MuiLink variant="body1" color="secondary" href={url} {...props} />
</Link> </Link>
); );
} },
p: (props: {}) => <Typography component="p" variant="body1" {...props} />
}; };
const MainTheme: React.FC = ({ children }) => ( const MainTheme: React.FC = ({ children }) => (
@ -66,11 +67,7 @@ const MainTheme: React.FC = ({ children }) => (
<MDXProvider components={components}> <MDXProvider components={components}>
<TopAppBar /> <TopAppBar />
<Box paddingTop={6}> <Box paddingTop={6}>
<Container> <Container>{children}</Container>
<Typography component="div" variant="body1">
{children}
</Typography>
</Container>
</Box> </Box>
</MDXProvider> </MDXProvider>
</ThemeProvider> </ThemeProvider>