2017-06-08 02:56:52 +02:00
|
|
|
import React from "react";
|
|
|
|
import { Modal } from "component/modal";
|
|
|
|
import { CreditAmount } from "component/common";
|
|
|
|
import Link from "component/link";
|
|
|
|
import RewardLink from "component/rewardLink";
|
|
|
|
|
2017-07-10 19:19:42 +02:00
|
|
|
class ModalWelcome extends React.PureComponent {
|
2017-06-08 02:56:52 +02:00
|
|
|
render() {
|
2017-07-25 00:59:26 +02:00
|
|
|
const { closeModal, isRewardApproved, reward, verifyAccount } = this.props;
|
2017-06-08 02:56:52 +02:00
|
|
|
|
2017-07-25 00:59:26 +02:00
|
|
|
return (
|
|
|
|
<Modal type="custom" isOpen={true} contentLabel="Welcome to LBRY">
|
|
|
|
<section>
|
|
|
|
<h3 className="modal__header">{__("Welcome to LBRY.")}</h3>
|
|
|
|
<p>
|
|
|
|
{__(
|
|
|
|
"Using LBRY is like dating a centaur. Totally normal up top, and"
|
|
|
|
)}
|
|
|
|
{" "}<em>{__("way different")}</em> {__("underneath.")}
|
|
|
|
</p>
|
|
|
|
<p>{__("Up top, LBRY is similar to popular media sites.")}</p>
|
|
|
|
<p>
|
|
|
|
{__(
|
|
|
|
"Below, LBRY is controlled by users -- you -- via blockchain and decentralization."
|
|
|
|
)}
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
{__("Please have")} {" "}
|
|
|
|
{reward &&
|
|
|
|
<CreditAmount amount={parseFloat(reward.reward_amount)} />}
|
|
|
|
{!reward && <span className="credit-amount">{__("??")}</span>}
|
|
|
|
{" "} {__("as a thank you for building content freedom.")}
|
|
|
|
</p>
|
|
|
|
<div className="text-center">
|
|
|
|
{isRewardApproved &&
|
|
|
|
<RewardLink reward_type="new_user" button="primary" />}
|
|
|
|
{!isRewardApproved &&
|
|
|
|
<Link
|
|
|
|
button="primary"
|
|
|
|
onClick={verifyAccount}
|
|
|
|
label={__("Get Welcome Credits")}
|
|
|
|
/>}
|
|
|
|
<Link button="alt" onClick={closeModal} label={__("Skip")} />
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</Modal>
|
|
|
|
);
|
2017-06-08 02:56:52 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-10 19:19:42 +02:00
|
|
|
export default ModalWelcome;
|