docusaurus/website-1.x/pages/en/users.js
Endilie Yacop Sucipto 1f91d19a8c
chore: move to monorepo (#1297)
* chore: move to monorepo

* lint all js file

* simplify circleCI

* fix failing tests

* fix tests due to folder rename

* fix test since v1 website is renamed
2019-03-23 14:21:36 +07:00

69 lines
2.1 KiB
JavaScript

/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const React = require('react');
const CompLibrary = require('../../core/CompLibrary.js');
const Container = CompLibrary.Container;
const Showcase = require(`${process.cwd()}/core/Showcase.js`);
const translate = require('../../server/translate.js').translate;
class Users extends React.Component {
render() {
const {config: siteConfig} = this.props;
const fbUsersToShowcase = siteConfig.users.filter(
user => user.fbOpenSource,
);
const restToShowcase = siteConfig.users.filter(user => !user.fbOpenSource);
return (
<div className="mainContainer">
<Container padding={['bottom']}>
<div className="showcaseSection">
<div className="prose">
<h1>
<translate>Who is using Docusaurus?</translate>
</h1>
<p>
Docusaurus powers some of Facebook&apos;s popular{' '}
<a href="https://opensource.facebook.com/">
open source projects
</a>
.
</p>
</div>
<Showcase users={fbUsersToShowcase} />
<div className="prose">
<p>
<translate>
Docusaurus is also used by open source projects of all sizes.
</translate>
</p>
</div>
<Showcase users={restToShowcase} />
<div className="prose">
<p>
<translate>Is your project using Docusaurus?</translate>
</p>
<p>
Edit this page with a{' '}
<a href="https://github.com/facebook/docusaurus/edit/master/v1/website/data/users.js">
Pull Request
</a>{' '}
to add your logo.
</p>
</div>
</div>
</Container>
</div>
);
}
}
Users.title = 'Users';
module.exports = Users;