joyent-portal/packages/ui-toolkit/src/header/brand.js

32 lines
604 B
JavaScript

import React from 'react';
import styled from 'styled-components';
import is from 'styled-is';
import remcalc from 'remcalc';
import { H2 } from '../text/headings';
const Brand = H2.extend`
text-transform: uppercase;
color: ${props => props.theme.white};
font-size: ${remcalc(29)};
margin: 0;
`;
const Box = styled.div`
align-self: stretch;
order: 0;
width: ${remcalc(150)};
display: flex;
${is('beta')`
align-items: center;
margin-top: ${remcalc(6)}
`}
`;
export default ({ children, ...rest }) => (
<Box {...rest}>
<Brand {...rest}>{children}</Brand>
</Box>
);