header.tsx 729 B

123456789101112131415161718192021222324
  1. const navigation = [
  2. { name: 'Discord', href: 'https://discord.gg/MrfB5FbNWN' },
  3. { name: 'GitHub', href: 'https://github.com/jmorganca/ollama' },
  4. { name: 'Download', href: '/download' },
  5. ]
  6. export default function Header() {
  7. return (
  8. <header className='absolute inset-x-0 top-0 z-50'>
  9. <nav className='mx-auto flex items-center justify-between px-10 py-4'>
  10. <a className='flex-1 font-bold' href='/'>
  11. Ollama
  12. </a>
  13. <div className='flex space-x-8'>
  14. {navigation.map(item => (
  15. <a key={item.name} href={item.href} className='text-sm leading-6 text-gray-900'>
  16. {item.name}
  17. </a>
  18. ))}
  19. </div>
  20. </nav>
  21. </header>
  22. )
  23. }