mirror of
https://github.com/kou029w/_.git
synced 2025-01-31 06:18:07 +00:00
update theme
This commit is contained in:
parent
df0068432c
commit
8c9a40cfed
3 changed files with 13 additions and 8 deletions
|
@ -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
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# Hello Next.js
|
# Hello Next.js
|
||||||
|
|
||||||
- [/about](/about)
|
- [About](/about)
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue