Added the banner image

This commit is contained in:
2019-05-25 21:39:42 +10:00
parent 1ad4a14b35
commit eef8b3721f
8 changed files with 16 additions and 12 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

+14
View File
@@ -17,6 +17,20 @@ body {
color: white; color: white;
} }
.banner {
max-width: 320px;
height: auto;
margin-left: auto;
margin-right: auto;
margin-top: .5em;
}
@media screen and (max-width: 480px) {
.banner {
max-width: 80%;
}
}
h1 { h1 {
font-size: 24pt; font-size: 24pt;
color: pink; color: pink;
+1
View File
@@ -42,6 +42,7 @@ profiles.runGoldTick(connection);
//static directories //static directories
app.use('/styles', express.static(path.resolve(__dirname + '/../public/styles')) ); app.use('/styles', express.static(path.resolve(__dirname + '/../public/styles')) );
app.use('/img', express.static(path.resolve(__dirname + '/../public/img')) );
//the app file //the app file
app.get('/app.bundle.js', (req, res) => { app.get('/app.bundle.js', (req, res) => {
+1
View File
@@ -20,6 +20,7 @@ export default class App extends React.Component {
render() { render() {
return ( return (
<div className = 'central'> <div className = 'central'>
<img className='banner' src={'/img/flag.png'} />
<BrowserRouter> <BrowserRouter>
<Switch> <Switch>
<Route exact path='/' component={Home} /> <Route exact path='/' component={Home} />
-8
View File
@@ -1,7 +1,6 @@
import React from 'react'; import React from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { withRouter, Link } from 'react-router-dom'; import { withRouter, Link } from 'react-router-dom';
import PropTypes from 'prop-types';
//panels //panels
import CommonLinks from '../panels/common_links.jsx'; import CommonLinks from '../panels/common_links.jsx';
@@ -37,8 +36,6 @@ class Home extends React.Component {
//return the home page //return the home page
return ( return (
<div className='page'> <div className='page'>
<h1 style={{textAlign: 'center', fontSize: '50px', margin: '30px'}}>KINGDOM BATTLES!</h1>
<div className='sidePanelPage'> <div className='sidePanelPage'>
<SidePanel /> <SidePanel />
@@ -117,11 +114,6 @@ class Home extends React.Component {
} }
} }
Home.propTypes = {
id: PropTypes.number.isRequired,
token: PropTypes.number.isRequired
};
function mapStoreToProps(store) { function mapStoreToProps(store) {
return { return {
id: store.account.id, id: store.account.id,
-2
View File
@@ -22,8 +22,6 @@ class Ladder extends React.Component {
return ( return (
<div className='page'> <div className='page'>
<h1 style={{textAlign: 'center', fontSize: '50px', margin: '30px'}}>KINGDOM BATTLES!</h1>
<div className='sidePanelPage'> <div className='sidePanelPage'>
<div className='sidePanel'> <div className='sidePanel'>
<CommonLinks /> <CommonLinks />
-2
View File
@@ -59,8 +59,6 @@ class Profile extends React.Component {
//finally //finally
return ( return (
<div className='page'> <div className='page'>
<h1 style={{textAlign: 'center', fontSize: '50px', margin: '30px'}}>KINGDOM BATTLES!</h1>
<div className='sidePanelPage'> <div className='sidePanelPage'>
<SidePanel /> <SidePanel />