diff --git a/components/CodeImage.js b/components/CodeImage.js index c5cbfbf..db1fd71 100644 --- a/components/CodeImage.js +++ b/components/CodeImage.js @@ -5,11 +5,6 @@ import CodeMirror from 'react-codemirror' import WindowControls from '../components/svg/Controls' import Spinner from 'react-spinner' -// hack to only call modes on browser -if (typeof window !== 'undefined' && typeof window.navigator !== 'undefined') { - require('../lib/constants') -} - const DEFAULT_SETTINGS = { paddingVertical: '50px', paddingHorizontal: '50px', diff --git a/components/Footer.js b/components/Footer.js new file mode 100644 index 0000000..67e3d42 --- /dev/null +++ b/components/Footer.js @@ -0,0 +1,20 @@ +import React from 'react' + +const Footer = (props) => ( +
+ a project by @dawn_labs ¬ + +
+) + +export default Footer diff --git a/components/Header.js b/components/Header.js new file mode 100644 index 0000000..426a480 --- /dev/null +++ b/components/Header.js @@ -0,0 +1,32 @@ +import React from 'react' +import Logo from './svg/Logo' + +const Header = (props) => ( +
+
+ +

The easiest way to create images from source code. Start typing, or drag a file into the text area to get started.

+
+ +
+) + +export default Header diff --git a/components/Settings.js b/components/Settings.js index 02d8be2..849aca3 100644 --- a/components/Settings.js +++ b/components/Settings.js @@ -31,8 +31,14 @@ class Settings extends React.Component {
- - + +
diff --git a/components/Toolbar.js b/components/Toolbar.js index 0ab1085..aff3c46 100644 --- a/components/Toolbar.js +++ b/components/Toolbar.js @@ -14,7 +14,7 @@ const Toolbar = (props) => ( onChange={props.onBGChange} bg={props.bg} /> - +