diff options
| author | 2023-04-22 19:52:26 +0800 | |
|---|---|---|
| committer | 2023-04-22 19:52:26 +0800 | |
| commit | 4838df315931bb883f704ec3e1abe2685f296cdf (patch) | |
| tree | 57a8550c4cd5338f1126364bb518c6cde8d96e7d /docs/components/Authors.tsx | |
| parent | db74ade0234a40c2120ad5f2a41bee50ce13de02 (diff) | |
| download | HydroRoll-4838df315931bb883f704ec3e1abe2685f296cdf.tar.gz HydroRoll-4838df315931bb883f704ec3e1abe2685f296cdf.zip | |
😀
Diffstat (limited to 'docs/components/Authors.tsx')
| -rw-r--r-- | docs/components/Authors.tsx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/components/Authors.tsx b/docs/components/Authors.tsx new file mode 100644 index 0000000..634bd90 --- /dev/null +++ b/docs/components/Authors.tsx @@ -0,0 +1,22 @@ +import { Avatar } from "./Avatar"; +import cn from "classnames"; +import TURBO_TEAM from "../content/team"; +import type { Author } from "../content/team"; + +export function Authors({ authors }: { authors: Array<Author> }) { + const validAuthors = authors.filter((author) => TURBO_TEAM[author]); + return ( + <div className="w-full border-b border-gray-400 authors border-opacity-20"> + <div + className={cn( + "flex flex-wrap justify-center py-8 mx-auto gap-7", + authors.length > 4 && "max-w-3xl" + )} + > + {validAuthors.map((username) => ( + <Avatar key={username} {...TURBO_TEAM[username]} /> + ))} + </div> + </div> + ); +} |
