Skip to content

Commit

Permalink
Initial setup
Browse files Browse the repository at this point in the history
  • Loading branch information
masmerino13 committed Dec 12, 2018
0 parents commit 723cd3e
Show file tree
Hide file tree
Showing 10 changed files with 6,686 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.next
21 changes: 21 additions & 0 deletions components/layout/Header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import Link from 'next/link'

const styles = {
marginLeft: "10px"
}

const Header = () => (
<div>
<Link href="/">
<a style={ styles }>Home</a>
</Link>
<Link href="/about">
<a style={ styles }>About</a>
</Link>
<Link href="/blog">
<a style={ styles }>Blog</a>
</Link>
</div>
)

export default Header;
17 changes: 17 additions & 0 deletions components/layout/Template.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import Header from './Header'

const layoutStyle = {
margin: 20,
padding: 20,
border: '1px solid #DDD'
}

const Layout = (props) => (
<div style={layoutStyle}>
<Header />
{props.children}
</div>
)


export default Layout;
Loading

0 comments on commit 723cd3e

Please sign in to comment.