mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-09 15:40:55 +00:00
messages for landing screen
This commit is contained in:
parent
571af4527f
commit
9426d7dbac
@ -12,6 +12,9 @@ import { FONT_SIZE, FONT_WEIGHT, SCREEN_SIZE } from 'config/variables';
|
|||||||
import CaseImage from 'images/macbook.png';
|
import CaseImage from 'images/macbook.png';
|
||||||
import Link from 'components/Link';
|
import Link from 'components/Link';
|
||||||
|
|
||||||
|
import { FormattedMessage } from 'react-intl';
|
||||||
|
import l10nMessages from './index.messages';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
deviceLabel: string,
|
deviceLabel: string,
|
||||||
showWebUsb: boolean,
|
showWebUsb: boolean,
|
||||||
@ -24,6 +27,8 @@ const StyledConnectDevice = styled.div`
|
|||||||
|
|
||||||
const Title = styled.div`
|
const Title = styled.div`
|
||||||
margin-top: 60px;
|
margin-top: 60px;
|
||||||
|
max-width: 800px;
|
||||||
|
text-align: center;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const Wrapper = styled.div`
|
const Wrapper = styled.div`
|
||||||
@ -60,7 +65,7 @@ const StyledButton = styled(Button)`
|
|||||||
|
|
||||||
const Image = styled.img`
|
const Image = styled.img`
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 777px;
|
max-width: 850px;
|
||||||
height: auto;
|
height: auto;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
@ -126,9 +131,8 @@ class ConnectDevice extends PureComponent<Props> {
|
|||||||
return (
|
return (
|
||||||
<StyledConnectDevice>
|
<StyledConnectDevice>
|
||||||
<Title>
|
<Title>
|
||||||
<H2 claim>The private bank in your hands.</H2>
|
<H2 claim><FormattedMessage {...l10nMessages.TR_THE_PRIVATE_BANK_IN_YOUR_HANDS} /></H2>
|
||||||
<P>Trezor Wallet is an easy-to-use interface for your Trezor.</P>
|
<P><FormattedMessage {...l10nMessages.TR_TREZOR_WALLET_IS_AN_EASY_DASH} /></P>
|
||||||
<P>Trezor Wallet allows you to easily control your funds, manage your balance and initiate transfers.</P>
|
|
||||||
</Title>
|
</Title>
|
||||||
|
|
||||||
<Wrapper>
|
<Wrapper>
|
||||||
@ -137,15 +141,15 @@ class ConnectDevice extends PureComponent<Props> {
|
|||||||
{!this.props.showDisconnect && (
|
{!this.props.showDisconnect && (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
{this.getTrezorDeviceImage()}
|
{this.getTrezorDeviceImage()}
|
||||||
Connect Trezor
|
<FormattedMessage {...l10nMessages.TR_CONNECT_TREZOR_TO_CONTINUE} />
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
)}
|
)}
|
||||||
</ConnectTrezorWrapper>
|
</ConnectTrezorWrapper>
|
||||||
{this.props.showWebUsb && !this.props.showDisconnect && (
|
{this.props.showWebUsb && !this.props.showDisconnect && (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<StyledP>and</StyledP>
|
<StyledP><FormattedMessage {...l10nMessages.TR_AND} /></StyledP>
|
||||||
<StyledButton isWebUsb>
|
<StyledButton isWebUsb>
|
||||||
Check for devices
|
<FormattedMessage {...l10nMessages.TR_CHECK_FOR_DEVICES} />
|
||||||
</StyledButton>
|
</StyledButton>
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
)}
|
)}
|
||||||
@ -156,23 +160,37 @@ class ConnectDevice extends PureComponent<Props> {
|
|||||||
<Footer>
|
<Footer>
|
||||||
{this.props.showWebUsb && (
|
{this.props.showWebUsb && (
|
||||||
<P>
|
<P>
|
||||||
<FooterText>Device not recognized?</FooterText>
|
<FooterText>
|
||||||
|
<FormattedMessage
|
||||||
|
{...l10nMessages.TR_DEVICE_NOT_RECOGNIZED_TRY_INSTALLING}
|
||||||
|
values={{
|
||||||
|
link: (
|
||||||
<StyledLink
|
<StyledLink
|
||||||
to="/bridge"
|
to="/bridge"
|
||||||
isGreen
|
isGreen
|
||||||
>Try installing the Trezor Bridge.
|
>Trezor Bridge
|
||||||
</StyledLink>
|
</StyledLink>
|
||||||
|
),
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</FooterText>
|
||||||
</P>
|
</P>
|
||||||
)}
|
)}
|
||||||
<P>
|
<P>
|
||||||
<FooterText>
|
<FooterText>
|
||||||
Don't have Trezor?
|
<FormattedMessage
|
||||||
</FooterText>
|
{...l10nMessages.TR_DONT_HAVE_A_TREZOR}
|
||||||
|
values={{
|
||||||
|
getOne: (
|
||||||
<StyledLink
|
<StyledLink
|
||||||
href="https://trezor.io/"
|
href="https://trezor.io/"
|
||||||
isGreen
|
isGreen
|
||||||
>Get one
|
><FormattedMessage {...l10nMessages.TR_GET_ONE} />
|
||||||
</StyledLink>
|
</StyledLink>
|
||||||
|
),
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</FooterText>
|
||||||
</P>
|
</P>
|
||||||
</Footer>
|
</Footer>
|
||||||
</StyledConnectDevice>
|
</StyledConnectDevice>
|
||||||
|
41
src/views/Landing/components/ConnectDevice/index.messages.js
Normal file
41
src/views/Landing/components/ConnectDevice/index.messages.js
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
/* @flow */
|
||||||
|
import { defineMessages } from 'react-intl';
|
||||||
|
import type { Messages } from 'flowtype/npm/react-intl';
|
||||||
|
|
||||||
|
const definedMessages: Messages = defineMessages({
|
||||||
|
TR_TREZOR_WALLET_IS_AN_EASY_DASH: {
|
||||||
|
id: 'TR_TREZOR_WALLET_IS_AN_EASY_DASH',
|
||||||
|
defaultMessage: 'Trezor Wallet is an easy-to-use interface for your Trezor. Trezor Wallet allows you to easily control your funds, manage your balance and initiate transfers.',
|
||||||
|
},
|
||||||
|
TR_THE_PRIVATE_BANK_IN_YOUR_HANDS: {
|
||||||
|
id: 'TR_THE_PRIVATE_BANK_IN_YOUR_HANDS',
|
||||||
|
defaultMessage: 'The private bank in your hands.',
|
||||||
|
},
|
||||||
|
TR_CONNECT_TREZOR_TO_CONTINUE: {
|
||||||
|
id: 'TR_CONNECT_TREZOR_TO_CONTINUE',
|
||||||
|
defaultMessage: 'Connect Trezor to continue',
|
||||||
|
},
|
||||||
|
TR_AND: {
|
||||||
|
id: 'TR_AND',
|
||||||
|
defaultMessage: 'and',
|
||||||
|
},
|
||||||
|
TR_CHECK_FOR_DEVICES: {
|
||||||
|
id: 'TR_CHECK_FOR_DEVICES',
|
||||||
|
defaultMessage: 'Check for devices',
|
||||||
|
},
|
||||||
|
TR_DEVICE_NOT_RECOGNIZED_TRY_INSTALLING: {
|
||||||
|
id: 'TR_DEVICE_NOT_RECOGNIZED_TRY_INSTALLING',
|
||||||
|
defaultMessage: 'Device not recognized? Try installing the {link}.',
|
||||||
|
},
|
||||||
|
TR_DONT_HAVE_A_TREZOR: {
|
||||||
|
id: 'TR_DONT_HAVE_A_TREZOR_GET',
|
||||||
|
defaultMessage: 'Don\'t have a Trezor? {getOne}',
|
||||||
|
},
|
||||||
|
TR_GET_ONE: {
|
||||||
|
id: 'TR_GET_ONE',
|
||||||
|
description: 'Part of the sentence: Dont have a Trezor? Get one',
|
||||||
|
defaultMessage: 'Get one',
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
export default definedMessages;
|
@ -0,0 +1,107 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"id": "TR_TREZOR_WALLET_IS_AN_EASY_DASH",
|
||||||
|
"defaultMessage": "Trezor Wallet is an easy-to-use interface for your Trezor. Trezor Wallet allows you to easily control your funds, manage your balance and initiate transfers.",
|
||||||
|
"file": "src/views/Landing/components/ConnectDevice/index.messages.js",
|
||||||
|
"start": {
|
||||||
|
"line": 6,
|
||||||
|
"column": 38
|
||||||
|
},
|
||||||
|
"end": {
|
||||||
|
"line": 9,
|
||||||
|
"column": 5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "TR_THE_PRIVATE_BANK_IN_YOUR_HANDS",
|
||||||
|
"defaultMessage": "The private bank in your hands.",
|
||||||
|
"file": "src/views/Landing/components/ConnectDevice/index.messages.js",
|
||||||
|
"start": {
|
||||||
|
"line": 10,
|
||||||
|
"column": 39
|
||||||
|
},
|
||||||
|
"end": {
|
||||||
|
"line": 13,
|
||||||
|
"column": 5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "TR_CONNECT_TREZOR_TO_CONTINUE",
|
||||||
|
"defaultMessage": "Connect Trezor to continue",
|
||||||
|
"file": "src/views/Landing/components/ConnectDevice/index.messages.js",
|
||||||
|
"start": {
|
||||||
|
"line": 14,
|
||||||
|
"column": 35
|
||||||
|
},
|
||||||
|
"end": {
|
||||||
|
"line": 17,
|
||||||
|
"column": 5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "TR_AND",
|
||||||
|
"defaultMessage": "and",
|
||||||
|
"file": "src/views/Landing/components/ConnectDevice/index.messages.js",
|
||||||
|
"start": {
|
||||||
|
"line": 18,
|
||||||
|
"column": 12
|
||||||
|
},
|
||||||
|
"end": {
|
||||||
|
"line": 21,
|
||||||
|
"column": 5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "TR_CHECK_FOR_DEVICES",
|
||||||
|
"defaultMessage": "Check for devices",
|
||||||
|
"file": "src/views/Landing/components/ConnectDevice/index.messages.js",
|
||||||
|
"start": {
|
||||||
|
"line": 22,
|
||||||
|
"column": 26
|
||||||
|
},
|
||||||
|
"end": {
|
||||||
|
"line": 25,
|
||||||
|
"column": 5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "TR_DEVICE_NOT_RECOGNIZED_TRY_INSTALLING",
|
||||||
|
"defaultMessage": "Device not recognized? Try installing the {link}.",
|
||||||
|
"file": "src/views/Landing/components/ConnectDevice/index.messages.js",
|
||||||
|
"start": {
|
||||||
|
"line": 26,
|
||||||
|
"column": 45
|
||||||
|
},
|
||||||
|
"end": {
|
||||||
|
"line": 29,
|
||||||
|
"column": 5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "TR_DONT_HAVE_A_TREZOR_GET",
|
||||||
|
"defaultMessage": "Don't have a Trezor? {getOne}",
|
||||||
|
"file": "src/views/Landing/components/ConnectDevice/index.messages.js",
|
||||||
|
"start": {
|
||||||
|
"line": 30,
|
||||||
|
"column": 27
|
||||||
|
},
|
||||||
|
"end": {
|
||||||
|
"line": 33,
|
||||||
|
"column": 5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "TR_GET_ONE",
|
||||||
|
"description": "Part of the sentence: Dont have a Trezor? Get one",
|
||||||
|
"defaultMessage": "Get one",
|
||||||
|
"file": "src/views/Landing/components/ConnectDevice/index.messages.js",
|
||||||
|
"start": {
|
||||||
|
"line": 34,
|
||||||
|
"column": 16
|
||||||
|
},
|
||||||
|
"end": {
|
||||||
|
"line": 38,
|
||||||
|
"column": 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
Loading…
Reference in New Issue
Block a user