Skip to content

Instantly share code, notes, and snippets.

@theodesp
Last active April 6, 2020 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theodesp/9de1347e5b0f0bfba4ec4d74d3094bc8 to your computer and use it in GitHub Desktop.
Save theodesp/9de1347e5b0f0bfba4ec4d74d3094bc8 to your computer and use it in GitHub Desktop.
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