-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
/
index.js
60 lines (53 loc) · 1.52 KB
/
index.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
"use strict";
const React = require("react");
const CompLibrary = require("../../../core/CompLibrary.js");
const Container = CompLibrary.Container;
const siteConfig = require(process.cwd() + "/siteConfig.js");
class Users extends React.Component {
render() {
const showcase = siteConfig.users.map((user, i) => {
return (
<a key={i} href={user.infoLink}>
<img src={user.image} title={user.caption} />
</a>
);
});
return (
<div>
<div className="mainContainer">
<Container padding={["bottom", "top"]}>
<div className="showcaseSection">
<div className="prose">
<h1>
Who
{"'"}s Using This?
</h1>
<p>
A few of the{" "}
<a href="https://www.npmjs.com/browse/depended/prettier">
many projects
</a>{" "}
using Prettier
</p>
</div>
<div className="logos">{showcase}</div>
<div className="prose">
<p>Are you using this project?</p>
</div>
<a
href={`${siteConfig.githubUrl}/edit/master/website/data/users.yml`}
className="button"
>
Add your company
</a>
</div>
</Container>
</div>
</div>
);
}
}
Users.defaultProps = {
language: "en"
};
module.exports = Users;