summaryrefslogtreecommitdiff
path: root/frontend/src/scenes/SplashScreen/components/HomeLayout.js
blob: c9950f44817f56b0c3342101574abf18cbf506bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// @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>
);
bgstack15