Made the logo link to home

This commit is contained in:
2019-06-02 23:25:49 +10:00
parent b76d22137f
commit 3861dceef3
4 changed files with 10 additions and 7 deletions
+2 -1
View File
@@ -9,7 +9,8 @@
"stop": "forever stop server/index.js",
"node": "node server/index.js",
"webpack": "webpack --mode=development",
"webpack-production": "webpack --mode=production"
"webpack-production": "webpack --mode=production",
"update": "git pull && npm run webpack-production && npm restart"
},
"author": "Kayne Ruse",
"license": "",
+7 -3
View File
@@ -18,16 +18,20 @@ body {
}
.banner {
max-width: 320px;
height: auto;
margin-left: auto;
margin-right: auto;
margin-top: .5em;
margin-bottom: 2em;
text-align: center;
}
.banner img {
max-width: 320px;
height: auto;
}
@media screen and (max-width: 480px) {
.banner {
.banner img {
max-width: 80%;
}
}
+1 -1
View File
@@ -54,7 +54,7 @@ export default class App extends React.Component {
render() {
return (
<div className = 'central'>
<img className='banner' src={'/img/flag_scaled.png'} />
<a className='banner' href='/'><img src={'/img/flag_scaled.png'} /></a>
<BrowserRouter>
{ GA.init() && <GA.RouteTracker /> }
<Switch>
-2
View File
@@ -28,7 +28,6 @@ class CommonLinks extends React.Component {
if (this.props.loggedIn) {
return (
<div className='panel'>
<p><Link to='/' onClick={this.props.onClickHome}>Return Home</Link></p>
<p><Link to='/profile' onClick={this.props.onClickProfile}>Your Kingdom</Link></p>
<p><Link to='/equipment' onClick={this.props.onClickCombatLog}>Your Equipment</Link></p>
<p><Link to='/ladder' onClick={this.props.onClickLadder}>Game Ladder</Link></p>
@@ -45,7 +44,6 @@ class CommonLinks extends React.Component {
} else { //if not logged in
return (
<div className='panel'>
<p><Link to='/' onClick={this.props.onClickHome}>Return Home</Link></p>
<p><Link to='/signup' onClick={this.props.onClickSignup}>Sign Up</Link></p>
<p><Link to='/login' onClick={this.props.onClickLogin}>Login</Link></p>
<p><Link to='/passwordrecover' onClick={this.props.onClickPasswordRecover}>Recover Password</Link></p>