@@ -389,7 +389,7 @@ export function Navbar({ children }: { children: React.ReactNode }) {
389389 return indexA - indexB
390390 } )
391391 } ) ( ) . map ( ( library , i ) => {
392- const [ prefix , name ] = library . name . split ( ' ' )
392+ const [ _ , name ] = library . name . split ( ' ' )
393393 const isActive = library . to === activeLibrary ?. to
394394
395395 return (
@@ -458,10 +458,9 @@ export function Navbar({ children }: { children: React.ReactNode }) {
458458 < span
459459 className = { twMerge (
460460 `px-2 py-px uppercase font-black rounded-md text-[.65rem]` ,
461- library . badgeTextStyle ?? 'text-white' ,
462- 'bg-gradient-to-r' ,
463- library . colorFrom ,
464- library . colorTo ,
461+ 'border-2 bg-transparent' ,
462+ library . textStyle ,
463+ library . borderStyle ,
465464 ) }
466465 >
467466 { library . badge }
@@ -504,13 +503,11 @@ export function Navbar({ children }: { children: React.ReactNode }) {
504503 { library . badge ? (
505504 < span
506505 className = { twMerge (
507- `px-2 py-px uppercase font-black bg-gray-500/10 dark:bg-gray-500/30 rounded-md text-[.7rem]` ,
508- library . badgeTextStyle ?? 'text-white' ,
506+ `px-2 py-px uppercase font-black rounded-md text-[.6rem]` ,
507+ 'border bg-transparent' ,
508+ 'border-current text-current' ,
509509 'opacity-90 group-hover:opacity-100 transition-opacity' ,
510- 'bg-gradient-to-r' ,
511- library . colorFrom ,
512- library . colorTo ,
513- 'text-[.6rem]' ,
510+ library . textColor ,
514511 ) }
515512 >
516513 { library . badge }
@@ -669,7 +666,7 @@ export function Navbar({ children }: { children: React.ReactNode }) {
669666 label : (
670667 < >
671668 < span > Feed</ span >
672- < span className = "px-1.5 py-0.5 text-[.6rem] font-black bg-gradient-to-r from -blue-400 to -blue-600 text-white rounded-md uppercase" >
669+ < span className = "px-1.5 py-0.5 text-[.6rem] font-black border border -blue-500 text -blue-500 rounded-md uppercase" >
673670 Beta
674671 </ span >
675672 </ >
@@ -701,7 +698,7 @@ export function Navbar({ children }: { children: React.ReactNode }) {
701698 label : (
702699 < >
703700 < span > Learn</ span >
704- < span className = "px-1.5 py-0.5 text-[.6rem] font-black bg-gradient-to-r from -green-400 to -green-600 text-white rounded-md uppercase" >
701+ < span className = "px-1.5 py-0.5 text-[.6rem] font-black border border -green-500 text -green-500 rounded-md uppercase" >
705702 NEW
706703 </ span >
707704 </ >
0 commit comments