1
1
import { emojify } from '@twuni/emojify' ;
2
- import { GoStar , GoRepoForked } from 'react-icons/go' ;
2
+ import { GoStar , GoRepoForked , GoIssueOpened } from 'react-icons/go' ;
3
3
import { RepoItem } from 'types' ;
4
4
5
5
interface Props {
@@ -59,7 +59,7 @@ function Card({ repo }: Props) {
59
59
</ div >
60
60
61
61
{ /* stars and forks cards */ }
62
- < div className = "w-full flex gap-3 xl:gap-5 text-neutral-100 cursor-pointer mt-8" >
62
+ < div className = "w-full grid grid-cols-[repeat(auto-fit,_minmax(120px,_1fr))] gap-3 xl:gap-5 text-neutral-100 cursor-pointer mt-8" >
63
63
< a
64
64
href = { `${ repo . html_url } /stargazers` }
65
65
target = "_blank"
@@ -86,7 +86,9 @@ function Card({ repo }: Props) {
86
86
>
87
87
< GoRepoForked className = "text-yellow-200 text-2xl" />
88
88
< div className = "flex flex-col" >
89
- < div className = "text-lg xl:text-2xl font-semibold mb-0.5" > { repo . forks } </ div >
89
+ < div className = "text-lg xl:text-2xl font-semibold mb-0.5" >
90
+ { repo . forks }
91
+ </ div >
90
92
< div className = "text-neutral-300 text-xs lg:text-sm" > Forks</ div >
91
93
</ div >
92
94
< div
@@ -96,6 +98,25 @@ function Card({ repo }: Props) {
96
98
Checkout all the forks here!
97
99
</ div >
98
100
</ a >
101
+ < a
102
+ href = { `${ repo . html_url } /issues` }
103
+ target = "_blank"
104
+ className = "group w-full border rounded-xl p-3 flex items-center gap-3 relative"
105
+ >
106
+ < GoIssueOpened className = "text-yellow-200 text-2xl" />
107
+ < div className = "flex flex-col" >
108
+ < div className = "text-lg xl:text-2xl font-semibold mb-0.5" >
109
+ { repo . open_issues_count }
110
+ </ div >
111
+ < div className = "text-neutral-300 text-xs lg:text-sm" > Issues</ div >
112
+ </ div >
113
+ < div
114
+ id = "tooltip"
115
+ className = "hidden group-hover:block absolute bg-2023-void-2 text-2023-bavarian-gold-2 px-2 py-1 rounded-md"
116
+ >
117
+ Checkout all open issues here!
118
+ </ div >
119
+ </ a >
99
120
</ div >
100
121
</ div >
101
122
</ section >
0 commit comments