non-playground doc page first draft

Reviewed By: danielbuechele

Differential Revision: D6968540

fbshipit-source-id: c5d408adb1d11c429d72a0f180ce3154ae0922a6
This commit is contained in:
Emil Sjölander
2018-02-13 03:50:36 -08:00
committed by Facebook Github Bot
parent c3de8016c0
commit 7e3136c347
3 changed files with 48 additions and 6 deletions

View File

@@ -13,17 +13,22 @@
import React from 'react';
import Page from '../components/Page';
import Padded from '../components/Padded';
import {Icon} from 'antd';
import {Row, Col} from 'antd';
import Link from 'gatsby-link';
import './index.css';
export default ({pathContext}) => {
return (
<Page withSpacing>
<Page className="doc-block">
<Padded>
<Link to="/docs">
<Icon type="left-circle-o" /> back to overview
<Row>
<Col xl={16} lg={16} md={24} sm={24} xs={24}>
<div className="markdown" dangerouslySetInnerHTML={{__html: pathContext.html}} />
</Col>
</Row>
<Link to="/docs" className="overview">
BACK TO OVERVIEW
</Link>
<div dangerouslySetInnerHTML={{__html: pathContext.html}} />
</Padded>
</Page>
);