accounts-frontend/src/components/auth/Register.jsx

56 lines
2.2 KiB
React
Raw Normal View History

import React, { Component } from 'react';
import { FormattedMessage as Message } from 'react-intl';
import Helmet from 'react-helmet';
import buttons from 'components/ui/buttons.scss';
import { Panel, PanelBody, PanelFooter } from 'components/ui/Panel';
import { Input, Checkbox } from 'components/ui/Form';
import {helpLinks as helpLinksStyles} from './helpLinks.scss';
import messages from './Register.messages';
import activationMessages from './Activation.messages';
export default class Register extends Component {
displayName = 'Register';
render() {
return (
<div>
<Message {...messages.signUpTitle}>
{(msg) => <Helmet title={msg} />}
</Message>
<Panel title={<Message {...messages.signUpTitle} />}>
<PanelBody>
<Input icon="user" color="blue" type="text" placeholder={messages.yourNickname} />
<Input icon="envelope" color="blue" type="email" placeholder={messages.yourEmail} />
<Input icon="key" color="blue" type="password" placeholder={messages.accountPassword} />
<Input icon="key" color="blue" type="password" placeholder={messages.repeatPassword} />
<Checkbox color="blue" label={
<Message {...messages.acceptRules} values={{
link: (
<a href="#">
<Message {...messages.termsOfService} />
</a>
)
}} />
} />
</PanelBody>
<PanelFooter>
<button className={buttons.blue}>
<Message {...messages.signUpButton} />
</button>
</PanelFooter>
</Panel>
<div className={helpLinksStyles}>
<a href="#">
<Message {...activationMessages.didNotReceivedEmail} />
</a>
</div>
</div>
);
}
}