import { Popover, Transition } from '@headlessui/react'; import { Bars4Icon, ChevronDownIcon } from '@heroicons/react/24/outline'; import { AlgoliaSearch } from '@nrwl/nx-dev/feature-search'; import { ThemeSwitcher } from '@nrwl/nx-dev/ui-theme'; import cx from 'classnames'; import Link from 'next/link'; import { useRouter } from 'next/router'; import { Fragment } from 'react'; export function Header(): JSX.Element { const router = useRouter(); const flyoutMenu = [ { name: 'Getting started', description: 'Jump right in and start building!', href: '/getting-started/intro', }, { name: 'Concepts', description: 'What to know more about how Nx is working?', href: '/concepts', }, { name: 'Core Features', description: 'Learn the core features of Nx with in depth guides and explainers.', href: '/core-features', }, { name: 'Distributed cache & task execution', description: 'Executes tasks remotely on different agents in parallel. Enable remote cache in one command.', href: '/nx-cloud/intro/what-is-nx-cloud', }, { name: 'Recipes', description: 'Follow instructions to do common specific tasks.', href: '/recipes', }, { name: 'Nx Console', description: 'The official VSCode & JetBrains plugin bringing Nx to your editor.', href: '/core-features/integrate-with-editors#vscode', }, { name: 'Packages', description: 'Officials packages available for a better developer experience.', href: '/packages', }, { name: 'Nx Cloud', description: 'Learn everything about remote cache and distributed tasks configuration.', href: '/nx-cloud/intro/what-is-nx-cloud', }, ]; const flyoutMobileMenu = [ { name: 'Getting started', description: 'Jump right in and start building!', href: '/getting-started/intro', }, { name: 'Community', description: "Check how to reach out and be part of Nx' community.", href: '/getting-started/intro', }, { name: 'Plugins registry', description: 'Add capabilities to your workspace with plugins.', href: '/community#plugin-directory', }, { name: 'Nx Conf', description: 'Be part of the next Nx conference!', href: '/conf', }, { name: 'Nx Enterprise', description: 'Need help?', href: 'https://nx.app/enterprise?utm_source=nx.dev', }, ]; return (
{/*DESKTOP*/}
{/*LOGO*/}
Nx
{/*PRIMARY NAVIGATION*/}
{/*MOBILE*/}
{/*LOGO*/} Nx {/*MENU*/}
{({ open }) => ( <>
)}
Nx on GitHub
); }