-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathContributionsList.tsx
88 lines (84 loc) · 2.5 KB
/
ContributionsList.tsx
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import { GitFork,Bug, Code, Star } from "lucide-react";
interface ContributiosnListProps {}
export function ContributiosnList({}: ContributiosnListProps) {
type Project = {
titile: string;
description: string;
forks: number;
stars: number;
langs: string[];
issues: number;
lastCommit: string;
};
const projects: Array<Project> = [
{
titile: "Project 1",
description: "This is a project",
forks: 10,
stars: 20,
langs: ["JavaScript", "TypeScript"],
issues: 5,
lastCommit: "2021-09-01",
},
{
titile: "Project 2",
description: "This is another project",
forks: 5,
stars: 10,
langs: ["JavaScript", "TypeScript"],
issues: 3,
lastCommit: "2021-08-01",
},
{
titile: "Project 3",
description: "This is a third project",
forks: 2,
stars: 5,
langs: ["JavaScript", "TypeScript"],
issues: 1,
lastCommit: "2021-07-01",
},
{
titile: "Project 4",
description: "This is a fourth project",
forks: 1,
stars: 1,
langs: ["JavaScript", "TypeScript"],
issues: 0,
lastCommit: "2021-06-01",
},
];
return (
<div className="flex h-full w-full flex-col items-center justify-center">
list the contributions here
{projects.map((project) => {
return (
<div key={project.titile} className="mb-4 rounded-lg border border-slate-200 p-4">
<h1 className="text-2xl font-bold">{project.titile}</h1>
<p className="text-slate-600">{project.description}</p>
<p className="flex items-center">
<GitFork className=" size-4" />
<span className="text-sm">{project.forks}</span>
</p>
<p className="flex items-center">
<Star className=" size-4" />
<span className="text-sm">{project.stars}</span>
</p>
<p className="flex items-center">
<Code className=" size-4" />
<span className="text-sm">{project.langs.join(", ")}</span>
</p>
<p className="flex items-center">
<Bug className=" size-4" />
<span className="text-sm">{project.issues}</span>
</p>
<p className="flex items-center">
{/* <IconCalendar className=" size-4" /> */}
<span className="text-sm">{project.lastCommit}</span>
</p>
</div>
);
})}
</div>
);
}