Skip to content

Commit 5cc4c88

Browse files
committed
2 parents 05d6694 + 25f4705 commit 5cc4c88

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

src/components/Navbar.tsx

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -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
</>

src/styles/app.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,10 @@ html.dark .shiki.vitesse-dark span[style*='color: #51597D'] {
761761
@apply flex justify-start items-center font-medium;
762762
}
763763

764+
.markdown-alert .markdown-alert-content {
765+
@apply pr-5;
766+
}
767+
764768
.bg-clip-text {
765769
@apply print:text-gray-800;
766770
}

0 commit comments

Comments
 (0)