mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-19 12:07:00 +02:00
feat: add very simple default theme
This commit is contained in:
parent
9fef99cb18
commit
e85d3230a9
3 changed files with 30 additions and 0 deletions
8
lib/theme/Docs.js
Normal file
8
lib/theme/Docs.js
Normal 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
7
lib/theme/Layout.js
Normal 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
15
lib/theme/NotFound.js
Normal 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>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue