Added more views and atlas APIs

This commit is contained in:
Jori Lallo
2016-05-07 11:52:08 -07:00
parent 84ba65f72a
commit cbe9c0b6ee
22 changed files with 397 additions and 27 deletions

View File

@@ -0,0 +1,27 @@
import React from 'react';
import styles from './CenteredContent.scss';
const CenteredContent = (props) => {
const style = {
maxWidth: props.maxWidth,
...props.style,
};
return (
<div className={ styles.content } style={ style }>
{ props.children }
</div>
);
};
CenteredContent.defaultProps = {
maxWidth: '600px',
};
CenteredContent.propTypes = {
children: React.PropTypes.node.isRequired,
style: React.PropTypes.object,
};
export default CenteredContent;

View File

@@ -0,0 +1,5 @@
.content {
display: flex;
flex: 1;
margin: 40px 20px;
}

View File

@@ -0,0 +1,2 @@
import CenteredContent from './CenteredContent';
export default CenteredContent;