1
+ import { Card } from "@/components/ui/card" ;
2
+ import CollaborationHeatmap from "./HeatMap" ;
3
+
4
+ export default function GitGraph ( ) {
5
+ const monthsData = [
6
+ [ 1 , 0 , 0 , 0 , 1 , 1 , 0 , 1 , 0 , 0 ] , // January
7
+ [ 0 , 1 , 1 , 0 , 0 , 1 , 0 , 1 , 0 , 0 ] , // February
8
+ [ 1 , 0 , 0 , 1 , 0 , 1 , 1 , 1 , 0 , 0 ] , // March
9
+ [ 1 , 0 , 0 , 0 , 1 , 1 , 0 , 1 , 0 , 0 ] , // April
10
+ [ 0 , 1 , 1 , 0 , 0 , 1 , 0 , 1 , 0 , 0 ] , // May
11
+ [ 1 , 0 , 0 , 1 , 0 , 1 , 1 , 1 , 0 , 0 ] , // June
12
+ [ 1 , 0 , 0 , 0 , 1 , 1 , 0 , 1 , 0 , 0 ] , // July
13
+ [ 0 , 1 , 1 , 0 , 0 , 1 , 0 , 1 , 0 , 0 ] , // August
14
+ [ 1 , 0 , 0 , 1 , 0 , 1 , 1 , 1 , 0 , 0 ] , // Sept
15
+ [ 1 , 0 , 0 , 0 , 1 , 1 , 0 , 1 , 0 , 0 ] , // Oct
16
+ [ 0 , 1 , 1 , 0 , 0 , 1 , 0 , 1 , 0 , 0 ] , // Nov
17
+ [ 1 , 0 , 0 , 1 , 0 , 1 , 1 , 1 , 0 , 0 ] , // Dec
18
+ ] ;
19
+
20
+ return (
21
+ < Card className = "flex flex-col rounded-md p-6 gap-4" >
22
+ < StatsHeader />
23
+ < div className = "flex flex-row" >
24
+ < StatsDetails />
25
+ < CollaborationHeatmap
26
+ monthsData = { monthsData }
27
+ year = { 2024 }
28
+ />
29
+ </ div >
30
+ </ Card >
31
+ )
32
+ }
33
+
34
+ function StatsHeader ( ) {
35
+ return (
36
+ < div className = "flex flex-row gap-2" >
37
+ < big className = "font-bold" > 15</ big >
38
+ < big className = "text-card-foreground-100" > collaborations done in the past one year</ big >
39
+ </ div >
40
+ )
41
+ }
42
+ function StatsDetails ( ) {
43
+ return (
44
+ < div className = "flex flex-col gap-2 pt-2 pl-2 pr-4" >
45
+ < div className = "flex flex-col p-1" >
46
+ < small className = "font-bold" > Total Active: </ small >
47
+ < small className = "text-card-foreground-100" > 15 Days </ small >
48
+ </ div >
49
+ < div className = "flex flex-col p-1" >
50
+ < small className = "font-bold" > Max Streaks: </ small >
51
+ < small className = "text-card-foreground-100" > 3 Days </ small >
52
+ </ div >
53
+ </ div >
54
+ )
55
+ }
56
+
57
+ function MonthlyCommits ( { month } : { month : string } ) {
58
+
59
+ }
0 commit comments