feat: add very simple default theme

This commit is contained in:
endiliey 2018-08-07 18:13:42 +08:00
parent 9fef99cb18
commit e85d3230a9
3 changed files with 30 additions and 0 deletions

8
lib/theme/Docs.js Normal file
View file

@ -0,0 +1,8 @@
import React from 'react';
import Layout from '@theme/Layout';
export default class Docs extends React.Component {
render() {
return <Layout>{this.props.children}</Layout>;
}
}

7
lib/theme/Layout.js Normal file
View file

@ -0,0 +1,7 @@
import React from 'react';
export default class Layout extends React.Component {
render() {
return <div>{this.props.children}</div>;
}
}

15
lib/theme/NotFound.js Normal file
View file

@ -0,0 +1,15 @@
import React from 'react';
import Layout from '@theme/Layout';
export default class NotFound extends React.Component {
render() {
return (
<Layout>
<div>404 Page Not Found</div>
<div>
<img src="https://i.imgur.com/yG7L3Lb.gif" />
</div>
</Layout>
);
}
}