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

67 lines
2.1 KiB
JavaScript
Raw Normal View History

2018-07-06 22:12:09 +00:00
import React from 'react';
import classNames from 'classnames';
2018-10-09 15:03:20 +00:00
import {withStyles} from '@material-ui/core/styles';
import {Button} from '../../ui/components';
2018-09-24 15:15:43 +00:00
import StatusCards from '../../ui/icons/svg/intro_name.svg';
2018-10-09 15:03:20 +00:00
import {BrowserRouter as Router, Route, Link} from "react-router-dom";
2018-09-24 15:15:43 +00:00
import './welcome.css';
2018-07-06 22:12:09 +00:00
const styles = theme => ({
button: {
margin: theme.spacing.unit,
2018-07-31 01:11:20 +00:00
backgroundColor: 'rgba(67, 96, 223, 0.1)',
2018-10-09 15:03:20 +00:00
},
buttonText: {
color: '#4360df',
margin: '0 20px',
fontWeight: 400,
textTransform: 'uppercase'
2018-07-06 22:12:09 +00:00
}
});
2018-07-09 18:47:20 +00:00
const WelcomeContent = () => (
2018-10-09 15:03:20 +00:00
<div>
<div className="ens-welcome__guide"><span>How it works</span></div>
2018-09-24 15:15:43 +00:00
2018-10-09 15:03:20 +00:00
<ol className="ens-welcome__list">
<li className="item">
<div className="title">Simplify your ETH address</div>
<div className="text">Your complex wallet address (0x...) becomes an easy to read, remember & share URL: <span
className="ens-welcome__highlight">myname.stateofus.eth</span></div>
</li>
<li className="item">
<div className="title">100 SNT to register</div>
<div className="text">Register once to keep the name forever. After 1 year, you can release the name and get
your SNT back.
</div>
</li>
<li className="item">
<div className="title">Connect & get paid</div>
<div className="text">Share your name to chat on Status or receive ETH and tokens.</div>
</li>
</ol>
<div className="ens-welcome__info">Already have a Status subdomain? <a href="">Manage it</a></div>
<div className="text-light">
<small>Powered by Ethereum Name Services</small>
2018-07-09 18:47:20 +00:00
</div>
2018-10-09 15:03:20 +00:00
</div>
2018-07-09 18:47:20 +00:00
);
2018-07-06 22:12:09 +00:00
2018-10-09 15:03:20 +00:00
const Welcome = ({ classes }) => (
2018-09-24 15:15:43 +00:00
<div className="ens-welcome">
<img className="ens-welcome__img" src={StatusCards} />
<h2 className="ens-welcome__title">
ENS names transform those crazy-long addresses into unique usernames
</h2>
2018-10-09 15:03:20 +00:00
<Link to="/search">
<Button className={classNames(classes.button)}>
<div className={classNames(classes.buttonText)}>Let's Go</div>
</Button>
</Link>
<WelcomeContent/>
2018-07-06 22:12:09 +00:00
</div>
);
export default withStyles(styles)(Welcome);