|
|
@ -1,31 +1,30 @@
|
|
|
|
import React from 'react'
|
|
|
|
import React from 'react'
|
|
|
|
import Logo from './svg/Logo'
|
|
|
|
import Logo from './svg/Logo'
|
|
|
|
|
|
|
|
|
|
|
|
const Header = (props) => (
|
|
|
|
const Header = ({ enableHeroText }) => (
|
|
|
|
<div className="header">
|
|
|
|
<div className="header mt3 mb4">
|
|
|
|
<div className="header-content">
|
|
|
|
<div className="header-content">
|
|
|
|
<a href="/"><Logo /></a>
|
|
|
|
<a className="mb3" href="/"><Logo /></a>
|
|
|
|
<h2>The easiest way to create images from source code. Start typing, or drag a file into the text area to get started.</h2>
|
|
|
|
{ enableHeroText ? (<h2>The easiest way to create images from source code.<br/> Start typing, or drag a file into the text area to get started.</h2>) : null }
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<style jsx>{`
|
|
|
|
<style jsx>{`
|
|
|
|
.header {
|
|
|
|
.header {
|
|
|
|
margin: 36px 0 72px;
|
|
|
|
|
|
|
|
width: 632px;
|
|
|
|
width: 632px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header-content {
|
|
|
|
.header-content {
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header-content a {
|
|
|
|
.header-content a {
|
|
|
|
height: 128px;
|
|
|
|
height: 64px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
h2 {
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
margin-top: 0;
|
|
|
|
margin-top: 0;
|
|
|
|
max-width: 456px;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`}</style>
|
|
|
|
`}</style>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|