mirror of
https://github.com/trezor/trezor-wallet
synced 2024-12-31 19:30:53 +00:00
unify paddings in wallet views
This commit is contained in:
parent
4a97682b1f
commit
9c400f0b6e
@ -1,6 +1,7 @@
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { H2 } from 'components/Heading';
|
||||
import { H1 } from 'components/Heading';
|
||||
import P from 'components/Paragraph';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
const Wrapper = styled.div`
|
||||
@ -15,16 +16,16 @@ const Row = styled.div`
|
||||
padding: 100px 48px;
|
||||
`;
|
||||
|
||||
const P = styled.p`
|
||||
padding: 10px 0px;
|
||||
const StyledP = styled(P)`
|
||||
padding: 0 0 15px 0;
|
||||
text-align: center;
|
||||
`;
|
||||
|
||||
const Bootloader = () => (
|
||||
<Wrapper>
|
||||
<Row>
|
||||
<H2>Your device is in firmware update mode</H2>
|
||||
<P>Please re-connect it</P>
|
||||
<H1>Your device is in firmware update mode</H1>
|
||||
<StyledP>Please re-connect it</StyledP>
|
||||
</Row>
|
||||
</Wrapper>
|
||||
);
|
||||
|
@ -3,7 +3,8 @@ import styled from 'styled-components';
|
||||
import { connect } from 'react-redux';
|
||||
import Content from 'views/Wallet/components/Content';
|
||||
|
||||
import { H2 } from 'components/Heading';
|
||||
import { H1 } from 'components/Heading';
|
||||
import Paragraph from 'components/Paragraph';
|
||||
import DashboardImg from 'images/dashboard.png';
|
||||
|
||||
const Wrapper = styled.div`
|
||||
@ -20,18 +21,17 @@ const Row = styled.div`
|
||||
align-items: center;
|
||||
`;
|
||||
|
||||
const P = styled.p`
|
||||
padding: 24px 0px;
|
||||
const StyledP = styled(Paragraph)`
|
||||
padding: 0 0 15px 0;
|
||||
text-align: center;
|
||||
`;
|
||||
|
||||
const Dashboard = () => (
|
||||
<Content>
|
||||
<Wrapper>
|
||||
<H2>Dashboard</H2>
|
||||
<Row>
|
||||
<H2>Please select your coin</H2>
|
||||
<P>You will gain access to receiving & sending selected coin</P>
|
||||
<H1>Please select your coin</H1>
|
||||
<StyledP>You will gain access to receiving & sending selected coin</StyledP>
|
||||
<img src={DashboardImg} height="34" width="auto" alt="Dashboard" />
|
||||
</Row>
|
||||
</Wrapper>
|
||||
|
@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { H2 } from 'components/Heading';
|
||||
import { H1 } from 'components/Heading';
|
||||
import Icon from 'components/Icon';
|
||||
import colors from 'config/colors';
|
||||
import Button from 'components/Button';
|
||||
@ -24,7 +24,7 @@ const Row = styled.div`
|
||||
`;
|
||||
|
||||
const StyledP = styled(P)`
|
||||
padding: 10px 0 15px 0;
|
||||
padding: 0 0 15px 0;
|
||||
text-align: center;
|
||||
`;
|
||||
|
||||
@ -37,8 +37,8 @@ const DeviceSettings = () => (
|
||||
color={colors.WARNING_PRIMARY}
|
||||
icon={ICONS.WARNING}
|
||||
/>
|
||||
<H2>Device settings is under construction</H2>
|
||||
<StyledP isSmaller>Please use Bitcoin wallet interface to change your device settings</StyledP>
|
||||
<H1>Device settings is under construction</H1>
|
||||
<StyledP>Please use Bitcoin wallet interface to change your device settings</StyledP>
|
||||
<Link href="https://beta-wallet.trezor.io/">
|
||||
<Button>Take me to the Bitcoin wallet</Button>
|
||||
</Link>
|
||||
|
@ -46,6 +46,7 @@ const Image = styled.div`
|
||||
|
||||
const StyledP = styled(P)`
|
||||
padding: 0 0 15px 0;
|
||||
text-align: center;
|
||||
`;
|
||||
|
||||
const FirmwareUpdate = (props: Props) => (
|
||||
|
@ -1,7 +1,8 @@
|
||||
import styled from 'styled-components';
|
||||
import { H2 } from 'components/Heading';
|
||||
import { H1 } from 'components/Heading';
|
||||
import Button from 'components/Button';
|
||||
import Paragraph from 'components/Paragraph';
|
||||
import Content from 'views/Wallet/components/Content';
|
||||
import React from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
@ -20,21 +21,22 @@ const Row = styled.div`
|
||||
const A = styled.a``;
|
||||
|
||||
const StyledParagraph = styled(Paragraph)`
|
||||
margin: 10px 50px;
|
||||
display: block;
|
||||
padding: 0 0 15px 0;
|
||||
text-align: center;
|
||||
`;
|
||||
|
||||
const Initialize = () => (
|
||||
<Wrapper>
|
||||
<Row>
|
||||
<H2>Your device is in not initialized</H2>
|
||||
<StyledParagraph>Please use Bitcoin wallet interface to start initialization process</StyledParagraph>
|
||||
<A href="https://beta-wallet.trezor.io/">
|
||||
<Button>Take me to the Bitcoin wallet</Button>
|
||||
</A>
|
||||
</Row>
|
||||
</Wrapper>
|
||||
<Content>
|
||||
<Wrapper>
|
||||
<Row>
|
||||
<H1>Your device is in not initialized</H1>
|
||||
<StyledParagraph>Please use Bitcoin wallet interface to start initialization process</StyledParagraph>
|
||||
<A href="https://beta-wallet.trezor.io/">
|
||||
<Button>Take me to the Bitcoin wallet</Button>
|
||||
</A>
|
||||
</Row>
|
||||
</Wrapper>
|
||||
</Content>
|
||||
);
|
||||
|
||||
export default connect(null, null)(Initialize);
|
||||
|
@ -1,9 +1,11 @@
|
||||
import styled from 'styled-components';
|
||||
import { H2 } from 'components/Heading';
|
||||
import { H1 } from 'components/Heading';
|
||||
import Paragraph from 'components/Paragraph';
|
||||
import Content from 'views/Wallet/components/Content';
|
||||
import React from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
|
||||
const Wrapper = styled.div`
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@ -17,18 +19,19 @@ const Row = styled.div`
|
||||
`;
|
||||
|
||||
const StyledParagraph = styled(Paragraph)`
|
||||
margin: 10px 50px;
|
||||
display: block;
|
||||
padding: 0 0 15px 0;
|
||||
text-align: center;
|
||||
`;
|
||||
|
||||
const Seedless = () => (
|
||||
<Wrapper>
|
||||
<Row>
|
||||
<H2>Device is in seedless mode</H2>
|
||||
<StyledParagraph>It's not suitable to use this service.</StyledParagraph>
|
||||
</Row>
|
||||
</Wrapper>
|
||||
<Content>
|
||||
<Wrapper>
|
||||
<Row>
|
||||
<H1>Device is in seedless mode</H1>
|
||||
<StyledParagraph>It's not suitable to use this service.</StyledParagraph>
|
||||
</Row>
|
||||
</Wrapper>
|
||||
</Content>
|
||||
);
|
||||
|
||||
export default connect(null, null)(Seedless);
|
||||
|
@ -6,7 +6,7 @@ import colors from 'config/colors';
|
||||
import icons from 'config/icons';
|
||||
|
||||
import Content from 'views/Wallet/components/Content';
|
||||
import { H2 } from 'components/Heading';
|
||||
import { H1 } from 'components/Heading';
|
||||
import Icon from 'components/Icon';
|
||||
import Link from 'components/Link';
|
||||
import Button from 'components/Button';
|
||||
@ -32,7 +32,7 @@ const WalletSettings = () => (
|
||||
color={colors.WARNING_PRIMARY}
|
||||
icon={icons.WARNING}
|
||||
/>
|
||||
<H2>Wallet settings is under construction</H2>
|
||||
<H1>Wallet settings is under construction</H1>
|
||||
<Link to="/">
|
||||
<Button>Take me back</Button>
|
||||
</Link>
|
||||
|
Loading…
Reference in New Issue
Block a user