-
Notifications
You must be signed in to change notification settings - Fork 4.2k
/
Copy pathusers.js
50 lines (48 loc) · 1.47 KB
/
users.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
import React from "react";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import Layout from "@theme/Layout";
// TODO useless user showcase page ?
export default function Users() {
const { siteConfig } = useDocusaurusContext();
const { users, addUserUrl } = siteConfig.customFields;
return (
<Layout title="Users" permalink="/users" description="Users">
<div className="container">
<div className="margin-vert--xl text--center">
<div>
<h1>Who is Using This?</h1>
<p>This project is used by many folks</p>
</div>
<div className="row">
{users && users.length>0&& users.map((user) => (
<a
className="col-2"
href={user.infoLink}
key={user.infoLink}
style={{ flexGrow: 1 }}
>
<img
className="padding--md"
src={user.image}
alt={user.caption}
title={user.caption}
style={{
maxHeight: 128,
width: 128,
}}
/>
</a>
))}
</div>
<p>Are you using this project?</p>
<a
href={addUserUrl}
className="button button--lg button--outline button--primary"
>
Add your company
</a>
</div>
</div>
</Layout>
);
}