Skip to content

Instantly share code, notes, and snippets.

@timothyde
Last active April 13, 2020 17:49
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 timothyde/1e9b4c57363ee5e367064931a2f69c8b to your computer and use it in GitHub Desktop.
Save timothyde/1e9b4c57363ee5e367064931a2f69c8b to your computer and use it in GitHub Desktop.
import React from 'react'
import styled from 'styled-components'
import { Link } from 'gatsby'
import { localeLink } from '../../utils/localeLink'
import signature from '../../images/signature.svg'
const Logo = styled.img`
display: inline-block;
margin: 0;
margin-right: 1rem;
padding: 0;
width: 60px;
cursor: pointer;
`
export default ({ location }) => {
return (
<Link to={localeLink(location, '/')}>
<Logo src={signature} />
</Link>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment