Files
test-repo/website/pages/en/users/index.js
T
Frank Li 80f38ce75b Website (#2241)
* initial docusaurus set-up

* Delete why-prettier.md

* Update README.md

* Update Docusaurus structure

* Update package.json

* Update siteConfig.js

* Remove ~ files

* chore(website): update build script

* Add redirect script

* Get eslint working on website

* Fix to allow for baseUrl of '/'

* Update docusaurus version

* Update README.md

* Change redirect script to use baseUrl of '/'

* Fix index.js formatting

* Load redirect script

* General cleanup

* Add projects using prettier
* Update service worker to just scope to playground
* Reduce link repeatition
* Link "Try it out" button to /playground/
* Make header of playground approximately same as main site
* Remove .html from URLs (e.g. users.html -> users/)
* Link Gitter Chat

* Add circleci.yml

* Only run builds on master

* Do deployment using Travis
2017-07-02 10:14:24 +10:00

59 lines
1.5 KiB
JavaScript

"use strict";
const React = require("react");
const CompLibrary = require("../../../core/CompLibrary.js");
const Container = CompLibrary.Container;
const siteConfig = require(process.cwd() + "/siteConfig.js");
class Users extends React.Component {
render() {
const showcase = siteConfig.users.map((user, i) => {
return (
<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>
<p>
A few of the
{" "}
<a href="https://www.npmjs.com/browse/depended/prettier">
many projects
</a>
{" "}using Prettier
</p>
</div>
<div className="logos">
{showcase}
</div>
<p>Are you using this project?</p>
<a
href={`${siteConfig.githubUrl}/edit/master/website/siteConfig.js`}
className="button"
>
Add your company
</a>
</div>
</Container>
</div>
</div>
);
}
}
Users.defaultProps = {
language: "en"
};
module.exports = Users;