Skip to content

Commit

Permalink
Create nav.tsx
Browse files Browse the repository at this point in the history
Signed-off-by: gitworkflows <118260833+gitworkflows@users.noreply.github.com>
  • Loading branch information
gitworkflows authored Apr 11, 2024
1 parent a684bc9 commit 8c59244
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions solutions/blog/app/components/nav.tsx
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>
)
}

1 comment on commit 8c59244

@vercel
Copy link

@vercel vercel bot commented on 8c59244 Apr 11, 2024

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

Please sign in to comment.