Last active
April 6, 2020 10:59
-
-
Save theodesp/9de1347e5b0f0bfba4ec4d74d3094bc8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import React from 'react'; | |
import { Link } from '@wapps/gatsby-plugin-i18next'; | |
import LanguageSwitcher from './languageSwitcher'; | |
const Header = ({ siteTitle }) => ( | |
<div | |
style={{ | |
background: 'blue', | |
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', | |
}} | |
> | |
{siteTitle} | |
</Link> | |
</h1> | |
</div> | |
<div | |
style={{ | |
position: 'absolute', | |
top: 0, | |
right: 0, | |
}} | |
> | |
<LanguageSwitcher /> | |
</div> | |
</div> | |
); | |
export default Header; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment