CSS display fixes

main
Jake Dexheimer 8 years ago
parent 1ea13ab095
commit 0c872f69fc

@ -30,7 +30,7 @@ const Toolbar = (props) => (
margin-bottom: 16px; margin-bottom: 16px;
display: flex; display: flex;
position: relative; position: relative;
z-index: 1; z-index: 3;
font-size: 14px; font-size: 14px;
color: #4F6875; color: #4F6875;
} }

@ -58,8 +58,10 @@ class Index extends React.Component {
<div className="main"> <div className="main">
<Meta /> <Meta />
<div className="header"> <div className="header">
<Logo /> <div className="header-content">
<h1>The easiest way to create images from source code. Start typing, or drag a file into the text area to get started.</h1> <Logo />
<h1>The easiest way to create images from source code. Start typing, or drag a file into the text area to get started.</h1>
</div>
</div> </div>
<div id="editor"> <div id="editor">
<Toolbar <Toolbar
@ -80,40 +82,38 @@ class Index extends React.Component {
<style jsx>{` <style jsx>{`
.main { .main {
display: flex; display: flex;
justify-content: space-between; flex-direction: column;
padding: 64px; align-items: center;
height: 100vh; height: 100vh;
min-width: 848px;
} }
.header { .header {
margin-top: 56px; margin: 40px 0 32px;
width: 776px; width: 704px;
}
.header-content {
display: flex; display: flex;
flex-direction: row;
justify-content: space-between; justify-content: space-between;
align-items: center;
} }
h1 { .header-content h1 {
max-width: 570px; max-width: 472px;
font-size: 24px; font-size: 20px;
line-height: 1.5; line-height: 1.5;
color: #fff; color: #fff;
} }
div {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
#editor { #editor {
height: 460px;
background: #151515; background: #151515;
padding: 16px; padding: 16px;
} }
.footer { .footer {
font-size: 14px;
margin: 32px 0;
color: #506874; color: #506874;
} }

Loading…
Cancel
Save