mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 09:18:09 +00:00
Styled initil page
This commit is contained in:
parent
bc094c42a1
commit
0a8f8f8872
18
src/js/components/P/index.js
Normal file
18
src/js/components/P/index.js
Normal file
@ -0,0 +1,18 @@
|
||||
import styled from 'styled-components';
|
||||
import PropTypes from 'prop-types';
|
||||
import React from 'react';
|
||||
|
||||
const Wrapper = styled.p`
|
||||
`;
|
||||
|
||||
const P = ({ children, className }) => (
|
||||
<Wrapper className={className}>{children}</Wrapper>
|
||||
);
|
||||
|
||||
P.propTypes = {
|
||||
className: PropTypes.string,
|
||||
children: PropTypes.string.isRequired,
|
||||
};
|
||||
|
||||
|
||||
export default P;
|
@ -1,17 +1,41 @@
|
||||
/* @flow */
|
||||
import styled from 'styled-components';
|
||||
import { H2 } from 'components/Heading';
|
||||
import Button from 'components/Button';
|
||||
import P from 'components/P';
|
||||
import React from 'react';
|
||||
import { bindActionCreators } from 'redux';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
const Wrapper = styled.div`
|
||||
display: flex;
|
||||
flex: 1;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
`;
|
||||
|
||||
const Row = styled.div`
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
`;
|
||||
|
||||
const A = styled.a``;
|
||||
|
||||
const StyledP = styled(P)`
|
||||
margin: 20px 50px;
|
||||
display: block;
|
||||
`;
|
||||
|
||||
const Initialize = () => (
|
||||
<section className="device-settings">
|
||||
<div className="row">
|
||||
<Wrapper>
|
||||
<Row>
|
||||
<H2>Your device is in not initialized</H2>
|
||||
<p>Please use Bitcoin wallet interface to start initialization process</p>
|
||||
<a className="button" href="https://wallet.trezor.io/">Take me to the Bitcoin wallet</a>
|
||||
</div>
|
||||
</section>
|
||||
<StyledP>Please use Bitcoin wallet interface to start initialization process</StyledP>
|
||||
<A href="https://wallet.trezor.io/">
|
||||
<Button text="Take me to the Bitcoin wallet" />
|
||||
</A>
|
||||
</Row>
|
||||
</Wrapper>
|
||||
);
|
||||
|
||||
export default connect(null, null)(Initialize);
|
||||
|
Loading…
Reference in New Issue
Block a user