Moved blurb into markdown

This commit is contained in:
2019-06-09 14:18:14 +10:00
parent acee83732a
commit e6d6dbc550
5 changed files with 16 additions and 28 deletions
+10
View File
@@ -0,0 +1,10 @@
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.
You can follow the developer KR Game Studios here:
* https://discord.gg/FQmz8TN
* https://facebook.com/KRGameStudios
* https://twitter.com/KRGameStudios
* https://www.patreon.com/krgamestudios
* https://github.com/KRGameStudios
+1 -1
View File
@@ -23,7 +23,7 @@ Minor
Patch
---
* Game Balance.
* Game Balance - move balance variables to a config file.
* Images to social media instead of links.
* Occasional flickering when rendering Profile page.
* Pull the balance numbers out into a config file.
+4 -2
View File
@@ -3,7 +3,7 @@ import { withRouter, Link } from 'react-router-dom';
//panels
import CommonLinks from '../panels/common_links.jsx';
import Blurb from '../panels/blurb.jsx';
import Markdown from '../panels/markdown.jsx';
import News from '../panels/news.jsx';
class Home extends React.Component {
@@ -37,7 +37,9 @@ class Home extends React.Component {
</div>
<h1 className='centered'>About</h1>
<Blurb />
<p className='centered'><em>A game in <strike>early</strike> development.</em></p>
<br />
<Markdown url='/content/blurb.md' />
<h1 className='centered'>News</h1>
<News setWarning={this.setWarning.bind(this)} getFetch={ (fn) => this.setState({ fetch: fn }) } />
<p className='right'><Link to='/news'>See all news...</Link></p>
-24
View File
@@ -1,24 +0,0 @@
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>You can follow the developer KR Game Studios here:</p>
<ul>
<li><Link to='https://discord.gg/FQmz8TN' /></li>
<li><Link to='https://facebook.com/KRGameStudios' /></li>
<li><Link to='https://twitter.com/KRGameStudios' /></li>
<li><Link to='https://www.patreon.com/krgamestudios' /></li>
<li><Link to='https://github.com/KRGameStudios' /></li>
</ul>
</div>
);
}
};
+1 -1
View File
@@ -19,7 +19,7 @@ class Markdown extends React.Component {
}
render() {
if (this.state) {
if (this.state.data) {
return (<ReactMarkdown source={this.state.data} escapeHtml={false} {...this.props} />);
} else {
return (<p className='centered'>Loading markdown...</p>);