From d6da4c7e7077874be4bd6a43d494f1fea5087aca Mon Sep 17 00:00:00 2001 From: Jake Dexheimer Date: Sat, 17 Jun 2017 15:00:28 -0700 Subject: [PATCH] Home -> Index, styles --- pages/index.js | 49 ++++++++++++++++++++++++++++++++----------------- 1 file changed, 32 insertions(+), 17 deletions(-) diff --git a/pages/index.js b/pages/index.js index 08b387c..cf25112 100644 --- a/pages/index.js +++ b/pages/index.js @@ -3,10 +3,12 @@ import HTML5Backend from 'react-dnd-html5-backend' import { DragDropContext } from 'react-dnd' import Axios from 'axios' +import Meta from '../components/meta' +import Toolbar from '../components/toolbar' import CodeImage from '../components/codeImage' import api from '../lib/api' -class Home extends React.Component { +class Index extends React.Component { /* pathname, asPath, err, req, res */ static async getInitialProps ({ asPath }) { try { @@ -19,23 +21,36 @@ class Home extends React.Component { } render () { return ( -
- -

Welcome to Code Image

- - {this.props.content} - -
+
+ +

Welcome to Code Image

+
+ + + {this.props.content} + +
+ +
) } } -export default DragDropContext(HTML5Backend)(Home) +export default DragDropContext(HTML5Backend)(Index)