2019-04-16 23:04:23 +00:00
|
|
|
import { Component } from 'inferno';
|
|
|
|
import { Link } from 'inferno-router';
|
|
|
|
import { repoUrl } from '../utils';
|
|
|
|
import { version } from '../version';
|
2020-01-31 20:52:27 +00:00
|
|
|
import { i18n } from '../i18next';
|
2019-04-16 23:04:23 +00:00
|
|
|
|
|
|
|
export class Footer extends Component<any, any> {
|
|
|
|
constructor(props: any, context: any) {
|
|
|
|
super(props, context);
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
2019-10-15 19:21:27 +00:00
|
|
|
<nav class="container navbar navbar-expand-md navbar-light navbar-bg p-0 px-3 mt-2">
|
2019-04-16 23:04:23 +00:00
|
|
|
<div className="navbar-collapse">
|
|
|
|
<ul class="navbar-nav ml-auto">
|
2019-04-20 20:23:42 +00:00
|
|
|
<li class="nav-item">
|
|
|
|
<span class="navbar-text">{version}</span>
|
|
|
|
</li>
|
2019-04-16 23:04:23 +00:00
|
|
|
<li class="nav-item">
|
2019-10-19 00:20:27 +00:00
|
|
|
<Link class="nav-link" to="/modlog">
|
2020-02-02 19:37:19 +00:00
|
|
|
{i18n.t('modlog')}
|
2019-10-19 00:20:27 +00:00
|
|
|
</Link>
|
2019-04-16 23:04:23 +00:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2020-01-01 22:47:00 +00:00
|
|
|
<a class="nav-link" href={'/docs/index.html'}>
|
2020-02-02 19:37:19 +00:00
|
|
|
{i18n.t('docs')}
|
2019-10-19 00:20:27 +00:00
|
|
|
</a>
|
2019-04-16 23:04:23 +00:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2019-10-19 00:20:27 +00:00
|
|
|
<Link class="nav-link" to="/sponsors">
|
2020-02-02 19:37:19 +00:00
|
|
|
{i18n.t('donate')}
|
2019-10-19 00:20:27 +00:00
|
|
|
</Link>
|
2019-04-16 23:04:23 +00:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2019-10-19 00:20:27 +00:00
|
|
|
<a class="nav-link" href={repoUrl}>
|
2020-02-02 19:37:19 +00:00
|
|
|
{i18n.t('code')}
|
2019-10-19 00:20:27 +00:00
|
|
|
</a>
|
2019-04-16 23:04:23 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|