Skip to content

Commit

Permalink
feat(nx-dev): Move nx-cloud to app router
Browse files Browse the repository at this point in the history
  • Loading branch information
ndcunningham committed Jul 16, 2024
1 parent f32289a commit 0476df6
Show file tree
Hide file tree
Showing 9 changed files with 73 additions and 77 deletions.
67 changes: 67 additions & 0 deletions nx-dev/nx-dev/app/nx-cloud/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import {
Layout,
Hero,
TrustedBy,
FasterAndCheaper,
UnderstandWorkspace,
EnhancedWithAi,
AutomatedAgentsManagement,
AgentNumberOverTime,
Statistics,
CallToAction,
} from '@nx/nx-dev/ui-cloud';
import type { Metadata } from 'next';

export const metadata: Metadata = {
title: 'Nx Cloud',
description:
'Nx Cloud is the end-to-end solution for smart, efficient and maintainable CI.',
openGraph: {
url: 'https://nx.dev/nx-cloud',
title: 'Nx Cloud',
description:
'Nx Cloud is the end-to-end solution for smart, efficient and maintainable CI.',
images: [
{
url: 'https://nx.dev/socials/nx-media.png',
width: 800,
height: 421,
alt: 'Nx: Smart Monorepos · Fast CI',
type: 'image/jpeg',
},
],
siteName: 'NxDev',
type: 'website',
},
};

export default function NxCloudPage(): JSX.Element {
return (
<Layout>
<Hero />
<TrustedBy />

<div className="mt-32 lg:mt-56">
<FasterAndCheaper />
</div>
<div className="mt-32 lg:mt-56">
<UnderstandWorkspace />
</div>
<div className="mt-32 lg:mt-56">
<EnhancedWithAi />
</div>
<div className="mt-32 lg:mt-56">
<AutomatedAgentsManagement />
</div>
<div className="mt-32 lg:mt-56">
<AgentNumberOverTime />
</div>
<div className="mt-32 lg:mt-56">
<Statistics />
</div>
<div className="mt-32 lg:mt-56">
<CallToAction />
</div>
</Layout>
);
}
73 changes: 0 additions & 73 deletions nx-dev/nx-dev/pages/nx-cloud.tsx

This file was deleted.

1 change: 1 addition & 0 deletions nx-dev/ui-cloud/src/lib/agent-number-over-time.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client';
import { SectionHeading } from '@nx/nx-dev/ui-common/src/lib/section-tags';
import { motion } from 'framer-motion';
import { useEffect, useState } from 'react';
Expand Down
1 change: 1 addition & 0 deletions nx-dev/ui-cloud/src/lib/automated-agents-management.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client';
import {
AdjustmentsVerticalIcon,
ArrowLongDownIcon,
Expand Down
1 change: 1 addition & 0 deletions nx-dev/ui-cloud/src/lib/faster-and-cheaper.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client';
import {
Variants,
animate,
Expand Down
1 change: 1 addition & 0 deletions nx-dev/ui-cloud/src/lib/hero.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client';
import { Dialog, Transition } from '@headlessui/react';
import { cx } from '@nx/nx-dev/ui-primitives';
import { PlayIcon } from '@heroicons/react/24/outline';
Expand Down
4 changes: 0 additions & 4 deletions nx-dev/ui-cloud/src/lib/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import { Header, Footer } from '@nx/nx-dev/ui-common';

export function Layout({
children,
}: {
children: React.ReactNode;
}): JSX.Element {
return (
<div>
<Header />
<div className="relative isolate pt-14">
<div
className="absolute inset-x-0 -top-40 -z-10 h-full transform-gpu overflow-hidden blur-3xl sm:-top-80"
Expand All @@ -23,7 +20,6 @@ export function Layout({
</div>
<main className="py-24 sm:py-32">{children}</main>
</div>
<Footer />
</div>
);
}
1 change: 1 addition & 0 deletions nx-dev/ui-cloud/src/lib/statistics.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client';
import { motion } from 'framer-motion';
import { useEffect, useState } from 'react';
import { SectionHeading } from '@nx/nx-dev/ui-common/src/lib/section-tags';
Expand Down
1 change: 1 addition & 0 deletions nx-dev/ui-cloud/src/lib/understand-workspace.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
'use client';
import {
ArrowLongRightIcon,
ArrowsRightLeftIcon,
Expand Down

0 comments on commit 0476df6

Please sign in to comment.