fix: minor color and spacing issues

This commit is contained in:
Sean Yesmunt 2019-01-08 01:45:20 -05:00
parent d69e622172
commit cac767a3b8
7 changed files with 29 additions and 44 deletions

View file

@ -66,9 +66,7 @@ class InviteList extends React.PureComponent<Props> {
</tbody> </tbody>
</table> </table>
)} )}
</div>
<div className="card__content">
<div className="help"> <div className="help">
{__( {__(
'The maximum number of invite rewards is currently limited. Invite reward can only be claimed if the invitee passes the humanness test.' 'The maximum number of invite rewards is currently limited. Invite reward can only be claimed if the invitee passes the humanness test.'

View file

@ -33,7 +33,7 @@ class FormInviteNew extends React.PureComponent {
return ( return (
<Form onSubmit={this.handleSubmit}> <Form onSubmit={this.handleSubmit}>
<FormRow stretch> <FormRow padded>
<FormField <FormField
stretch stretch
type="text" type="text"
@ -48,10 +48,8 @@ class FormInviteNew extends React.PureComponent {
/> />
</FormRow> </FormRow>
<div className="card__content"> <div className="card__actions">
<div className="card__actions"> <Submit label="Invite" disabled={isPending} />
<Submit label="Invite" disabled={isPending} />
</div>
</div> </div>
</Form> </Form>
); );
@ -94,9 +92,7 @@ class InviteNew extends React.PureComponent {
isPending={isPending} isPending={isPending}
rewardAmount={rewardAmount} rewardAmount={rewardAmount}
/> />
</div>
<div className="card__content">
<p className="help"> <p className="help">
{__('Read our')}{' '} {__('Read our')}{' '}
<Button button="link" label={__('FAQ')} href="https://lbry.io/faq/referrals" />{' '} <Button button="link" label={__('FAQ')} href="https://lbry.io/faq/referrals" />{' '}

View file

@ -41,7 +41,7 @@ class UserEmailNew extends React.PureComponent<Props, State> {
const { cancelButton, errorMessage, isPending } = this.props; const { cancelButton, errorMessage, isPending } = this.props;
return ( return (
<span> <React.Fragment>
<p> <p>
{__("We'll let you know about LBRY updates, security issues, and great new content.")} {__("We'll let you know about LBRY updates, security issues, and great new content.")}
</p> </p>
@ -71,7 +71,7 @@ class UserEmailNew extends React.PureComponent<Props, State> {
{cancelButton} {cancelButton}
</div> </div>
</Form> </Form>
</span> </React.Fragment>
); );
} }
} }

View file

@ -31,29 +31,25 @@ class UserVerify extends React.PureComponent<Props> {
<section className="card card--section"> <section className="card card--section">
<header className="card__header"> <header className="card__header">
<h1 className="card__title">{__('Final Human Proof')}</h1> <h1 className="card__title">{__('Final Human Proof')}</h1>
</header> <p className="card__subtitle">
<div className="card__content">
<p>
Finally, please complete <strong>one and only one</strong> of the options below. Finally, please complete <strong>one and only one</strong> of the options below.
</p> </p>
</div> </header>
</section> </section>
<section className="card card--section"> <section className="card card--section">
<header className="card__header"> <header className="card__header">
<h2 className="card__title">{__('1) Proof via Credit')}</h2> <h2 className="card__title">{__('1) Proof via Credit')}</h2>
</header> <p className="card__subtitle">
<div className="card__content">
<p>
{`${__( {`${__(
'If you have a valid credit or debit card, you can use it to instantly prove your humanity.' 'If you have a valid credit or debit card, you can use it to instantly prove your humanity.'
)} ${__( )} ${__(
'LBRY does not store your credit card information. There is no charge at all for this, now or in the future.' 'LBRY does not store your credit card information. There is no charge at all for this, now or in the future.'
)} `} )} `}
</p> </p>
</header>
<div className="card__content">
<div className="card__actions"> <div className="card__actions">
{errorMessage && <p className="form-field__error">{errorMessage}</p>} {errorMessage && <p className="form-field__error">{errorMessage}</p>}
<CardVerify <CardVerify
@ -63,10 +59,8 @@ class UserVerify extends React.PureComponent<Props> {
stripeKey={Lbryio.getStripeToken()} stripeKey={Lbryio.getStripeToken()}
/> />
</div> </div>
</div>
<div className="card__content"> <div className="help">
<div className="meta">
{__('A $1 authorization may temporarily appear with your provider.')}{' '} {__('A $1 authorization may temporarily appear with your provider.')}{' '}
<Button <Button
button="link" button="link"
@ -80,15 +74,14 @@ class UserVerify extends React.PureComponent<Props> {
<section className="card card--section"> <section className="card card--section">
<header className="card__header"> <header className="card__header">
<h2 className="card__title">{__('2) Proof via Phone')}</h2> <h2 className="card__title">{__('2) Proof via Phone')}</h2>
</header> <p className="card__subtitle">
<div className="card__content">
<p>
{`${__( {`${__(
'You will receive an SMS text message confirming that your phone number is correct.' 'You will receive an SMS text message confirming that your phone number is correct.'
)}`} )}`}
</p> </p>
</header>
<div className="card__content">
<div className="card__actions"> <div className="card__actions">
<Button <Button
onClick={() => { onClick={() => {
@ -99,10 +92,8 @@ class UserVerify extends React.PureComponent<Props> {
label={__('Submit Phone Number')} label={__('Submit Phone Number')}
/> />
</div> </div>
</div>
<div className="card__content"> <div className="help">
<div className="meta">
{__('Standard messaging rates apply. Having trouble?')}{' '} {__('Standard messaging rates apply. Having trouble?')}{' '}
<Button button="link" href="https://lbry.io/faq/phone" label={__('Read more.')} /> <Button button="link" href="https://lbry.io/faq/phone" label={__('Read more.')} />
</div> </div>
@ -112,21 +103,17 @@ class UserVerify extends React.PureComponent<Props> {
<section className="card card--section"> <section className="card card--section">
<header className="card__header"> <header className="card__header">
<h2 className="card__title">{__('3) Proof via Chat')}</h2> <h2 className="card__title">{__('3) Proof via Chat')}</h2>
</header> <p className="card__subtitle">
<div className="card__content">
<p>
{__( {__(
'A moderator capable of approving you is typically available in the #verification channel of our chat room.' 'A moderator capable of approving you is typically available in the #verification channel of our chat room.'
)} )}{' '}
</p>
<p>
{__( {__(
'This process will likely involve providing proof of a stable and established online or real-life identity.' 'This process will likely involve providing proof of a stable and established online or real-life identity.'
)} )}
</p> </p>
</header>
<div className="card__content">
<div className="card__actions"> <div className="card__actions">
<Button <Button
href="https://chat.lbry.io" href="https://chat.lbry.io"
@ -141,14 +128,14 @@ class UserVerify extends React.PureComponent<Props> {
<section className="card card--section"> <section className="card card--section">
<header className="card__header"> <header className="card__header">
<h2 className="card__title">{__('Or, Skip It Entirely')}</h2> <h2 className="card__title">{__('Or, Skip It Entirely')}</h2>
</header> <p className="card__subtitle">
<div className="card__content">
<p>
{__( {__(
'You can continue without this step, but you will not be eligible to earn rewards.' 'You can continue without this step, but you will not be eligible to earn rewards.'
)} )}
</p> </p>
</header>
<div className="card__content">
<div className="card__actions"> <div className="card__actions">
<Button <Button
onClick={() => navigate('/discover')} onClick={() => navigate('/discover')}

View file

@ -50,7 +50,7 @@ class ModalAutoUpdateDownloaded extends React.PureComponent<Props, State> {
'A new version of LBRY has been released, downloaded, and is ready for you to use pending a restart.' 'A new version of LBRY has been released, downloaded, and is ready for you to use pending a restart.'
)} )}
</p> </p>
<p className="meta text-center"> <p className="help">
{__('Want to know what has changed?')} See the{' '} {__('Want to know what has changed?')} See the{' '}
<Button <Button
button="link" button="link"

View file

@ -28,7 +28,7 @@ class ModalUpgrade extends React.PureComponent<Props> {
{__('An updated version of LBRY is now available.')}{' '} {__('An updated version of LBRY is now available.')}{' '}
{__('Your version is out of date and may be unreliable or insecure.')} {__('Your version is out of date and may be unreliable or insecure.')}
</p> </p>
<p className="meta"> <p className="help">
{__('Want to know what has changed?')} See the{' '} {__('Want to know what has changed?')} See the{' '}
<Button <Button
button="link" button="link"

View file

@ -28,4 +28,8 @@
.item-list__item--selected { .item-list__item--selected {
background-color: $lbry-gray-1; background-color: $lbry-gray-1;
html[data-theme='dark'] & {
background-color: rgba($lbry-black, 0.5);
}
} }