This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
outline/server/pages/components/Header.js
2018-07-11 21:01:08 -07:00

38 lines
617 B
JavaScript

// @flow
import * as React from 'react';
import styled from 'styled-components';
import Centered from './Centered';
type Props = {
children: React.Node,
};
const Header = ({ children }: Props) => {
return (
<Wrapper>
<Centered>{children}</Centered>
</Wrapper>
);
};
const Wrapper = styled.div`
width: 100%;
padding: 2em;
background: ${props => props.theme.contentHeaderBackground};
margin-bottom: 2em;
p {
font-size: 22px;
font-weight: 500;
color: rgba(0, 0, 0, 0.6);
margin: 0;
}
h1 {
font-size: 3.5em;
margin: 0 0 0.1em;
}
`;
export default Header;