-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: gitworkflows <118260833+gitworkflows@users.noreply.github.com>
- Loading branch information
1 parent
a684bc9
commit 8c59244
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import Link from 'next/link' | ||
|
||
const navItems = { | ||
'/': { | ||
name: 'home', | ||
}, | ||
'/blog': { | ||
name: 'blog', | ||
}, | ||
'https://vercel.com/templates/next.js/portfolio-starter-kit': { | ||
name: 'deploy', | ||
}, | ||
} | ||
|
||
export function Navbar() { | ||
return ( | ||
<aside className="-ml-[8px] mb-16 tracking-tight"> | ||
<div className="lg:sticky lg:top-20"> | ||
<nav | ||
className="flex flex-row items-start relative px-0 pb-0 fade md:overflow-auto scroll-pr-6 md:relative" | ||
id="nav" | ||
> | ||
<div className="flex flex-row space-x-0 pr-10"> | ||
{Object.entries(navItems).map(([path, { name }]) => { | ||
return ( | ||
<Link | ||
key={path} | ||
href={path} | ||
className="transition-all hover:text-neutral-800 dark:hover:text-neutral-200 flex align-middle relative py-1 px-2 m-1" | ||
> | ||
{name} | ||
</Link> | ||
) | ||
})} | ||
</div> | ||
</nav> | ||
</div> | ||
</aside> | ||
) | ||
} |
8c59244
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
hand-pickr – ./
hand-pickr.vercel.app
hand-pickr-devsec.vercel.app
hand-pickr-git-main-devsec.vercel.app