summaryrefslogtreecommitdiff
path: root/frontend/src/scenes/SplashScreen
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2018-06-09 18:13:47 +0200
committerJoffrey BION <joffrey.bion@gmail.com>2018-06-09 18:13:47 +0200
commitc2eda5c0f25850d1c64ed238458e2bd696d06cc3 (patch)
treedc99a21fedfe280a0615694176a7d28951e9c8a9 /frontend/src/scenes/SplashScreen
parentImprove game list's style (diff)
downloadseven-wonders-c2eda5c0f25850d1c64ed238458e2bd696d06cc3.tar.gz
seven-wonders-c2eda5c0f25850d1c64ed238458e2bd696d06cc3.tar.bz2
seven-wonders-c2eda5c0f25850d1c64ed238458e2bd696d06cc3.zip
Fix home screen style
Diffstat (limited to 'frontend/src/scenes/SplashScreen')
-rw-r--r--frontend/src/scenes/SplashScreen/components/HomeLayout.js18
-rw-r--r--frontend/src/scenes/SplashScreen/components/background-zeus-temple.jpgbin571089 -> 0 bytes
-rw-r--r--frontend/src/scenes/SplashScreen/components/logo-7-wonders.pngbin301442 -> 0 bytes
-rw-r--r--frontend/src/scenes/SplashScreen/index.js45
4 files changed, 0 insertions, 63 deletions
diff --git a/frontend/src/scenes/SplashScreen/components/HomeLayout.js b/frontend/src/scenes/SplashScreen/components/HomeLayout.js
deleted file mode 100644
index c9950f44..00000000
--- a/frontend/src/scenes/SplashScreen/components/HomeLayout.js
+++ /dev/null
@@ -1,18 +0,0 @@
-// @flow
-import type { Node } from 'react';
-import React from 'react';
-import { ErrorToastContainer } from '../../../components/errors/errorToastContainer';
-import background from './background-zeus-temple.jpg';
-import logo from './logo-7-wonders.png';
-
-export type HomeLayoutProps = {
- children?: Node,
-}
-
-export const HomeLayout = ({children}: HomeLayoutProps) => (
- <div style={{backgroundImage: `url(${background})`}}>
- <img src={logo} alt="Seven Wonders"/>
- {children}
- <ErrorToastContainer/>
- </div>
-);
diff --git a/frontend/src/scenes/SplashScreen/components/background-zeus-temple.jpg b/frontend/src/scenes/SplashScreen/components/background-zeus-temple.jpg
deleted file mode 100644
index 5a28e933..00000000
--- a/frontend/src/scenes/SplashScreen/components/background-zeus-temple.jpg
+++ /dev/null
Binary files differ
diff --git a/frontend/src/scenes/SplashScreen/components/logo-7-wonders.png b/frontend/src/scenes/SplashScreen/components/logo-7-wonders.png
deleted file mode 100644
index 96974d3e..00000000
--- a/frontend/src/scenes/SplashScreen/components/logo-7-wonders.png
+++ /dev/null
Binary files differ
diff --git a/frontend/src/scenes/SplashScreen/index.js b/frontend/src/scenes/SplashScreen/index.js
deleted file mode 100644
index 1eee4e1b..00000000
--- a/frontend/src/scenes/SplashScreen/index.js
+++ /dev/null
@@ -1,45 +0,0 @@
-// @flow
-import { Button, Classes, InputGroup, Intent } from '@blueprintjs/core';
-import React, { Component } from 'react';
-import { connect } from 'react-redux';
-import { actions } from '../../redux/players';
-import { HomeLayout } from './components/HomeLayout';
-
-export type SplashScreenProps = {
- chooseUsername: (username: string) => void,
-}
-
-class SplashScreenPresenter extends Component<SplashScreenProps> {
- _username = '';
-
- play = e => {
- e.preventDefault();
- if (this._username !== undefined) {
- this.props.chooseUsername(this._username);
- }
- };
-
- render() {
- return (
- <HomeLayout>
- <form onSubmit={this.play}>
- <InputGroup
- placeholder="Username"
- onChange={e => (this._username = e.target.value)}
- rightElement={this.renderSubmit()}
- />
- </form>
- </HomeLayout>
- );
- }
-
- renderSubmit = () => (
- <Button className={Classes.MINIMAL} onClick={this.play} intent={Intent.PRIMARY} rightIcon="arrow-right" />
- );
-}
-
-const mapDispatchToProps = {
- chooseUsername: actions.chooseUsername,
-};
-
-export const SplashScreen = connect(null, mapDispatchToProps)(SplashScreenPresenter);
bgstack15