64 lines
2.2 KiB
JavaScript
Raw Normal View History

2018-07-06 18:12:09 -04:00
import React from 'react';
import classNames from 'classnames';
import { withStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import Button from '@material-ui/core/Button';
2018-07-09 14:47:20 -04:00
import StatusCards from '../../ui/icons/svg/intro_cards.svg';
2018-07-06 18:12:09 -04:00
const styles = theme => ({
button: {
margin: theme.spacing.unit,
borderRadius: '4px',
2018-07-30 21:11:20 -04:00
backgroundColor: 'rgba(67, 96, 223, 0.1)',
2018-07-06 18:12:09 -04:00
}
});
2018-07-09 14:47:20 -04:00
const textStyle = { textAlign: 'center' };
const sectionTitleStyle = { margin: '10px 0px 10px 0px' };
const subTextStyle = { color: '#939ba1' };
const buttonText = { color: '#4360df', margin: '0 20px', fontWeight: 300 };
const WelcomeContent = () => (
<div style={{ marginTop: '20px', textAlign: 'center' }}>
<div>
<Typography variant="title" style={sectionTitleStyle}>
2018-07-31 11:35:44 -04:00
Deposit 100 SNT to reserve
2018-07-09 14:47:20 -04:00
</Typography>
<Typography variant="subheading" style={subTextStyle}>
2018-07-31 11:35:44 -04:00
After a year, renew your name or release it and get your SNT back.
2018-07-09 14:47:20 -04:00
</Typography>
</div>
<div>
<Typography variant="title" style={sectionTitleStyle}>
2018-07-31 11:35:44 -04:00
Attach wallet & contact code
2018-07-09 14:47:20 -04:00
</Typography>
<Typography variant="subheading" style={subTextStyle}>
2018-07-31 11:35:44 -04:00
Your long, complex wallet address and contact code become a single, easy-to-remember username.
2018-07-09 14:47:20 -04:00
</Typography>
</div>
<div>
<Typography variant="title" style={sectionTitleStyle}>
2018-07-31 11:35:44 -04:00
Connect & get paid
2018-07-09 14:47:20 -04:00
</Typography>
<Typography variant="subheading" style={subTextStyle}>
2018-07-31 11:35:44 -04:00
Share your username to chat on Status or receive payments from anywhere.
2018-07-09 14:47:20 -04:00
</Typography>
</div>
</div>
);
2018-07-06 18:12:09 -04:00
2018-07-09 15:07:55 -04:00
const Welcome = ({ classes, toggleSearch }) => (
2018-07-31 11:35:44 -04:00
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', margin: '16px' }}>
2018-07-09 09:15:20 -04:00
<img src={StatusCards} />
2018-07-09 14:47:20 -04:00
<Typography variant="title" style={textStyle}>
2018-07-31 11:35:44 -04:00
Get a personal domain name to replace those crazy-long codes
2018-07-06 18:12:09 -04:00
</Typography>
2018-07-09 15:07:55 -04:00
<Button size="large" className={classNames(classes.button)} onClick={toggleSearch}>
2018-07-06 18:12:09 -04:00
<div style={buttonText}>Let's Go</div>
</Button>
2018-07-09 14:47:20 -04:00
<WelcomeContent />
2018-07-06 18:12:09 -04:00
</div>
);
export default withStyles(styles)(Welcome);