2018-03-29 13:20:28 +03:00
|
|
|
import React from 'react';
|
|
|
|
import styled from 'styled-components';
|
|
|
|
import remcalc from 'remcalc';
|
|
|
|
|
|
|
|
import Logo from './logo';
|
|
|
|
import GHLogo from './ghlogo';
|
|
|
|
|
|
|
|
const Header = styled.header`
|
|
|
|
background: ${props => props.theme.greyDarker};
|
|
|
|
color: ${props => props.theme.white};
|
|
|
|
height: ${remcalc(48)};
|
|
|
|
padding: 0 ${remcalc(24)};
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
2018-04-05 16:29:22 +03:00
|
|
|
position: relative;
|
|
|
|
z-index: 2;
|
2018-03-29 13:20:28 +03:00
|
|
|
`;
|
|
|
|
|
|
|
|
const List = styled.ul`
|
|
|
|
list-style: none;
|
|
|
|
display: flex;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
li {
|
|
|
|
a {
|
|
|
|
color: ${props => props.theme.white};
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
|
border-right: ${remcalc(1)} solid ${props => props.theme.text};
|
|
|
|
padding-right: ${remcalc(24)};
|
|
|
|
margin-right: ${remcalc(24)};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export default () => (
|
|
|
|
<Header>
|
|
|
|
<List>
|
|
|
|
<li>
|
|
|
|
<a href="/">Visuals</a>
|
|
|
|
</li>
|
|
|
|
<li>Copy Guide</li>
|
|
|
|
<li>
|
|
|
|
<a href="#!/Download">Downloads</a>
|
|
|
|
</li>
|
|
|
|
</List>
|
2018-05-03 13:30:36 +03:00
|
|
|
{decodeURIComponent(window.location.href).split('/#!/')[1] !== '/' ? (
|
2018-04-05 16:29:22 +03:00
|
|
|
<Logo />
|
|
|
|
) : null}
|
2018-03-29 13:20:28 +03:00
|
|
|
<a
|
|
|
|
href="https://github.com/yldio/joyent-portal/tree/master/packages/ui-toolkit"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
target="_blank"
|
|
|
|
>
|
|
|
|
<GHLogo />
|
|
|
|
</a>
|
|
|
|
</Header>
|
|
|
|
);
|