Files
KaTeX/website/pages/en/users.js
Erik Demaine ce64e56f63 Partial list of KaTeX users (#1569)
* Partial list of KaTeX users

Fix #305 (though work should be ongoing) by incorporating users
from that issue.  Also render project names.

* Ordering and link fixes

* Add more projects, allow non-square images

* Bug fix

* Implement comments

* Remove Bokeh

* Switch Gradescope logo, fix layout for small screens

* Implement @ylemkimon's comments

* Add expii logo

* Avoid master link
2018-08-17 16:37:55 +09:00

52 lines
1.5 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 {Container} = require('../../core/CompLibrary.js');
const siteConfig = require(process.cwd() + '/siteConfig.js');
class Users extends React.Component {
render() {
if ((siteConfig.users || []).length === 0) {
return null;
}
const editUrl = siteConfig.repoUrl + '/edit/master/website/siteConfig.js';
const showcase = siteConfig.users.map((user, i) => {
return (
<a href={user.infoLink} key={i}>
<div className="imgbox">
<img src={user.image} alt={user.caption} title={user.caption} />
</div>
<p>{user.caption}</p>
</a>
);
});
return (
<div className="mainContainer">
<Container padding={['bottom', 'top']}>
<div className="showcaseSection">
<div className="prose">
<h1>Who is Using KaTeX?</h1>
<p>KaTeX is used by many projects:</p>
</div>
<div className="logos">{showcase}</div>
<p>Are you using KaTeX?</p>
<a href={editUrl} className="button">
Add your project
</a>
</div>
</Container>
</div>
);
}
}
module.exports = Users;