1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-15 15:50:06 +02:00
copilot/packages/cp-frontend/src/components/services/empty.js

58 lines
1.7 KiB
JavaScript
Raw Normal View History

2017-05-16 16:46:04 +03:00
import React from 'react';
import styled from 'styled-components';
import remcalc from 'remcalc';
2017-05-16 16:46:04 +03:00
import { LayoutContainer } from '@components/layout';
import { Col, Row } from 'react-styled-flexboxgrid';
import { Button, P, H2, H3 } from 'joyent-ui-toolkit';
2017-05-16 16:46:04 +03:00
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)};
}
`;
export default () => (
<LayoutContainer>
<Row>
<Col>
2017-05-16 16:46:04 +03:00
<H2>Services</H2>
<Row>
<Col>
2017-05-16 16:46:04 +03:00
<StyledBox>
<Row>
<Col md={10}>
2017-05-16 16:46:04 +03:00
<H3>Import your services</H3>
<P>
You can import your services from a Git repository hosting service. Learn more.
</P>
2017-05-16 16:46:04 +03:00
<Button secondary>from GitHub</Button>
<Button secondary>from GitLab</Button>
<Button secondary>from BitBucket</Button>
</Col>
2017-05-16 16:46:04 +03:00
</Row>
</StyledBox>
<StyledBox>
<Row>
<Col md={9}>
2017-05-16 16:46:04 +03:00
<H3>Alternatively, you can upload or edit manifest file.</H3>
<P>
Manifest is a file describing your services. It is similar to Docker Compose file. You can upload a file from you local machine or edit it manually. Learn more.
</P>
2017-05-16 16:46:04 +03:00
<Button secondary>Upload manifest</Button>
<Button secondary>Edit manifest</Button>
</Col>
2017-05-16 16:46:04 +03:00
</Row>
</StyledBox>
</Col>
2017-05-16 16:46:04 +03:00
</Row>
</Col>
2017-05-16 16:46:04 +03:00
</Row>
</LayoutContainer>
);