Files
test-repo/website/src/pages/users/index.jsx
T
2025-01-30 10:16:21 +08:00

64 lines
2.0 KiB
React
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import Layout from "@theme/Layout";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import Heading from "@theme/Heading";
import Admonition from "@theme/Admonition";
import styles from "./index.module.css";
import clsx from "clsx";
import Link from "@docusaurus/Link";
export default function Users() {
const { siteConfig } = useDocusaurusContext();
const users = siteConfig.customFields.users;
const showcase = users.map((user, i) => (
<div key={i} className={styles.logoItem}>
<Link to={user.infoLink}>
<img src={user.image} title={user.caption} />
</Link>
</div>
));
return (
<Layout title="Who's using Prettier?">
<main className={clsx("margin-vert--xl", styles.main)}>
<div className="container">
<Heading as="h1" className="text--center">
Who’s Using This?
</Heading>
<Admonition
type="info"
title="Prettier is regularly used by:"
className="margin-vert--lg"
>
<ul>
<li>
<Link to="https://2021.stateofjs.com/en-US/other-tools/#utilities">
More than <strong>83%</strong> of respondents to State of JS
2021 (10282 developers out of 12360).
</Link>
</li>
<li>
<Link to="https://2020.stateofjs.com/en-US/other-tools/#utilities">
More than <strong>70%</strong> of respondents to State of JS
2020 (14880 developers out of 20974).
</Link>
</li>
</ul>
</Admonition>
<section>
<div className={styles.logoGrid}>{showcase}</div>
<div className="text--center margin-bottom--lg">
...and{" "}
<Link to="https://www.npmjs.com/browse/depended/prettier">
many more projects
</Link>
</div>
</section>
</div>
</main>
</Layout>
);
}