Creating separate templates for each page

This commit is contained in:
Jeff Avallone
2018-02-11 07:42:52 -05:00
parent 95a6709ec0
commit 84df219d7f
7 changed files with 27 additions and 22 deletions
+1
View File
@@ -0,0 +1 @@
import '../../style.css';
+14
View File
@@ -0,0 +1,14 @@
import 'babel-register';
import React from 'react';
import PageTemplate, { renderToString } from '../../components/PageTemplate';
import Message from '../../components/Message';
import AlertIcon from 'feather-icons/dist/icons/alert-octagon.svg';
export default renderToString(
<PageTemplate>
<Message icon={ AlertIcon } heading="404 Page Not Found">
<p>The page you have requested could not be found</p>
</Message>
</PageTemplate>
);