forked from gatsbyjs/gatsby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Clean up code base (gatsbyjs#40)
* fix auto fixable ESLint warnings * use .jsx file extension * move Header into it's own component * use .js insteda of .jsx file extension * format code using prettier
- Loading branch information
1 parent
ae0335f
commit 249121e
Showing
3 changed files
with
37 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module.exports = { | ||
siteMetadata: { | ||
title: `Gatsby Default Starter`, | ||
title: 'Gatsby Default Starter', | ||
}, | ||
plugins: [`gatsby-plugin-react-helmet`], | ||
} | ||
plugins: ['gatsby-plugin-react-helmet'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React from 'react' | ||
import Link from 'gatsby-link' | ||
|
||
const Header = () => ( | ||
<div | ||
style={{ | ||
background: 'rebeccapurple', | ||
marginBottom: '1.45rem', | ||
}} | ||
> | ||
<div | ||
style={{ | ||
margin: '0 auto', | ||
maxWidth: 960, | ||
padding: '1.45rem 1.0875rem', | ||
}} | ||
> | ||
<h1 style={{ margin: 0 }}> | ||
<Link | ||
to="/" | ||
style={{ | ||
color: 'white', | ||
textDecoration: 'none', | ||
}} | ||
> | ||
Gatsby | ||
</Link> | ||
</h1> | ||
</div> | ||
</div> | ||
) | ||
|
||
export default Header |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters