Skip to content

Commit 71ee5e2

Browse files
committed
Added the tooltip
1 parent 6b49316 commit 71ee5e2

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

  • Frontend/src/features/home/routes

Frontend/src/features/home/routes/Home.jsx

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export const Home = () => {
6666
{topContributors.length > 0 ? (
6767
topContributors.map((user, index) => (
6868
<li key={`user-${index}`} style={{ marginBottom: "4px" }}>
69-
{user.name} 🔥 {user.currentStreak} {user.currentStreak === 1 ? "week" : "weeks"} streak ({user.count})
69+
{user.name} 🔥 {user.currentStreak} {user.currentStreak === 1 ? "week" : "weeks"} streak
7070
</li>
7171
))
7272
) : (
@@ -78,7 +78,21 @@ export const Home = () => {
7878
{/* Top Repositories List */}
7979
<div style={{ flex: 1 }}>
8080
<h3 style={{ fontSize: "16px", fontWeight: "bold", color: "#123f8b", marginBottom: "12px", marginTop: 0 }}>
81-
Top Repositories
81+
Top Repositories{" "}
82+
<span
83+
tabIndex="0"
84+
aria-label="Repository members info"
85+
title="Members indicate the number of active contributors contributing to that repository"
86+
style={{
87+
cursor: "pointer",
88+
border: "1px solid black",
89+
borderRadius: "50%",
90+
padding: "2px 6px",
91+
fontSize: "12px"
92+
}}
93+
>
94+
i
95+
</span>
8296
</h3>
8397
<ul style={{ margin: 0, paddingLeft: "20px", color: "#374151" }}>
8498
{topRepos.length > 0 ? (

0 commit comments

Comments
 (0)