You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
695 B
34 lines
695 B
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* @emails react-core
|
|
* @flow
|
|
*/
|
|
|
|
import Flex from 'components/Flex';
|
|
import React from 'react';
|
|
import {colors, fonts, media} from 'theme';
|
|
|
|
const MarkdownHeader = ({title}: {title: string}) => (
|
|
<Flex type="header" halign="space-between" valign="baseline">
|
|
<h1
|
|
css={{
|
|
color: colors.dark,
|
|
marginBottom: 0,
|
|
marginTop: 100, // BLM
|
|
...fonts.header,
|
|
|
|
[media.size('medium')]: {
|
|
marginTop: 100, // BLM
|
|
},
|
|
|
|
[media.greaterThan('large')]: {
|
|
marginTop: 100, // BLM
|
|
},
|
|
}}>
|
|
{title}
|
|
</h1>
|
|
</Flex>
|
|
);
|
|
|
|
export default MarkdownHeader;
|
|
|