- {this.props.children}
+
+
+ {children}
)
diff --git a/website/src/ui/Modal.style.js b/website/src/ui/Modal.style.js
index 4b632f6..1a1cc83 100644
--- a/website/src/ui/Modal.style.js
+++ b/website/src/ui/Modal.style.js
@@ -1,11 +1,9 @@
+import { colorInfo } from './style'
+
export default {
modal: {
zIndex: 101,
- background: '#FFFFFF',
- margin: 0,
- padding: '18px 24px',
- width: '80%',
- border: '1px solid $border-primary',
+ background: colorInfo.modalBackground,
borderRadius: 4,
boxShadow: '0 0 25px #000000'
}
diff --git a/website/src/ui/Row.js b/website/src/ui/Row.js
index 63250fb..01c8958 100644
--- a/website/src/ui/Row.js
+++ b/website/src/ui/Row.js
@@ -5,14 +5,15 @@ import PropTypes from 'prop-types'
class Row extends Component {
static propTypes = {
children: PropTypes.node,
- minWidth: PropTypes.oneOfType([ PropTypes.string, PropTypes.number ])
+ minWidth: PropTypes.oneOfType([ PropTypes.string, PropTypes.number ]),
+ width: PropTypes.oneOfType([ PropTypes.string, PropTypes.number ]),
}
render() {
- const { children, minWidth } = this.props
+ const { children, width, minWidth } = this.props
return (
-
{children}
+
{children}
)
}
}
diff --git a/website/src/ui/Text.js b/website/src/ui/Text.js
index 625e9b2..5f174d7 100644
--- a/website/src/ui/Text.js
+++ b/website/src/ui/Text.js
@@ -8,23 +8,30 @@ class Text extends Component {
size: PropTypes.string,
margin: PropTypes.number,
children: PropTypes.node,
- tone: PropTypes.string
+ tone: PropTypes.string,
+ width: PropTypes.oneOfType([ PropTypes.string, PropTypes.number ]),
+ align: PropTypes.string,
}
static defaultProps = {
size: 'medium',
tone: 'normal',
- margin: 0
+ margin: 0,
+ align: 'left',
}
render() {
+ const { margin, width, align } = this.props
+
return (
{this.props.children}
)
}
diff --git a/website/src/ui/style.js b/website/src/ui/style.js
index 13e5280..41a1aea 100644
--- a/website/src/ui/style.js
+++ b/website/src/ui/style.js
@@ -7,13 +7,16 @@ export const colorInfo = {
headerButtonBackground: '#FAFAFA',
headerButtonBackgroundHover: '#DADADA',
disabledButtonBackground: '#A0A0A0',
+ modalBackground: '#FFFFFF',
}
export const sizeInfo = {
headerHeight: 60,
imageMargin: 5, // The margin around images
iconMargin: 10, // The margin around icons
- headerBorderWidth: 1
+ headerBorderWidth: 1,
+ buttonHeight: 40,
+ minButtonWidth: 100,
}
export const fontInfo = {