forked from prettier/prettier
/
index.js
74 lines (67 loc) · 2.28 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
"use strict";
const React = require("react");
const { Container } = require("../../../core/CompLibrary.js");
const siteConfig = require(process.cwd() + "/siteConfig.js");
class Users extends React.Component {
render() {
const showcase = siteConfig.users.map((user, i) => (
<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>
</div>
<blockquote
style={{
display: "flex",
alignItems: "center",
fontSize: "125%",
}}
>
<div className="prose">
Prettier is regularly used by more than <strong>83%</strong>{" "}
and <strong>70%</strong> of the question respondents from
the “Utilities” section of the
<a href="https://2021.stateofjs.com/en-US/other-tools/#utilities">
State of JS 2021
</a>{" "}
and
<a href="https://2020.stateofjs.com/en-US/other-tools/#utilities">
State of JS 2020
</a>{" "}
surveys.
</div>
<a href="https://2021.stateofjs.com">
<img
title="State of JS 2021"
src="/images/state_of_js.svg"
width="180"
style={{ background: "#222429", borderRadius: 5 }}
/>
</a>
</blockquote>
<div className="logos">{showcase}</div>
<div className="prose">
...and{" "}
<a href="https://www.npmjs.com/browse/depended/prettier">
many more projects
</a>
</div>
</div>
</Container>
</div>
</div>
);
}
}
Users.defaultProps = {
language: "en",
};
Users.title = "Who's using Prettier?";
module.exports = Users;