1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-30 22:08:02 +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
- [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
- [/about](/about)
- [About](/about)

View file

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