2016-02-06 12:47:51 +02:00
|
|
|
import React, { Component, PropTypes } from 'react';
|
|
|
|
|
|
|
|
import { FormattedMessage as Message } from 'react-intl';
|
|
|
|
|
|
|
|
import buttons from 'components/ui/buttons.scss';
|
2016-01-03 23:18:42 +02:00
|
|
|
|
2016-01-04 08:02:13 +02:00
|
|
|
import styles from './appInfo.scss';
|
2016-02-06 12:47:51 +02:00
|
|
|
import messages from './AppInfo.messages';
|
|
|
|
|
|
|
|
export default class AppInfo extends Component {
|
|
|
|
static displayName = 'AppInfo';
|
|
|
|
|
|
|
|
static propTypes = {
|
|
|
|
name: PropTypes.string.isRequired,
|
|
|
|
description: PropTypes.string.isRequired,
|
|
|
|
onGoToAuth: PropTypes.func.isRequired
|
|
|
|
};
|
2016-01-04 08:02:13 +02:00
|
|
|
|
2016-01-03 23:18:42 +02:00
|
|
|
render() {
|
2016-02-06 12:47:51 +02:00
|
|
|
var { name, description, onGoToAuth } = this.props;
|
2016-01-03 23:18:42 +02:00
|
|
|
|
|
|
|
return (
|
2016-01-04 08:02:13 +02:00
|
|
|
<div className={styles.appInfo}>
|
|
|
|
<div className={styles.logoContainer}>
|
|
|
|
<h2 className={styles.logo}>{name}</h2>
|
2016-01-03 23:18:42 +02:00
|
|
|
</div>
|
2016-01-04 08:02:13 +02:00
|
|
|
<div className={styles.descriptionContainer}>
|
|
|
|
<p className={styles.description}>
|
|
|
|
{description}
|
2016-01-03 23:18:42 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
2016-02-06 12:47:51 +02:00
|
|
|
<div className={styles.goToAuth}>
|
|
|
|
<button className={buttons.green} onClick={onGoToAuth}>
|
|
|
|
<Message {...messages.goToAuth} />
|
|
|
|
</button>
|
|
|
|
</div>
|
2016-01-03 23:18:42 +02:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|