fix device connect wrapper on landing page

pull/350/head
slowbackspace 5 years ago
parent ce38002b84
commit b9edb4abc8

@ -8,7 +8,7 @@ import Button from 'components/Button';
import { H2 } from 'components/Heading';
import { PULSATE } from 'config/animations';
import colors from 'config/colors';
import { FONT_SIZE, FONT_WEIGHT } from 'config/variables';
import { FONT_SIZE, FONT_WEIGHT, SCREEN_SIZE } from 'config/variables';
import CaseImage from 'images/macbook.png';
import Link from 'components/Link';
@ -28,21 +28,35 @@ const Title = styled.div`
const Wrapper = styled.div`
display: flex;
justify-content: space-around;
align-items: center;
margin: 0 auto;
padding: 36px 0;
justify-content: center;
@media screen and (max-width: ${SCREEN_SIZE.SM}) {
align-content: center;
flex-direction: column;
}
`;
const ConnectTrezorWrapper = styled.div`
position: relative;
top: 1px;
margin: 10px 10px 0px 10px;
animation: ${PULSATE} 1.3s ease-out infinite;
color: ${colors.GREEN_PRIMARY};
font-size: ${FONT_SIZE.BIG};
font-weight: ${FONT_WEIGHT.MEDIUM};
`;
const StyledP = styled(P)`
margin: 10px 10px 0px 10px;
`;
const StyledButton = styled(Button)`
margin: 10px 10px 0px 10px;
`;
const Image = styled.img`
width: 100%;
max-width: 777px;
@ -128,10 +142,10 @@ class ConnectDevice extends PureComponent<Props> {
</ConnectTrezorWrapper>
{this.props.showWebUsb && !this.props.showDisconnect && (
<React.Fragment>
<P>and</P>
<Button isWebUsb>
<StyledP>and</StyledP>
<StyledButton isWebUsb>
Check for devices
</Button>
</StyledButton>
</React.Fragment>
)}
</Wrapper>

Loading…
Cancel
Save