@@ -47,9 +47,9 @@ export function InfoPanel({
4747 if ( ! selectedInfo ) return null ;
4848
4949 return (
50- < div className = "absolute top-4 left-4 z-20 w-80 max-w-[calc(100vw-2rem)] bg-white/95 backdrop-blur-sm rounded-lg shadow-xl border border-gray-200 overflow-hidden" >
50+ < div className = "absolute top-4 left-4 z-20 w-80 max-w-[calc(100vw-2rem)] bg-gray-900/85 backdrop-blur-xl rounded-lg shadow-xl border border-white/10 overflow-hidden" >
5151 { /* Header */ }
52- < div className = "flex items-center justify-between px-4 py-3 bg-gradient-to-r from-emerald-500 to-green-600 " >
52+ < div className = "flex items-center justify-between px-4 py-3 bg-gradient-to-r from-emerald-600/80 to-emerald-500/60 " >
5353 < h2 className = "text-white font-semibold" >
5454 { selectedInfo . type === "node" ? "Account" : "Transaction" }
5555 </ h2 >
@@ -96,19 +96,19 @@ function NodeInfoContent({
9696 < >
9797 { /* Node Address */ }
9898 < div >
99- < label className = "text-xs text-gray-500 block mb-1" > Address</ label >
99+ < label className = "text-xs text-gray-400 block mb-1" > Address</ label >
100100 < div className = "flex items-center gap-2" >
101- < code className = "flex-1 text-sm bg-gray-100 text-gray-500 px-2 py-1.5 rounded font-mono truncate" >
101+ < code className = "flex-1 text-sm bg-white/5 text-gray-300 px-2 py-1.5 rounded font-mono truncate" >
102102 { data . id }
103103 </ code >
104104 < button
105105 onClick = { ( ) => copyToClipboard ( data . id , "address" ) }
106- className = "p-1.5 hover:bg-gray-100 rounded transition-colors"
106+ className = "p-1.5 hover:bg-white/10 rounded transition-colors"
107107 title = "Copy address"
108108 >
109109 < CopyIcon
110110 className = { `w-4 h-4 ${
111- copiedField === "address" ? "text-green-500 " : "text-gray-500 "
111+ copiedField === "address" ? "text-emerald-400 " : "text-gray-400 "
112112 } `}
113113 />
114114 </ button >
@@ -117,15 +117,15 @@ function NodeInfoContent({
117117
118118 { /* Transaction count */ }
119119 < div >
120- < label className = "text-xs text-gray-500 block mb-1" >
120+ < label className = "text-xs text-gray-400 block mb-1" >
121121 Total Transactions
122122 </ label >
123- < p className = "text-sm font-medium text-gray-700 " > { data . value } </ p >
123+ < p className = "text-sm font-medium text-gray-200 " > { data . value } </ p >
124124 </ div >
125125
126126 { /* Vouchers used with details */ }
127127 < div >
128- < label className = "text-xs text-gray-500 block mb-1" >
128+ < label className = "text-xs text-gray-400 block mb-1" >
129129 Vouchers Used ({ Object . keys ( data . usedVouchers ) . length } )
130130 </ label >
131131 < div className = "max-h-40 overflow-y-auto space-y-1.5" >
@@ -138,18 +138,18 @@ function NodeInfoContent({
138138 return (
139139 < div
140140 key = { contractAddress }
141- className = "flex items-center justify-between text-sm bg-gray-50 px-2 py-1.5 rounded"
141+ className = "flex items-center justify-between text-sm bg-white/5 px-2 py-1.5 rounded"
142142 >
143- < span className = "text-gray-700 truncate flex-1" >
143+ < span className = "text-gray-200 truncate flex-1" >
144144 { voucher
145145 ? `${ voucher . token_name } (${ voucher . token_symbol } )`
146146 : contractAddress . slice ( 0 , 10 ) + "..." }
147147 </ span >
148148 < div className = "flex items-center gap-2 ml-2" >
149- < span className = "text-xs font-medium text-emerald-600 whitespace-nowrap" >
149+ < span className = "text-xs font-medium text-emerald-400 whitespace-nowrap" >
150150 { txCount } tx
151151 </ span >
152- < span className = "text-xs text-gray-400 whitespace-nowrap" >
152+ < span className = "text-xs text-gray-500 whitespace-nowrap" >
153153 { new Date ( firstTxDate ) . toLocaleDateString ( ) }
154154 </ span >
155155 </ div >
@@ -164,7 +164,7 @@ function NodeInfoContent({
164164 href = { `https://celoscan.io/address/${ data . id } ` }
165165 target = "_blank"
166166 rel = "noopener noreferrer"
167- className = "flex items-center gap-2 w-full px-3 py-2 bg-emerald-50 hover:bg-emerald-100 text-emerald-700 rounded-md transition-colors text-sm font-medium"
167+ className = "flex items-center gap-2 w-full px-3 py-2 bg-emerald-500/10 hover:bg-emerald-500/20 text-emerald-400 rounded-md transition-colors text-sm font-medium"
168168 >
169169 < ExternalLinkIcon className = "w-4 h-4" />
170170 View on Celoscan
@@ -173,7 +173,7 @@ function NodeInfoContent({
173173 href = { `https://sarafu.network/users/${ data . id } ` }
174174 target = "_blank"
175175 rel = "noopener noreferrer"
176- className = "flex items-center gap-2 w-full px-3 py-2 bg-emerald-50 hover:bg-emerald-100 text-emerald-700 rounded-md transition-colors text-sm font-medium"
176+ className = "flex items-center gap-2 w-full px-3 py-2 bg-emerald-500/10 hover:bg-emerald-500/20 text-emerald-400 rounded-md transition-colors text-sm font-medium"
177177 >
178178 < ExternalLinkIcon className = "w-4 h-4" />
179179 View on Sarafu Network
@@ -197,27 +197,27 @@ function LinkInfoContent({
197197 < >
198198 { /* Token info */ }
199199 < div >
200- < label className = "text-xs text-gray-500 block mb-1" > Token</ label >
201- < p className = "text-sm font-medium text-gray-700 " >
200+ < label className = "text-xs text-gray-400 block mb-1" > Token</ label >
201+ < p className = "text-sm font-medium text-gray-200 " >
202202 { data . token_name } ({ data . token_symbol } )
203203 </ p >
204204 </ div >
205205
206206 { /* Contract address */ }
207207 < div >
208- < label className = "text-xs text-gray-500 block mb-1" > Contract</ label >
208+ < label className = "text-xs text-gray-400 block mb-1" > Contract</ label >
209209 < div className = "flex items-center gap-2" >
210- < code className = "flex-1 text-sm text-gray-500 px-2 py-1.5 rounded font-mono truncate" >
210+ < code className = "flex-1 text-sm text-gray-300 bg-white/5 px-2 py-1.5 rounded font-mono truncate" >
211211 { data . contract_address }
212212 </ code >
213213 < button
214214 onClick = { ( ) => copyToClipboard ( data . contract_address , "contract" ) }
215- className = "p-1.5 hover:bg-gray-100 rounded transition-colors"
215+ className = "p-1.5 hover:bg-white/10 rounded transition-colors"
216216 title = "Copy contract"
217217 >
218218 < CopyIcon
219219 className = { `w-4 h-4 ${
220- copiedField === "contract" ? "text-green-500 " : "text-gray-500 "
220+ copiedField === "contract" ? "text-emerald-400 " : "text-gray-400 "
221221 } `}
222222 />
223223 </ button >
@@ -226,19 +226,19 @@ function LinkInfoContent({
226226
227227 { /* Source */ }
228228 < div >
229- < label className = "text-xs text-gray-500 block mb-1" > From</ label >
229+ < label className = "text-xs text-gray-400 block mb-1" > From</ label >
230230 < div className = "flex items-center gap-2" >
231- < code className = "flex-1 text-xs text-gray-500 px-2 py-1 rounded font-mono truncate" >
231+ < code className = "flex-1 text-xs text-gray-300 bg-white/5 px-2 py-1 rounded font-mono truncate" >
232232 { data . source }
233233 </ code >
234234 < button
235235 onClick = { ( ) => copyToClipboard ( data . source , "source" ) }
236- className = "p-1 hover:bg-gray-100 rounded transition-colors"
236+ className = "p-1 hover:bg-white/10 rounded transition-colors"
237237 title = "Copy source"
238238 >
239239 < CopyIcon
240240 className = { `w-3 h-3 ${
241- copiedField === "source" ? "text-green-500 " : "text-gray-500 "
241+ copiedField === "source" ? "text-emerald-400 " : "text-gray-400 "
242242 } `}
243243 />
244244 </ button >
@@ -247,19 +247,19 @@ function LinkInfoContent({
247247
248248 { /* Target */ }
249249 < div >
250- < label className = "text-xs text-gray-500 block mb-1" > To</ label >
250+ < label className = "text-xs text-gray-400 block mb-1" > To</ label >
251251 < div className = "flex items-center gap-2" >
252- < code className = "flex-1 text-xs text-gray-500 px-2 py-1 rounded font-mono truncate" >
252+ < code className = "flex-1 text-xs text-gray-300 bg-white/5 px-2 py-1 rounded font-mono truncate" >
253253 { data . target }
254254 </ code >
255255 < button
256256 onClick = { ( ) => copyToClipboard ( data . target , "target" ) }
257- className = "p-1 hover:bg-gray-100 rounded transition-colors"
257+ className = "p-1 hover:bg-white/10 rounded transition-colors"
258258 title = "Copy target"
259259 >
260260 < CopyIcon
261261 className = { `w-3 h-3 ${
262- copiedField === "target" ? "text-green-500 " : "text-gray-500 "
262+ copiedField === "target" ? "text-emerald-400 " : "text-gray-400 "
263263 } `}
264264 />
265265 </ button >
@@ -269,14 +269,14 @@ function LinkInfoContent({
269269 { /* Stats */ }
270270 < div className = "grid grid-cols-2 gap-3" >
271271 < div >
272- < label className = "text-xs text-gray-500 block mb-1" >
272+ < label className = "text-xs text-gray-400 block mb-1" >
273273 Transactions
274274 </ label >
275- < p className = "text-sm font-medium text-gray-700 " > { data . txCount } </ p >
275+ < p className = "text-sm font-medium text-gray-200 " > { data . txCount } </ p >
276276 </ div >
277277 < div >
278- < label className = "text-xs text-gray-500 block mb-1" > Total Value</ label >
279- < p className = "text-sm font-medium text-gray-700 " >
278+ < label className = "text-xs text-gray-400 block mb-1" > Total Value</ label >
279+ < p className = "text-sm font-medium text-gray-200 " >
280280 { data . value . toLocaleString ( undefined , {
281281 maximumFractionDigits : 2 ,
282282 } ) }
@@ -286,10 +286,10 @@ function LinkInfoContent({
286286
287287 { /* Date range */ }
288288 < div >
289- < label className = "text-xs text-gray-500 block mb-1" >
289+ < label className = "text-xs text-gray-400 block mb-1" >
290290 Activity Period
291291 </ label >
292- < p className = "text-sm text-gray-700 " >
292+ < p className = "text-sm text-gray-200 " >
293293 { new Date ( data . dateFirst ) . toLocaleDateString ( ) } -{ " " }
294294 { new Date ( data . date ) . toLocaleDateString ( ) }
295295 </ p >
@@ -300,7 +300,7 @@ function LinkInfoContent({
300300 href = { `https://sarafu.network/vouchers/${ data . contract_address } ` }
301301 target = "_blank"
302302 rel = "noopener noreferrer"
303- className = "flex items-center gap-2 w-full px-3 py-2 bg-emerald-50 hover:bg-emerald-100 text-emerald-700 rounded-md transition-colors text-sm font-medium"
303+ className = "flex items-center gap-2 w-full px-3 py-2 bg-emerald-500/10 hover:bg-emerald-500/20 text-emerald-400 rounded-md transition-colors text-sm font-medium"
304304 >
305305 < ExternalLinkIcon className = "w-4 h-4" />
306306 View on Sarafu Network
0 commit comments