|
|
@ -2,7 +2,7 @@ import React from 'react'
|
|
|
|
import Logo from './svg/Logo'
|
|
|
|
import Logo from './svg/Logo'
|
|
|
|
|
|
|
|
|
|
|
|
const Header = ({ enableHeroText }) => (
|
|
|
|
const Header = ({ enableHeroText }) => (
|
|
|
|
<header role="banner" className="header mb4">
|
|
|
|
<header role="banner" className="mb4">
|
|
|
|
<div className="header-content">
|
|
|
|
<div className="header-content">
|
|
|
|
<a id="link-home" href="/" aria-label="Home">
|
|
|
|
<a id="link-home" href="/" aria-label="Home">
|
|
|
|
<Logo />
|
|
|
|
<Logo />
|
|
|
@ -10,16 +10,13 @@ const Header = ({ enableHeroText }) => (
|
|
|
|
{enableHeroText ? (
|
|
|
|
{enableHeroText ? (
|
|
|
|
<h2 className="mt3">
|
|
|
|
<h2 className="mt3">
|
|
|
|
Create and share beautiful images of your source code.
|
|
|
|
Create and share beautiful images of your source code.
|
|
|
|
<br /> Start typing or drop a file into the text area to get started.
|
|
|
|
<br />
|
|
|
|
|
|
|
|
Start typing or drop a file into the text area to get started.
|
|
|
|
</h2>
|
|
|
|
</h2>
|
|
|
|
) : null}
|
|
|
|
) : null}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<style jsx>
|
|
|
|
<style jsx>
|
|
|
|
{`
|
|
|
|
{`
|
|
|
|
.header {
|
|
|
|
|
|
|
|
width: 656px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.header-content {
|
|
|
|
.header-content {
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-direction: column;
|
|
|
@ -28,11 +25,21 @@ const Header = ({ enableHeroText }) => (
|
|
|
|
|
|
|
|
|
|
|
|
.header-content a {
|
|
|
|
.header-content a {
|
|
|
|
height: 64px;
|
|
|
|
height: 64px;
|
|
|
|
|
|
|
|
max-width: 96vw;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
h2 {
|
|
|
|
text-align: center;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
|
|
|
|
header {
|
|
|
|
|
|
|
|
margin-bottom: var(--x3);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
`}
|
|
|
|
`}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
</header>
|
|
|
|
</header>
|
|
|
|