diff --git a/src/components/Flex.js b/src/components/Flex.js
new file mode 100644
index 00000000..54bb1d6c
--- /dev/null
+++ b/src/components/Flex.js
@@ -0,0 +1,34 @@
+import React from 'react';
+
+const Flex = (props) => {
+ const style = {
+ display: 'flex',
+ flex: props.flex ? '1' : null,
+ flexDirection: props.direction,
+ justifyContent: props.justify,
+ alignItems: props.align,
+ };
+
+ return (
+
+ { props.children }
+
+ );
+};
+
+Flex.defaultProps = {
+ direction: 'row',
+ justify: null,
+ align: null,
+ flex: null,
+};
+
+Flex.propTypes = {
+ children: React.PropTypes.arrayOf(React.PropTypes.node).isRequired,
+ direction: React.PropTypes.string,
+ justify: React.PropTypes.string,
+ align: React.PropTypes.string,
+ flex: React.PropTypes.bool,
+};
+
+export default Flex;
\ No newline at end of file
diff --git a/src/components/Layout/Layout.js b/src/components/Layout/Layout.js
index 24c1408d..4984ad5b 100644
--- a/src/components/Layout/Layout.js
+++ b/src/components/Layout/Layout.js
@@ -3,12 +3,14 @@ import { connect } from 'react-redux';
import Link from 'react-router/lib/Link';
import HeaderMenu from './components/HeaderMenu';
+import Flex from 'components/Flex';
import styles from './Layout.scss';
class Layout extends React.Component {
static propTypes = {
-
+ actions: React.PropTypes.arrayOf(React.PropTypes.node),
+ title: React.PropTypes.node,
}
render() {
@@ -18,9 +20,17 @@ class Layout extends React.Component {
{ this.props.teamName }
-
-
-
+
+ { this.props.title }
+
+
+
+ { this.props.actions }
+
+
+
+
+
{ this.props.children }
diff --git a/src/components/Layout/Layout.scss b/src/components/Layout/Layout.scss
index b5985188..c19bf703 100644
--- a/src/components/Layout/Layout.scss
+++ b/src/components/Layout/Layout.scss
@@ -16,6 +16,8 @@
height: 42px;
border-bottom: 1px solid #eee;
+
+ font-size: 14px;
}
.teamName a {
@@ -23,9 +25,19 @@
font-weight: bold;
color: $textColor;
text-decoration: none;
+ font-size: 16px;
}
.content {
display: flex;
justify-content: center;
}
+
+.title {
+ color: #444;
+}
+
+.actions a {
+ text-decoration: none;
+ margin-right: 15px;
+}
diff --git a/src/scenes/Atlas/Atlas.js b/src/scenes/Atlas/Atlas.js
index b50b6476..ce6a3e48 100644
--- a/src/scenes/Atlas/Atlas.js
+++ b/src/scenes/Atlas/Atlas.js
@@ -1,4 +1,5 @@
import React from 'react';
+import Link from 'react-router/lib/Link';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { replace } from 'react-router-redux';
@@ -44,7 +45,12 @@ class Atlas extends React.Component {
const data = this.state.data;
return (
-
+ New document
+ )}
+ title={ data.name }
+ >
{ this.state.isLoading ? (