summaryrefslogtreecommitdiff
path: root/frontend/src/components/home
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2019-05-16 23:48:38 +0200
committerJoffrey BION <joffrey.bion@gmail.com>2019-05-16 23:48:38 +0200
commit2382a452456e4bdef4584e1046925e372624cb79 (patch)
tree0e49b2e5d81facb55fb8b08228abeb218a27d466 /frontend/src/components/home
parentRemove GRADLE_METADATA feature to avoid breaking frontend build (diff)
downloadseven-wonders-2382a452456e4bdef4584e1046925e372624cb79.tar.gz
seven-wonders-2382a452456e4bdef4584e1046925e372624cb79.tar.bz2
seven-wonders-2382a452456e4bdef4584e1046925e372624cb79.zip
Rationalize module names
Diffstat (limited to 'frontend/src/components/home')
-rw-r--r--frontend/src/components/home/ChooseNameForm.tsx42
-rw-r--r--frontend/src/components/home/Home.css13
-rw-r--r--frontend/src/components/home/Home.tsx12
-rw-r--r--frontend/src/components/home/background-zeus-temple.jpgbin571089 -> 0 bytes
-rw-r--r--frontend/src/components/home/logo-7-wonders.pngbin301442 -> 0 bytes
5 files changed, 0 insertions, 67 deletions
diff --git a/frontend/src/components/home/ChooseNameForm.tsx b/frontend/src/components/home/ChooseNameForm.tsx
deleted file mode 100644
index 8292150b..00000000
--- a/frontend/src/components/home/ChooseNameForm.tsx
+++ /dev/null
@@ -1,42 +0,0 @@
-import { Button, Classes, InputGroup, Intent } from '@blueprintjs/core';
-import React, { ChangeEvent, Component, SyntheticEvent } from 'react';
-import { connect } from 'react-redux';
-import { actions } from '../../redux/actions/user';
-
-type ChooseNameFormPresenterProps = {
- chooseUsername: (username: string) => void,
-}
-
-class ChooseNameFormPresenter extends Component<ChooseNameFormPresenterProps> {
- _username = '';
-
- play = (e: SyntheticEvent<any>) => {
- e.preventDefault();
- if (this._username !== undefined) {
- this.props.chooseUsername(this._username);
- }
- };
-
- render() {
- return (
- <form onSubmit={this.play}>
- <InputGroup
- className={Classes.LARGE}
- placeholder="Username"
- onChange={(e: ChangeEvent<HTMLInputElement>) => (this._username = e.target.value)}
- rightElement={this.renderSubmit()}
- />
- </form>
- );
- }
-
- renderSubmit = () => (
- <Button className={Classes.MINIMAL} onClick={this.play} intent={Intent.PRIMARY} icon="arrow-right" />
- );
-}
-
-const mapDispatchToProps = {
- chooseUsername: actions.chooseUsername,
-};
-
-export const ChooseNameForm = connect(null, mapDispatchToProps)(ChooseNameFormPresenter);
diff --git a/frontend/src/components/home/Home.css b/frontend/src/components/home/Home.css
deleted file mode 100644
index 7d9a96de..00000000
--- a/frontend/src/components/home/Home.css
+++ /dev/null
@@ -1,13 +0,0 @@
-.homeRoot {
- background: url('background-zeus-temple.jpg') center no-repeat;
- background-size: cover;
-}
-
-.fullscreen {
- position: fixed;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;
- overflow: hidden;
-}
diff --git a/frontend/src/components/home/Home.tsx b/frontend/src/components/home/Home.tsx
deleted file mode 100644
index 094db658..00000000
--- a/frontend/src/components/home/Home.tsx
+++ /dev/null
@@ -1,12 +0,0 @@
-import * as React from 'react';
-import { Flex } from 'reflexbox';
-import { ChooseNameForm } from './ChooseNameForm';
-import './Home.css'
-import logo from './logo-7-wonders.png';
-
-export const Home = () => (
- <Flex className='homeRoot fullscreen' column align='center' justify='center'>
- <img src={logo} alt="Seven Wonders"/>
- <ChooseNameForm/>
- </Flex>
-);
diff --git a/frontend/src/components/home/background-zeus-temple.jpg b/frontend/src/components/home/background-zeus-temple.jpg
deleted file mode 100644
index 5a28e933..00000000
--- a/frontend/src/components/home/background-zeus-temple.jpg
+++ /dev/null
Binary files differ
diff --git a/frontend/src/components/home/logo-7-wonders.png b/frontend/src/components/home/logo-7-wonders.png
deleted file mode 100644
index 96974d3e..00000000
--- a/frontend/src/components/home/logo-7-wonders.png
+++ /dev/null
Binary files differ
bgstack15