👥 Update LangChain people data (#17743)

👥 Update LangChain people data

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Jacob Lee
2024-02-20 18:30:11 -08:00
committed by GitHub
parent a206d3cf69
commit 5395c254d5
9 changed files with 3246 additions and 1 deletions

28
docs/src/theme/People.js Normal file
View File

@@ -0,0 +1,28 @@
import React from "react";
import PeopleData from "../../data/people.yml"
function renderPerson({ login, avatarUrl, url }) {
return (
<div key={`person:${login}`} style={{ display: "flex", flexDirection: "column", alignItems: "center", padding: "18px" }}>
<a href={url} target="_blank">
<img src={avatarUrl} style={{ borderRadius: "50%", width: "128px", height: "128px" }} />
</a>
<a href={url} target="_blank" style={{ fontSize: "18px", fontWeight: "700" }}>@{login}</a>
</div>
);
}
export default function People({ type, count }) {
let people = PeopleData[type] ?? [];
if (count !== undefined) {
people = people.slice(0, parseInt(count, 10));
}
const html = people.map((person) => {
return renderPerson(person);
});
return (
<div style={{ display: "flex", flexWrap: "wrap", padding: "10px", justifyContent: "space-around" }}>
{html}
</div>
);
}