onion/js/components/whitelabel/wallet/components/cyland/cyland_landing.js

61 lines
2.1 KiB
JavaScript
Raw Normal View History

2015-08-19 13:54:45 +02:00
'use strict';
import React from 'react';
2015-08-19 14:48:22 +02:00
2015-10-01 14:00:56 +02:00
import Button from 'react-bootstrap/lib/Button';
import LinkContainer from 'react-router-bootstrap/lib/LinkContainer';
2015-08-19 13:54:45 +02:00
2015-11-03 10:39:01 +01:00
import AscribeSpinner from '../../../../ascribe_spinner';
2015-08-24 11:22:44 +02:00
import { getLangText } from '../../../../../utils/lang_utils';
2015-10-13 17:29:53 +02:00
import { setDocumentTitle } from '../../../../../utils/dom_utils';
2015-08-19 13:54:45 +02:00
2015-11-03 10:39:01 +01:00
2015-08-19 13:54:45 +02:00
let CylandLanding = React.createClass({
propTypes: {
// Provided from PrizeApp
currentUser: React.PropTypes.object,
whitelabel: React.PropTypes.object.isRequired,
2015-08-19 13:54:45 +02:00
// Provided from router
location: React.PropTypes.object
2015-08-19 13:54:45 +02:00
},
render() {
2015-10-13 17:29:53 +02:00
setDocumentTitle('CYLAND MediaArtLab');
2015-08-19 13:54:45 +02:00
return (
2016-02-05 10:38:59 +01:00
<div className="ascribe-form-wrapper cyland-landing">
2015-08-19 13:54:45 +02:00
<div className="row">
<div className="col-xs-12">
2015-08-19 14:48:22 +02:00
<div className="row" style={{border: '1px solid #CCC', padding: '2em'}}>
<img src={this.props.whitelabel.logo} height="115" />
2015-08-19 14:48:22 +02:00
<div style={{marginTop: '1em'}}>
2015-11-03 10:39:01 +01:00
{getLangText('Submissions to Cyland Archive are powered by') + ' '}
2015-08-19 14:48:22 +02:00
<span>
2015-11-03 10:39:01 +01:00
<span className="icon-ascribe-logo"></span>
2015-08-19 14:48:22 +02:00
</span>
</div>
2015-08-19 13:54:45 +02:00
</div>
2015-08-19 14:48:22 +02:00
<div className="row" style={{border: '1px solid #CCC', borderTop: 'none', padding: '2em'}}>
<div className="col-xs-6">
2015-08-19 14:48:22 +02:00
<p>
2015-08-24 11:22:44 +02:00
{getLangText('Existing ascribe user?')}
2015-08-19 14:48:22 +02:00
</p>
2015-10-01 14:00:56 +02:00
<LinkContainer to="/login">
<Button>
{getLangText('Log in')}
</Button>
</LinkContainer>
2015-08-19 13:54:45 +02:00
</div>
</div>
</div>
</div>
</div>
);
}
});
export default CylandLanding;