ens-usernames/app/components/ens/welcome.js

64 lines
2.0 KiB
JavaScript
Raw Normal View History

2018-07-06 22:12:09 +00: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 18:47:20 +00:00
import StatusCards from '../../ui/icons/svg/intro_cards.svg';
2018-07-06 22:12:09 +00:00
const styles = theme => ({
button: {
margin: theme.spacing.unit,
borderRadius: '4px',
backgroundColor: 'rgb(67, 96, 223, 0.1)',
}
});
2018-07-09 18:47:20 +00: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}>
Secure
</Typography>
<Typography variant="subheading" style={subTextStyle}>
Search for vacant names in domains.stateofus.eth and .eth
</Typography>
</div>
<div>
<Typography variant="title" style={sectionTitleStyle}>
Decentralized
</Typography>
<Typography variant="subheading" style={subTextStyle}>
Search for vacant names in domains.stateofus.eth and .eth
</Typography>
</div>
<div>
<Typography variant="title" style={sectionTitleStyle}>
Amazing
</Typography>
<Typography variant="subheading" style={subTextStyle}>
Search for vacant names in domains.stateofus.eth and .eth
</Typography>
</div>
</div>
);
2018-07-06 22:12:09 +00:00
const Welcome = ({ classes }) => (
<div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center' }}>
2018-07-09 13:15:20 +00:00
<img src={StatusCards} />
2018-07-09 18:47:20 +00:00
<Typography variant="title" style={textStyle}>
2018-07-06 22:12:09 +00:00
Get a human-readable name instead of long addresses
</Typography>
<Button size="large" className={classNames(classes.button)}>
<div style={buttonText}>Let's Go</div>
</Button>
2018-07-09 18:47:20 +00:00
<WelcomeContent />
2018-07-06 22:12:09 +00:00
</div>
);
export default withStyles(styles)(Welcome);