security-checklist/components/Header/index.js
2019-01-13 12:30:54 -08:00

40 lines
970 B
JavaScript

// @flow
import * as React from 'react';
import Link from 'next/link';
import { Container, ButtonRowContainer } from './style';
import { PrimaryButton, GhostButton } from '../Button';
import Logo from './Logo';
type Props = {
showHeaderShadow: boolean,
};
export default function Header(props: Props) {
const { showHeaderShadow } = props;
return (
<Container showHeaderShadow={showHeaderShadow} data-cy="header">
<Link href="/">
<a style={{ display: 'flex', alignItems: 'center' }}>
<Logo />
</a>
</Link>
<ButtonRowContainer>
<Link href="/about">
<a>
<GhostButton>About</GhostButton>
</a>
</Link>
<a
href="https://github.com/brianlovin/security-checklist"
target="_blank"
rel="noopener noreferrer"
>
<PrimaryButton>Contribute</PrimaryButton>
</a>
</ButtonRowContainer>
</Container>
);
}