security-checklist/components/Header/index.js

42 lines
1,021 B
JavaScript
Raw Normal View History

// @flow
import * as React from 'react';
import Link from 'next/link';
2019-01-14 17:54:56 +00:00
import { Container, ButtonRowContainer, Label } from './style';
import { PrimaryButton, GhostButton } from '../Button';
2019-01-13 20:30:54 +00:00
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' }}>
2019-01-14 17:54:56 +00:00
<Label>Security Checklist</Label>
2019-01-13 20:30:54 +00:00
<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>
);
}