updating empty service component

This commit is contained in:
Alex Windett 2017-02-06 15:30:33 +00:00
parent 9c0cbd8556
commit a4b6f64c39

View File

@ -1,13 +1,25 @@
const React = require('react'); const React = require('react');
const ReactIntl = require('react-intl'); const ReactIntl = require('react-intl');
const Styled = require('styled-components');
const Button = require('@ui/components/button'); const Button = require('@ui/components/button');
const Column = require('@ui/components/column'); const Column = require('@ui/components/column');
const Row = require('@ui/components/row'); const Row = require('@ui/components/row');
const BaseElements = require('@ui/components/base-elements'); const BaseElements = require('@ui/components/base-elements');
const fns = require('@ui/shared/functions');
const {
default: styled
} = Styled;
const {
remcalc,
} = fns;
const { const {
P, P,
H2,
H3, H3,
} = BaseElements; } = BaseElements;
@ -15,34 +27,60 @@ const {
FormattedMessage FormattedMessage
} = ReactIntl; } = ReactIntl;
const StyledBox = styled.div`
box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.05);
border: solid 1px #d8d8d8;
padding: ${remcalc('6 18 24')};
& + & {
margin-top: ${remcalc(24)};
}
`;
module.exports = () => ( module.exports = () => (
<div> <div>
<Row name='empty-services'> <Row name='empty-services'>
<Column md={6} xs={12}> <Column>
<H2>
<FormattedMessage id='services' />
</H2>
<Row>
<Column>
<StyledBox>
<Row>
<Column md={10}>
<H3> <H3>
<FormattedMessage id='add-services' /> <FormattedMessage id='import-services-title' />
</H3> </H3>
<P> <P>
<FormattedMessage id='no-services' /> <FormattedMessage id='import-services-body' />
</P> </P>
<Button secondary>from GitHub</Button>
<Button secondary>from GitLab</Button>
<Button secondary>from BitBucket</Button>
</Column> </Column>
</Row> </Row>
</StyledBox>
<StyledBox>
<Row> <Row>
<Column xs={12}> <Column md={9}>
<Button> <H3>
<FormattedMessage id='edit-project-manifest' /> <FormattedMessage id='alt-import-services-title' />
</Button> </H3>
</Column>
</Row>
<Row>
<Column xs={12}>
<P> <P>
<FormattedMessage id='or-bring-in-from' /> <FormattedMessage id='alt-import-services-body' />
</P> </P>
<Button secondary>GitHub</Button> <Button secondary>Upload manifest</Button>
<Button secondary>BitBucket</Button> <Button secondary>Edit manifest</Button>
</Column>
</Row>
</StyledBox>
</Column>
</Row>
</Column> </Column>
</Row> </Row>
</div> </div>