Skip to content

Commit

Permalink
Add Links to sponsors (#2444)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdBarho committed Apr 10, 2023
1 parent e94fc8c commit d4ca7ed
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 10 deletions.
27 changes: 17 additions & 10 deletions website/src/components/TeamMember.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,32 @@ import Link from "next/link";
export interface TeamMemberProps {
name: string;
imageURL: string;
url?: string;
githubURL?: string;
title: string;
}
export function TeamMember({ name, imageURL, githubURL, title }: TeamMemberProps) {
export function TeamMember({ name, url, imageURL, githubURL, title }: TeamMemberProps) {
const contributorBackgroundColor = useColorModeValue("gray.200", "gray.700");
return (
<Flex gap="1" bg={contributorBackgroundColor} borderRadius="md" p="2">
<Flex gap="3" bg={contributorBackgroundColor} borderRadius="md" p="2">
<Avatar src={imageURL} loading="lazy" name={name} />
<Box ml="3">
<Text fontWeight="bold">
{name}
<Box>
<Flex gap={3} fontWeight="bold">
{url ? (
<Link href={url} className="underline">
{name}
</Link>
) : (
<Text>{name}</Text>
)}
{githubURL && (
<Badge ml="2" mb="0.5">
<Link href={githubURL} target="_default" rel="noreferrer" title="github">
<Link href={githubURL} target="_default" rel="noreferrer" title="github">
<Badge mb="1">
<Github size={12} />
</Link>
</Badge>
</Badge>
</Link>
)}
</Text>
</Flex>
<Text fontSize="sm">{title}</Text>
</Box>
</Flex>
Expand Down
4 changes: 4 additions & 0 deletions website/src/data/team.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,23 +161,27 @@
"wandb": {
"name": "Weights & Biases",
"title": "W&B Team License",
"url": "https://wandb.ai/",
"githubURL": "https://github.com/wandb",
"imageURL": "https://avatars.githubusercontent.com/u/26401354?s=200&v=4"
},
"hf": {
"name": "Hugging Face",
"title": "Inference API",
"url": "https://huggingface.co/",
"githubURL": "https://github.com/huggingface",
"imageURL": "https://avatars.githubusercontent.com/u/25720743?s=200&v=4"
},
"redmond": {
"name": "Redmond AI",
"title": "Training Compute",
"url": "https://redmond.ai/",
"imageURL": "/images/logos/redmond_logo.jpg"
},
"stability": {
"name": "Stability AI",
"title": "Preemptible Compute (via LAION)",
"url": "https://stability.ai/",
"githubURL": "https://github.com/stability-ai",
"imageURL": "https://platform.stability.ai/assets/HexagonTextLong.4501db27.png"
}
Expand Down

0 comments on commit d4ca7ed

Please sign in to comment.