upstream #1

Merged
jblu merged 1007 commits from upstream into main 2024-11-04 22:35:57 -06:00
3 changed files with 13 additions and 10 deletions
Showing only changes of commit 3dcb7e56f9 - Show all commits

View File

@ -26,15 +26,17 @@ const Header = () => {
</div> </div>
<div className="flex items-center text-base leading-5"> <div className="flex items-center text-base leading-5">
<div className="hidden sm:block"> <div className="hidden sm:block">
{headerNavLinks.map((link) => ( {headerNavLinks
<Link .filter((link) => link.href !== '/')
key={link.title} .map((link) => (
href={link.href} <Link
className="p-1 font-medium text-gray-900 dark:text-gray-100 sm:p-4" key={link.title}
> href={link.href}
{link.title} className="p-1 font-medium text-gray-900 dark:text-gray-100 sm:p-4"
</Link> >
))} {link.title}
</Link>
))}
</div> </div>
<ThemeSwitch /> <ThemeSwitch />
<MobileNav /> <MobileNav />

View File

@ -40,7 +40,7 @@ const MobileNav = () => {
</svg> </svg>
</button> </button>
<div <div
className={`fixed left-0 top-0 z-10 h-full w-full transform bg-gray-200 opacity-95 duration-300 ease-in-out dark:bg-gray-800 ${ className={`fixed left-0 top-0 z-10 h-full w-full transform opacity-95 dark:opacity-[0.98] bg-white duration-300 ease-in-out dark:bg-gray-950 ${
navShow ? 'translate-x-0' : 'translate-x-full' navShow ? 'translate-x-0' : 'translate-x-full'
}`} }`}
> >

View File

@ -1,4 +1,5 @@
const headerNavLinks = [ const headerNavLinks = [
{ href: '/', title: 'Home' },
{ href: '/blog', title: 'Blog' }, { href: '/blog', title: 'Blog' },
{ href: '/tags', title: 'Tags' }, { href: '/tags', title: 'Tags' },
{ href: '/projects', title: 'Projects' }, { href: '/projects', title: 'Projects' },