Improve designs in Receive modal

This commit is contained in:
Germán Martínez 2019-09-09 14:51:04 +02:00
parent efdba0fd57
commit bef4631c71
1 changed files with 14 additions and 11 deletions

View File

@ -14,13 +14,13 @@ import Row from '~/components/layout/Row'
import Hairline from '~/components/layout/Hairline' import Hairline from '~/components/layout/Hairline'
import Col from '~/components/layout/Col' import Col from '~/components/layout/Col'
import { import {
xxl, lg, sm, md, background, secondary, lg, md, secondary, secondaryText,
} from '~/theme/variables' } from '~/theme/variables'
import { copyToClipboard } from '~/utils/clipboard' import { copyToClipboard } from '~/utils/clipboard'
const styles = () => ({ const styles = () => ({
heading: { heading: {
padding: `${sm} ${lg}`, padding: `${md} ${lg}`,
justifyContent: 'space-between', justifyContent: 'space-between',
maxHeight: '75px', maxHeight: '75px',
boxSizing: 'border-box', boxSizing: 'border-box',
@ -32,24 +32,27 @@ const styles = () => ({
height: '35px', height: '35px',
width: '35px', width: '35px',
}, },
detailsContainer: {
backgroundColor: background,
},
qrContainer: { qrContainer: {
backgroundColor: '#fff', backgroundColor: '#fff',
padding: md, padding: md,
borderRadius: '3px', borderRadius: '6px',
boxShadow: '0 0 5px 0 rgba(74, 85, 121, 0.5)', border: `1px solid ${secondaryText}`,
}, },
safeName: { safeName: {
margin: `${xxl} 0 20px`, margin: `${lg} 0 ${lg}`,
}, },
buttonRow: { buttonRow: {
height: '84px', height: '84px',
justifyContent: 'center', justifyContent: 'center',
'& > button': {
fontFamily: 'Averta',
fontSize: '16px',
boxShadow: '1px 2px 10px 0 rgba(212, 212, 211, 0.59)',
},
}, },
addressContainer: { addressContainer: {
marginTop: '28px', marginTop: '25px',
marginBottom: '25px',
}, },
address: { address: {
marginLeft: '6px', marginLeft: '6px',
@ -81,7 +84,7 @@ const Receive = ({
<Close className={classes.close} /> <Close className={classes.close} />
</IconButton> </IconButton>
</Row> </Row>
<Col layout="column" middle="xs" className={classes.detailsContainer}> <Col layout="column" middle="xs">
<Hairline /> <Hairline />
<Paragraph className={classes.safeName} weight="bolder" size="xl" noMargin> <Paragraph className={classes.safeName} weight="bolder" size="xl" noMargin>
{safeName} {safeName}
@ -106,7 +109,7 @@ const Receive = ({
</Col> </Col>
<Hairline /> <Hairline />
<Row align="center" className={classes.buttonRow}> <Row align="center" className={classes.buttonRow}>
<Button color="primary" minHeight={42} minWidth={140} onClick={onClose} variant="contained"> <Button color="primary" minHeight={35} minWidth={140} onClick={onClose} variant="contained">
Done Done
</Button> </Button>
</Row> </Row>