Skip to content

Commit

Permalink
create header component
Browse files Browse the repository at this point in the history
  • Loading branch information
iamtekeste committed Jun 7, 2017
1 parent 181719f commit b597393
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
32 changes: 31 additions & 1 deletion src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
.canvas {
display: flex;
height: 100%;
width: 80%;
width: 75%;
align-items: center;
justify-content: center;
}
Expand All @@ -14,9 +14,39 @@
border: none;
padding: 20px 20px;
transition: background .3s ease-in;
text-align: center;
width: 90%;
}
.text-editor:focus,
.text-editor:hover {
background: #fff;
}


.sidebar {
background: #333333;
width: 25%;
}
.header {
color: #FFF;
font-family: Montserrat;
text-align: center;
}
.header h1 {
font-size: 24px;
font-weight: bold;
letter-spacing: 3px;
margin-bottom: 5px;
text-transform: uppercase;
}
.header span {
font-size: 14px;
display: block;
margin-bottom: 10px;
}
.header hr {
border-color: #777272;
border-width: 1px;
width: 40%;
margin: 0 auto;
}
2 changes: 2 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { Component } from 'react';
import Canvas from './components/Canvas';
import SideBar from './components/SideBar';
import './App.css';

class App extends Component {
Expand All @@ -19,6 +20,7 @@ class App extends Component {
return (
<div className="App">
<Canvas {...this.state} />
<SideBar {...this.state} />
</div>
);
}
Expand Down
11 changes: 11 additions & 0 deletions src/components/Header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from 'react';

const Header = () => (
<div className="header">
<h1>Type Hero</h1>
<span>try Google fonts in style</span>
<hr />
</div>
);

export default Header;

0 comments on commit b597393

Please sign in to comment.