docusaurus/v1/website/pages/en/users.js
Paul O’Shannessy c5ee753b86 Update code.facebook.com links to appropriate new destination (#1224)
This site mostly doesn't exist anymore, so we should just link to the new
locations. The exception is that the CLA is still there.
2019-02-06 14:29:17 -08: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;