diff --git a/website/src/Home/Home.js b/website/src/Home/Home.js index e3ae828..d780ee7 100644 --- a/website/src/Home/Home.js +++ b/website/src/Home/Home.js @@ -13,7 +13,7 @@ export class Home extends Component { this.props.onChangeTitle('Home') } - componentDidUnmount() { + componentWillUnmount() { this.props.onChangeTitle('') } diff --git a/website/src/Modal/MessageModal.js b/website/src/Modal/MessageModal.js index 7c2c6ba..f01209a 100644 --- a/website/src/Modal/MessageModal.js +++ b/website/src/Modal/MessageModal.js @@ -37,7 +37,7 @@ export class MessageModal extends React.Component {
- + diff --git a/website/src/Modal/YesNoMessageModal.js b/website/src/Modal/YesNoMessageModal.js index e9efb73..c5c6190 100644 --- a/website/src/Modal/YesNoMessageModal.js +++ b/website/src/Modal/YesNoMessageModal.js @@ -35,7 +35,7 @@ export class YesNoMessageModal extends React.Component { - + diff --git a/website/src/ui/Button.js b/website/src/ui/Button.js index 03ccb50..f8b7fe2 100644 --- a/website/src/ui/Button.js +++ b/website/src/ui/Button.js @@ -49,7 +49,7 @@ class Button extends Component { return ( ) } diff --git a/website/src/ui/HeaderButton.js b/website/src/ui/HeaderButton.js index e637be2..ab5b82a 100644 --- a/website/src/ui/HeaderButton.js +++ b/website/src/ui/HeaderButton.js @@ -12,18 +12,16 @@ class HeaderButton extends Component { } static style = { - button: { - background: colorInfo.headerButtonBackground, - verticalAlign: 'middle', - borderWidth: 0, - padding: '0 0 0 0', - outline: 'none', - ':hover': { - background: colorInfo.headerButtonBackgroundHover, - }, - ':active': { - background: colorInfo.headerButtonBackgroundActive, - } + background: colorInfo.headerButtonBackground, + verticalAlign: 'middle', + borderWidth: 0, + padding: '0 0 0 0', + outline: 'none', + ':hover': { + background: colorInfo.headerButtonBackgroundHover, + }, + ':active': { + background: colorInfo.headerButtonBackgroundActive, } } @@ -33,13 +31,13 @@ class HeaderButton extends Component { let content = null if (image) { - content = () + content = () } else if (icon) { - content = () + content = () } return ( - ) diff --git a/website/src/ui/HeaderText.js b/website/src/ui/HeaderText.js index 0d59c17..7b6a3be 100644 --- a/website/src/ui/HeaderText.js +++ b/website/src/ui/HeaderText.js @@ -10,16 +10,16 @@ class HeaderText extends Component { static style = { position: 'relative', - top: 3, + top: sizeInfo.headerTextOffset, display: 'inline-block', - fontSize: fontInfo.size.huge, + fontSize: fontInfo.size.header, fontFamily: fontInfo.family, color: fontInfo.color.normal, textAlign: 'left', background: 'transparent', verticalAlign: 'middle', borderWidth: 0, - paddingLeft: 10, + paddingLeft: sizeInfo.headerPaddingLeft, } render() { diff --git a/website/src/ui/Image.js b/website/src/ui/Image.js index ca6cf9e..f14a15b 100644 --- a/website/src/ui/Image.js +++ b/website/src/ui/Image.js @@ -8,11 +8,12 @@ class Image extends Component { source: PropTypes.string, width: PropTypes.number, height: PropTypes.number, + margin: PropTypes.number, } render() { let { source, width, height } = this.props - const margin = sizeInfo.imageDefaultMargin + const margin = this.props.margin || sizeInfo.imageDefaultMargin width = width ? (width - margin * 2) : null height = height ? (height - margin * 2) : null diff --git a/website/src/ui/PanelButton.js b/website/src/ui/PanelButton.js index 13e75ff..915aef0 100644 --- a/website/src/ui/PanelButton.js +++ b/website/src/ui/PanelButton.js @@ -45,7 +45,7 @@ class PanelButton extends Component {