Added blurb, tweaked styling

This commit is contained in:
2019-05-26 05:01:00 +10:00
parent 6095261c27
commit 04129aeba3
5 changed files with 38 additions and 1 deletions
+7
View File
@@ -0,0 +1,7 @@
A New Page Structure
---
_26 May 2019_
I keep wanting to start working on the combat, but I keep getting feedback about the site as a whole. I'm happy to receive it, of course, it just means I'll have to work even harder!
I've removed the forms to the right, and moved them into their own pages. This should make it cleaner to signup and login. I've also added a blurb to the main page, and tweaked the styling so it's not simply a wall of text. Hopefully, it looks better - I really can't tell, since I'm too close to the project.
+3
View File
@@ -23,6 +23,7 @@ body {
margin-left: auto;
margin-right: auto;
margin-top: .5em;
margin-bottom: 2em;
}
@media screen and (max-width: 480px) {
@@ -50,6 +51,8 @@ hr {
height: 1px;
color: lightblue;
background-color: lightblue;
margin-top: 1em;
margin-bottom: 2em;
}
ul {
+2
View File
@@ -4,6 +4,7 @@ import { withRouter, Link } from 'react-router-dom';
//panels
import CommonLinks from '../panels/common_links.jsx';
import Blurb from '../panels/blurb.jsx';
import NewsPanel from '../panels/news_panel.jsx';
class Home extends React.Component {
@@ -46,6 +47,7 @@ class Home extends React.Component {
<SidePanel />
<div className='mainPanel'>
<Blurb />
<h1 className='centered'>News</h1>
<NewsPanel />
</div>
+25
View File
@@ -0,0 +1,25 @@
import React from 'react';
export default class Blurb extends React.Component {
render() {
let Link = (props) => <a href={props.to}>{props.to}</a>;
return (
<div className='panel'>
<p className='centered'><em>A game in early development.</em></p>
<br />
<p>This is a resource accumulation game, with some similarities to idle games. The idea is that you recruit new units once per day, train them as soldiers, and send them to attack other players. You can also train spies and scientists, which each grant their own benefits.</p>
<p>Untrained recruits gain you 1 gold piece evey half hour - the only unit type that grants a passive income.</p>
<p>You can follow the developer KR Game Studios here:</p>
<ul>
<li><Link to='https://facebook.com/KRGameStudios' /></li>
<li><Link to='https://twitter.com/KRGameStudios' /></li>
<li><Link to='https://discord.gg/FQmz8TN' /></li>
<li><Link to='https://www.patreon.com/krgamestudios' /></li>
<li><Link to='https://github.com/KRGameStudios' /></li>
</ul>
</div>
);
}
}
+1 -1
View File
@@ -9,7 +9,7 @@ class NewsPanel extends React.Component {
data: {}
};
this.fetchNews(3);
this.fetchNews(this.props.length || 10);
}
render() {