mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-28 03:08:30 +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 { H2 } from 'components/Heading';
|
||||||
|
import Button from 'components/Button';
|
||||||
|
import P from 'components/P';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { bindActionCreators } from 'redux';
|
|
||||||
import { connect } from 'react-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 = () => (
|
const Initialize = () => (
|
||||||
<section className="device-settings">
|
<Wrapper>
|
||||||
<div className="row">
|
<Row>
|
||||||
<H2>Your device is in not initialized</H2>
|
<H2>Your device is in not initialized</H2>
|
||||||
<p>Please use Bitcoin wallet interface to start initialization process</p>
|
<StyledP>Please use Bitcoin wallet interface to start initialization process</StyledP>
|
||||||
<a className="button" href="https://wallet.trezor.io/">Take me to the Bitcoin wallet</a>
|
<A href="https://wallet.trezor.io/">
|
||||||
</div>
|
<Button text="Take me to the Bitcoin wallet" />
|
||||||
</section>
|
</A>
|
||||||
|
</Row>
|
||||||
|
</Wrapper>
|
||||||
);
|
);
|
||||||
|
|
||||||
export default connect(null, null)(Initialize);
|
export default connect(null, null)(Initialize);
|
||||||
|
Loading…
Reference in New Issue
Block a user