import { useRouter } from 'next/router';
import { NextSeo } from 'next-seo';
import { DefaultLayout } from '@nx/nx-dev/ui-common';
import {
  CallToAction,
  DownloadEbook,
  EnterpriseAddons,
  Hero,
  MetricsAndCustomers,
  ScaleYourPeople,
  Security,
  TrustedBy,
  SolveYourCi,
} from '@nx/nx-dev/ui-enterprise';
import { TrialCallout } from '@nx/nx-dev/ui-pricing';

export function Enterprise(): JSX.Element {
  const router = useRouter();

  return (
    <>
      <NextSeo
        title="Nx Enterprise"
        description="Accelerate your organization's journey to tighter collaboration, better developer experience, and speed…lots of speed."
        openGraph={{
          url: 'https://nx.dev' + router.asPath,
          title: 'Nx Enterprise',
          description:
            "Accelerate your organization's journey to tighter collaboration, better developer experience, and speed…lots of speed.",
          images: [
            {
              url: 'https://nx.dev/socials/nx-media.png',
              width: 800,
              height: 421,
              alt: 'Nx: Smart Monorepos · Fast CI',
              type: 'image/jpeg',
            },
          ],
          siteName: 'Nx',
          type: 'website',
        }}
      />
      <DefaultLayout>
        <div>
          <Hero />
        </div>
        <div className="mt-32 lg:mt-40">
          <MetricsAndCustomers />
        </div>
        <div className="mt-32 lg:mt-40">
          <TrialCallout pageId="enterprise" />
        </div>
        <div className="mt-32 lg:mt-56">
          <ScaleYourPeople />
        </div>
        <div className="mt-32 lg:mt-56">
          <Security />
        </div>
        <div className="mt-32 lg:mt-56">
          <SolveYourCi />
        </div>
        <div className="mt-32 lg:mt-56">
          <DownloadEbook />
        </div>
        <div className="mt-32 lg:mt-56">
          <EnterpriseAddons />
        </div>
        <div className="mt-32">
          <TrustedBy />
        </div>
        <div className="mt-32 lg:mt-56">
          <CallToAction />
        </div>
      </DefaultLayout>
    </>
  );
}

export default Enterprise;
