Skip to content

Commit f4a6476

Browse files
Fix: Overview page Info icon and Theme inconsistency in navbar.
1 parent 8d97910 commit f4a6476

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

src/components/Navbar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default function Navbar() {
2222
return (
2323
<nav style={{
2424
position: 'sticky', top: 0, zIndex: 100,
25-
background: 'rgba(13,13,13,.97)',
25+
background: 'var(--bg)',
2626
backdropFilter: 'blur(10px)',
2727
borderBottom: '1px solid var(--border)',
2828
padding: '0 24px',

src/pages/OverviewPage.jsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useNavigate } from 'react-router-dom'
33
import { FiExternalLink, FiShare2, FiArrowRight } from 'react-icons/fi'
44
import { useApp } from '../context/AppContext'
55
import { C, StatCard, HealthBar } from '../components/UI'
6-
import { BsFillInfoSquareFill } from "react-icons/bs";
6+
import { AiOutlineInfoCircle } from "react-icons/ai";
77

88
const LANG_COLORS = ['#22c55e', '#f5c518', '#3b82f6', '#ef4444', '#a855f7', '#f97316', '#06b6d4']
99
const fmt = n => n > 999 ? (n / 1000).toFixed(1) + 'k' : String(n)
@@ -137,16 +137,17 @@ export default function OverviewPage() {
137137
<p>High Impact Repositories</p>
138138

139139
<button
140-
onClick={() => setOpen(prev => !prev)}
141-
className="p-3 rounded-full hover:bg-zinc-800 transition"
140+
onMouseEnter={()=>setOpen(true)}
141+
onMouseLeave={()=>setOpen(false)}
142+
className="p-3 rounded-full hover:bg-(--bg) transition"
142143
>
143-
<BsFillInfoSquareFill />
144+
<AiOutlineInfoCircle className="text-(--text) cursor-pointer" />
144145
</button>
145146
</div>
146147

147148
{open && (
148149
<div
149-
className="absolute top-16 right-2 w-80 z-50 rounded-lg border-2 border-(--border) bg-zinc-900 p-4 shadow-xl text-xs"
150+
className="absolute top-16 right-2 w-80 z-50 rounded-lg border-2 border-(--border) bg-(--surface) p-4 shadow-xl text-xs"
150151
>
151152
<strong>Health Score</strong> estimates the overall health of a repository on a scale of 0 – 100.
152153

@@ -162,7 +163,7 @@ export default function OverviewPage() {
162163
</li>
163164
</ul>
164165

165-
<p className="mt-2 text-zinc-400">
166+
<p className="mt-2 text-xs text-(--text2)">
166167
Higher scores indicate healthier and more actively maintained repositories.
167168
</p>
168169
</div>

0 commit comments

Comments
 (0)