forked from brave/browser-laptop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves brave#7501 brave#7380 brave#6364 Auditors: @bsclifton @cezaraugusto Test plan: - everything should work the same as was before the chage Refactor of disabled content
- Loading branch information
Showing
5 changed files
with
130 additions
and
111 deletions.
There are no files selected for viewing
115 changes: 115 additions & 0 deletions
115
app/renderer/components/preferences/payment/disabledContent.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
const React = require('react') | ||
const ImmutableComponent = require('../../../../../js/components/immutableComponent') | ||
const globalStyles = require('../../styles/global') | ||
const {StyleSheet, css} = require('aphrodite/no-important') | ||
|
||
// icons | ||
const PIA = require('../../../../extensions/brave/img/private_internet_access.png') | ||
const PIA2 = require('../../../../extensions/brave/img/private_internet_access_2x.png') | ||
const BitGo = require('../../../../extensions/brave/img/bitgo.png') | ||
const BitGo2 = require('../../../../extensions/brave/img/bitgo_2x.png') | ||
const CoinBase = require('../../../../extensions/brave/img/coinbase.png') | ||
const CoinBase2 = require('../../../../extensions/brave/img/coinbase_2x.png') | ||
|
||
class DisabledContent extends ImmutableComponent { | ||
render () { | ||
return <div className='disabledContent'> | ||
<div className={css(styles.paymentsMessage, styles.walletBarMargin)}> | ||
<h3 className={css(styles.h3)} data-l10n-id='paymentsWelcomeTitle' /> | ||
<div className={css(styles.text)} data-l10n-id='paymentsWelcomeText1' /> | ||
<div className={css(styles.boldText, styles.text)} data-l10n-id='paymentsWelcomeText2' /> | ||
<div className={css(styles.text)} data-l10n-id='paymentsWelcomeText3' /> | ||
<div className={css(styles.text)} data-l10n-id='paymentsWelcomeText4' /> | ||
<div className={css(styles.text)}data-l10n-id='paymentsWelcomeText5' /> | ||
<div className={css(styles.text)}> | ||
<span data-l10n-id='paymentsWelcomeText6' /> | ||
<a href='https://brave.com/Payments_FAQ.html' target='_blank' data-l10n-id='paymentsWelcomeLink' /> | ||
<span data-l10n-id='paymentsWelcomeText7' /> | ||
</div> | ||
</div> | ||
<div className={css(styles.paymentsSidebar)}> | ||
<h2 className={css(styles.sideH2)} data-l10n-id='paymentsSidebarText1' /> | ||
<div className={css(styles.textSide)} data-l10n-id='paymentsSidebarText2' /> | ||
<a href='https://www.privateinternetaccess.com/' target='_blank'><span className={css(styles.paymentsSidebarPIA)} /></a> | ||
<div className={css(styles.textSide)} data-l10n-id='paymentsSidebarText3' /> | ||
<a href='https://www.bitgo.com/' target='_blank'><span className={css(styles.paymentsSidebarBitgo)} /></a> | ||
<div className={css(styles.textSide)} data-l10n-id='paymentsSidebarText4' /> | ||
<a href='https://www.coinbase.com/' target='_blank'><span className={css(styles.paymentsSidebarCoinbase)} /></a> | ||
</div> | ||
</div> | ||
} | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
paymentsMessage: { | ||
backgroundColor: globalStyles.color.lightGray, | ||
borderRadius: globalStyles.radius.borderRadiusUIbox, | ||
padding: '40px', | ||
fontSize: globalStyles.fontSize.paymentsContent, | ||
lineHeight: '1.8em', | ||
color: globalStyles.color.mediumGray, | ||
width: '500px', | ||
float: 'left' | ||
}, | ||
|
||
text: { | ||
padding: '0.5em 0' | ||
}, | ||
|
||
textSide: { | ||
fontSize: '12px', | ||
margin: '50px 0 20px 12px' | ||
}, | ||
|
||
h3: { | ||
fontSize: '18px', | ||
paddingBottom: '0.5em' | ||
}, | ||
|
||
sideH2: { | ||
fontSize: '18px', | ||
margin: '70px 0 -15px 12px' | ||
}, | ||
|
||
boldText: { | ||
fontWeight: 'bold' | ||
}, | ||
|
||
walletBarMargin: { | ||
marginTop: '15px' | ||
}, | ||
|
||
paymentsSidebar: { | ||
opacity: 0.8, | ||
width: '200px', | ||
float: 'left', | ||
marginLeft: '23px' | ||
}, | ||
|
||
paymentsSidebarPIA: { | ||
backgroundImage: `-webkit-image-set(url(${PIA}) 1x, url(${PIA2}) 2x)`, | ||
width: '195px', | ||
height: '20px', | ||
margin: '0 0 20px 12px', | ||
display: 'block' | ||
}, | ||
|
||
paymentsSidebarBitgo: { | ||
backgroundImage: `-webkit-image-set(url(${BitGo}) 1x, url(${BitGo2}) 2x)`, | ||
width: '100px', | ||
height: '25px', | ||
margin: '0 0 20px 12px', | ||
display: 'block' | ||
}, | ||
|
||
paymentsSidebarCoinbase: { | ||
backgroundImage: `-webkit-image-set(url(${CoinBase}) 1x, | ||
url(${CoinBase2}) 2x)`, | ||
width: '100px', | ||
height: '35px', | ||
margin: '0 0 20px 12px', | ||
display: 'block' | ||
} | ||
}) | ||
|
||
module.exports = DisabledContent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters