forked from TanStack/tanstack.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContributorsWall.tsx
More file actions
40 lines (39 loc) · 1.11 KB
/
Copy pathContributorsWall.tsx
File metadata and controls
40 lines (39 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { type Library } from '~/libraries'
export function ContributorsWall({ library }: { library: Library }) {
return (
<div className="flex flex-col items-center my-4">
<a
href={`https://github.com/${library.repo}/graphs/contributors`}
target="_blank"
rel="noopener noreferrer"
>
<img
alt="GitHub Contributors"
src={`https://contrib.rocks/image?repo=${library.repo}`}
loading="lazy"
/>
</a>
<div className="text-xs text-gray-500 mt-2">
Powered by{' '}
<a
href="https://contrib.rocks"
target="_blank"
rel="noopener noreferrer"
className="underline"
>
contrib.rocks
</a>
</div>
<div className="mt-4">
<a
href={`https://github.com/${library.repo}/graphs/contributors`}
target="_blank"
rel="noopener noreferrer"
className="text-sm text-gray-500 hover:text-gray-700 dark:hover:text-gray-300 mb-2"
>
View all contributors on GitHub
</a>
</div>
</div>
)
}