diff options
Diffstat (limited to 'frontend/src/scenes/SplashScreen')
-rw-r--r-- | frontend/src/scenes/SplashScreen/components/HomeLayout.js | 13 | ||||
-rw-r--r-- | frontend/src/scenes/SplashScreen/index.js | 17 |
2 files changed, 12 insertions, 18 deletions
diff --git a/frontend/src/scenes/SplashScreen/components/HomeLayout.js b/frontend/src/scenes/SplashScreen/components/HomeLayout.js index 08029d45..c9950f44 100644 --- a/frontend/src/scenes/SplashScreen/components/HomeLayout.js +++ b/frontend/src/scenes/SplashScreen/components/HomeLayout.js @@ -1,7 +1,6 @@ // @flow import type { Node } from 'react'; import React from 'react'; -import { Banner } from 'rebass'; import { ErrorToastContainer } from '../../../components/errors/errorToastContainer'; import background from './background-zeus-temple.jpg'; import logo from './logo-7-wonders.png'; @@ -10,12 +9,10 @@ export type HomeLayoutProps = { children?: Node, } -export const HomeLayout = ({ children }: HomeLayoutProps) => ( - <div> - <Banner align="center" backgroundImage={background}> - <img src={logo} alt="Seven Wonders" /> - {children} - </Banner> - <ErrorToastContainer /> +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/index.js b/frontend/src/scenes/SplashScreen/index.js index 745d8ee7..5d9af862 100644 --- a/frontend/src/scenes/SplashScreen/index.js +++ b/frontend/src/scenes/SplashScreen/index.js @@ -2,7 +2,6 @@ import { Button, Classes, InputGroup, Intent } from '@blueprintjs/core'; import React, { Component } from 'react'; import { connect } from 'react-redux'; -import { Container } from 'rebass'; import { actions } from '../../redux/players'; import { HomeLayout } from './components/HomeLayout'; @@ -23,15 +22,13 @@ class SplashScreenPresenter extends Component<SplashScreenProps> { render() { return ( <HomeLayout> - <Container> - <form onSubmit={this.play}> - <InputGroup - placeholder="Username" - onChange={e => (this._username = e.target.value)} - rightElement={this.renderSubmit()} - /> - </form> - </Container> + <form onSubmit={this.play}> + <InputGroup + placeholder="Username" + onChange={e => (this._username = e.target.value)} + rightElement={this.renderSubmit()} + /> + </form> </HomeLayout> ); } |