mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-05 04:55:14 +00:00
👥 Update LangChain people data (#17743)
👥 Update LangChain people data --------- Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
28
docs/src/theme/People.js
Normal file
28
docs/src/theme/People.js
Normal 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>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user