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 {
@@ -61,11 +61,11 @@ function Card({ repo }: Props) {
61
61
</ div >
62
62
63
63
{ /* stars and forks cards */ }
64
- < div className = "w-full flex gap-3 xl:gap-5 text-neutral-100 cursor-pointer mt-8" >
64
+ < div className = "container-query flex flex-wrap justify-between gap-3 xl:gap-5 text-neutral-100 cursor-pointer mt-8" >
65
65
< a
66
66
href = { `${ repo . html_url } /stargazers` }
67
67
target = "_blank"
68
- className = "group w-full border rounded-xl p-3 xl:px-4 flex items-center gap-2 xl:gap-3 relative"
68
+ className = "group w-full flex-shrink-0 flex-grow-1 basis-[120px] border rounded-xl p-3 xl:px-4 flex items-center gap-2 xl:gap-3 relative"
69
69
>
70
70
< GoStar className = "text-yellow-200 text-2xl" />
71
71
< div className = "flex flex-col" >
@@ -76,15 +76,15 @@ function Card({ repo }: Props) {
76
76
</ div >
77
77
< div
78
78
id = "tooltip"
79
- className = "hidden group-hover:block absolute bg-2023-void-2 text-2023-bavarian-gold-2 px-2 py-1 rounded-md"
79
+ className = "hidden group-hover:block text-sm absolute bg-2023-void-2 text-2023-bavarian-gold-2 px-2 py-1 rounded-md"
80
80
>
81
81
Checkout all the stars here!
82
82
</ div >
83
83
</ a >
84
84
< a
85
85
href = { `${ repo . html_url } /forks` }
86
86
target = "_blank"
87
- className = "group w-full border rounded-xl p-3 flex items-center gap-3 relative"
87
+ className = "group flex-shrink-0 flex-grow-1 basis-[120px] border rounded-xl p-3 flex items-center gap-3 relative"
88
88
>
89
89
< GoRepoForked className = "text-yellow-200 text-2xl" />
90
90
< div className = "flex flex-col" >
@@ -95,11 +95,30 @@ function Card({ repo }: Props) {
95
95
</ div >
96
96
< div
97
97
id = "tooltip"
98
- className = "hidden group-hover:block absolute bg-2023-void-2 text-2023-bavarian-gold-2 px-2 py-1 rounded-md"
98
+ className = "hidden group-hover:block absolute text-sm bg-2023-void-2 text-2023-bavarian-gold-2 px-2 py-1 rounded-md"
99
99
>
100
100
Checkout all the forks here!
101
101
</ div >
102
102
</ a >
103
+ < a
104
+ href = { `${ repo . html_url } /issues` }
105
+ target = "_blank"
106
+ className = "group issues-btn flex-shrink-0 flex-grow-1 basis-[120px] border rounded-xl p-3 flex items-center gap-3 relative"
107
+ >
108
+ < GoIssueOpened className = "text-yellow-200 text-2xl" />
109
+ < div className = "flex flex-col" >
110
+ < div className = "text-lg xl:text-2xl font-semibold mb-0.5" >
111
+ { repo . open_issues_count }
112
+ </ div >
113
+ < div className = "text-neutral-300 text-xs lg:text-sm" > Issues</ div >
114
+ </ div >
115
+ < div
116
+ id = "tooltip"
117
+ className = "hidden group-hover:block absolute text-sm bg-2023-void-2 text-2023-bavarian-gold-2 px-2 py-1 rounded-md"
118
+ >
119
+ Checkout all open issues here!
120
+ </ div >
121
+ </ a >
103
122
</ div >
104
123
</ div >
105
124
</ section >
0 commit comments