2019-04-24 03:17:02 +00:00
|
|
|
import { Component } from 'inferno';
|
2019-06-03 01:35:46 +00:00
|
|
|
import { WebSocketService } from '../services';
|
2019-08-10 00:14:43 +00:00
|
|
|
import { i18n } from '../i18next';
|
|
|
|
import { T } from 'inferno-i18next';
|
2019-04-24 03:17:02 +00:00
|
|
|
|
2019-10-19 00:20:27 +00:00
|
|
|
let general = ['riccardo', 'NotTooHighToHack'];
|
2019-04-24 03:17:02 +00:00
|
|
|
// let highlighted = [];
|
|
|
|
// let silver = [];
|
|
|
|
// let gold = [];
|
|
|
|
// let latinum = [];
|
|
|
|
|
|
|
|
export class Sponsors extends Component<any, any> {
|
|
|
|
constructor(props: any, context: any) {
|
|
|
|
super(props, context);
|
|
|
|
}
|
|
|
|
|
|
|
|
componentDidMount() {
|
2019-10-19 00:20:27 +00:00
|
|
|
document.title = `${i18n.t('sponsors')} - ${
|
|
|
|
WebSocketService.Instance.site.name
|
|
|
|
}`;
|
2019-04-24 03:17:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<div class="container text-center">
|
|
|
|
{this.topMessage()}
|
|
|
|
<hr />
|
|
|
|
{this.sponsors()}
|
|
|
|
<hr />
|
|
|
|
{this.bitcoin()}
|
|
|
|
</div>
|
2019-10-19 00:20:27 +00:00
|
|
|
);
|
2019-04-24 03:17:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
topMessage() {
|
|
|
|
return (
|
|
|
|
<div>
|
2019-10-19 00:20:27 +00:00
|
|
|
<h5>
|
|
|
|
<T i18nKey="sponsors_of_lemmy">#</T>
|
|
|
|
</h5>
|
2019-04-24 03:17:02 +00:00
|
|
|
<p>
|
2019-10-19 00:20:27 +00:00
|
|
|
<T i18nKey="sponsor_message">
|
|
|
|
#<a href="https://github.com/dessalines/lemmy">#</a>
|
|
|
|
</T>
|
2019-04-24 03:17:02 +00:00
|
|
|
</p>
|
2019-10-19 00:20:27 +00:00
|
|
|
<a class="btn btn-secondary" href="https://www.patreon.com/dessalines">
|
|
|
|
<T i18nKey="support_on_patreon">#</T>
|
|
|
|
</a>
|
2019-04-24 03:17:02 +00:00
|
|
|
</div>
|
2019-10-19 00:20:27 +00:00
|
|
|
);
|
2019-04-24 03:17:02 +00:00
|
|
|
}
|
|
|
|
sponsors() {
|
|
|
|
return (
|
2019-04-26 01:42:21 +00:00
|
|
|
<div class="container">
|
2019-10-19 00:20:27 +00:00
|
|
|
<h5>
|
|
|
|
<T i18nKey="sponsors">#</T>
|
|
|
|
</h5>
|
|
|
|
<p>
|
|
|
|
<T i18nKey="general_sponsors">#</T>
|
|
|
|
</p>
|
2019-04-26 01:42:21 +00:00
|
|
|
<div class="row card-columns">
|
2019-10-19 00:20:27 +00:00
|
|
|
{general.map(s => (
|
2019-04-24 03:17:02 +00:00
|
|
|
<div class="card col-12 col-md-2">
|
|
|
|
<div>{s}</div>
|
|
|
|
</div>
|
2019-10-19 00:20:27 +00:00
|
|
|
))}
|
2019-04-24 03:17:02 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-10-19 00:20:27 +00:00
|
|
|
);
|
2019-04-24 03:17:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bitcoin() {
|
|
|
|
return (
|
|
|
|
<div>
|
2019-10-19 00:20:27 +00:00
|
|
|
<h5>
|
|
|
|
<T i18nKey="crypto">#</T>
|
|
|
|
</h5>
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-hover text-center">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<T i18nKey="bitcoin">#</T>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<code>1Hefs7miXS5ff5Ck5xvmjKjXf5242KzRtK</code>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<T i18nKey="ethereum">#</T>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<code>0x400c96c96acbC6E7B3B43B1dc1BB446540a88A01</code>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<T i18nKey="monero">#</T>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<code>
|
|
|
|
41taVyY6e1xApqKyMVDRVxJ76sPkfZhALLTjRvVKpaAh2pBd4wv9RgYj1tSPrx8wc6iE1uWUfjtQdTmTy2FGMeChGVKPQuV
|
|
|
|
</code>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2019-04-24 03:17:02 +00:00
|
|
|
</div>
|
2019-10-19 00:20:27 +00:00
|
|
|
);
|
2019-04-24 03:17:02 +00:00
|
|
|
}
|
|
|
|
}
|