ollama/web/app/header.tsx

25 lines
729 B
TypeScript
Raw Normal View History

2023-07-18 19:56:43 +00:00
const navigation = [
2023-07-19 00:03:40 +00:00
{ name: 'Discord', href: 'https://discord.gg/MrfB5FbNWN' },
{ name: 'GitHub', href: 'https://github.com/jmorganca/ollama' },
2023-07-18 19:56:43 +00:00
{ name: 'Download', href: '/download' },
]
export default function Header() {
return (
2023-07-19 00:03:40 +00:00
<header className='absolute inset-x-0 top-0 z-50'>
<nav className='mx-auto flex items-center justify-between px-10 py-4'>
<a className='flex-1 font-bold' href='/'>
2023-07-18 19:56:43 +00:00
Ollama
</a>
2023-07-19 00:03:40 +00:00
<div className='flex space-x-8'>
{navigation.map(item => (
<a key={item.name} href={item.href} className='text-sm leading-6 text-gray-900'>
2023-07-18 19:56:43 +00:00
{item.name}
</a>
))}
</div>
</nav>
2023-07-19 00:03:40 +00:00
</header>
2023-07-18 19:56:43 +00:00
)
2023-07-19 00:03:40 +00:00
}