forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
powered-by.js
60 lines (49 loc) · 2.04 KB
/
powered-by.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
const React = require('react');
const CompLibrary = require('../../core/CompLibrary.js');
const Container = CompLibrary.Container;
const MarkdownBlock = CompLibrary.MarkdownBlock; /* Used to read markdown */
const GridBlock = CompLibrary.GridBlock;
const CWD = process.cwd();
const translate = require('../../server/translate.js').translate;
const siteConfig = require(`${CWD}/siteConfig.js`);
const users = require(`${CWD}/data/users.js`)
class Users extends React.Component {
render() {
let language = this.props.language || '';
return (
<div className="docMainWrapper wrapper">
<Container className="mainContainer documentContainer postContainer">
<div className="post">
<header className="postHeader">
<h1><translate>Companies using or contributing to Apache Pulsar</translate></h1>
<hr />
</header>
<div class="logo-wrapper">
{
users.map(
c => (
(() => {
if (c.hasOwnProperty('logo_white')) {
return <div className="logo-box-background-for-white">
<a href={c.url} title={c.name} target="_blank">
<img src={c.logo} alt={c.name} className={c.logo.endsWith('.svg') ? 'logo-svg' : ''}/>
</a>
</div>
} else {
return <div className="logo-box">
<a href={c.url} title={c.name} target="_blank">
<img src={c.logo} alt={c.name} className={c.logo.endsWith('.svg') ? 'logo-svg' : ''}/>
</a>
</div>
}
})()
)
)}
</div>
</div>
</Container>
</div>
);
}
}
module.exports = Users;