diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2017-02-03 01:05:48 +0100 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2017-02-03 01:05:48 +0100 |
commit | c6c26e95d87f9a974a032403b37364d8e659a97f (patch) | |
tree | ebf1176991eec340bcb097ac1b80cb1960b5ce23 /frontend/src/containers/home.js | |
parent | Remove explicit unsubscribe declarations (diff) | |
download | seven-wonders-c6c26e95d87f9a974a032403b37364d8e659a97f.tar.gz seven-wonders-c6c26e95d87f9a974a032403b37364d8e659a97f.tar.bz2 seven-wonders-c6c26e95d87f9a974a032403b37364d8e659a97f.zip |
Create home layout with zeus background
Diffstat (limited to 'frontend/src/containers/home.js')
-rw-r--r-- | frontend/src/containers/home.js | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/frontend/src/containers/home.js b/frontend/src/containers/home.js index e70fc867..78ff5e6e 100644 --- a/frontend/src/containers/home.js +++ b/frontend/src/containers/home.js @@ -1,7 +1,8 @@ import React, { Component } from 'react' import { connect } from 'react-redux' -import { Heading, InlineForm } from 'rebass' -import { Link } from 'react-router' +import { Button, Container, Input } from 'rebass' +import { actions } from '../redux/players' + class HomePage extends Component { play = (e) => { @@ -13,26 +14,28 @@ class HomePage extends Component { render() { return ( - <div style={{maxWidth: '500px', margin: '0 auto'}}> - <Heading>Enter your username to start playing!</Heading> - <br /> - <InlineForm - buttonLabel="Play now!" - label="Username" + <Container> + <Input name="username" + label="Username" + placeholder="Username" + hideLabel onChange={(e) => this._username = e.target.value} - onClick={this.play} /> - </div> + <Button + backgroundColor="primary" + color="white" + big + onClick={this.play}> + PLAY NOW! + </Button> + </Container> ) } } -const mapStateToProps = (state) => ({ - -}) +const mapStateToProps = (state) => ({}) -import { actions } from '../redux/players' const mapDispatchToProps = { chooseUsername: actions.chooseUsername } |