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