From 7bbb5e4961ecb98d720addca73e486a009fb1c92 Mon Sep 17 00:00:00 2001 From: Benjamin Cabanes <3447705+bcabanes@users.noreply.github.com> Date: Thu, 11 Jul 2024 11:31:32 -0400 Subject: [PATCH] feat(nx-dev): update homepage --- nx-dev/nx-dev/pages/index.tsx | 4 + nx-dev/ui-home/src/index.ts | 1 + .../src/lib/sections/call-to-action.tsx | 90 ++++++++++++++++ .../sections/smarter-tools-for-monorepos.tsx | 29 +++-- .../src/lib/sections/technologies/fastify.tsx | 17 +++ .../src/lib/sections/technologies/pnpm.tsx | 17 +++ .../src/lib/sections/technologies/solid.tsx | 17 +++ .../work-better-achieve-more-ship-quicker.tsx | 101 +----------------- nx-dev/ui-home/src/lib/sections/youtube.tsx | 17 +++ .../src/lib/nodes/heading.component.tsx | 2 +- 10 files changed, 185 insertions(+), 110 deletions(-) create mode 100644 nx-dev/ui-home/src/lib/sections/call-to-action.tsx create mode 100644 nx-dev/ui-home/src/lib/sections/technologies/fastify.tsx create mode 100644 nx-dev/ui-home/src/lib/sections/technologies/pnpm.tsx create mode 100644 nx-dev/ui-home/src/lib/sections/technologies/solid.tsx create mode 100644 nx-dev/ui-home/src/lib/sections/youtube.tsx diff --git a/nx-dev/nx-dev/pages/index.tsx b/nx-dev/nx-dev/pages/index.tsx index 5aa810b024d7e2..823d14a19ac301 100644 --- a/nx-dev/nx-dev/pages/index.tsx +++ b/nx-dev/nx-dev/pages/index.tsx @@ -1,6 +1,7 @@ import { DefaultLayout } from '@nx/nx-dev/ui-common'; import { NextSeo } from 'next-seo'; import { + CallToAction, CiForMonorepos, Hero, SmarterToolsForMonorepos, @@ -56,6 +57,9 @@ export default function Index(): JSX.Element {
+
+ +
); diff --git a/nx-dev/ui-home/src/index.ts b/nx-dev/ui-home/src/index.ts index 2e08cd5ae7d55d..538dac43e7cea3 100644 --- a/nx-dev/ui-home/src/index.ts +++ b/nx-dev/ui-home/src/index.ts @@ -5,3 +5,4 @@ export * from './lib/sections/statistics'; export * from './lib/sections/team-and-community'; export * from './lib/sections/trusted-by'; export * from './lib/sections/work-better-achieve-more-ship-quicker'; +export * from './lib/sections/call-to-action'; diff --git a/nx-dev/ui-home/src/lib/sections/call-to-action.tsx b/nx-dev/ui-home/src/lib/sections/call-to-action.tsx new file mode 100644 index 00000000000000..de63e7918af42d --- /dev/null +++ b/nx-dev/ui-home/src/lib/sections/call-to-action.tsx @@ -0,0 +1,90 @@ +import Link from 'next/link'; + +export function CallToAction(): JSX.Element { + return ( +
+ +
+ ); +} diff --git a/nx-dev/ui-home/src/lib/sections/smarter-tools-for-monorepos.tsx b/nx-dev/ui-home/src/lib/sections/smarter-tools-for-monorepos.tsx index 9b799a0c7933bc..bb4431044fad07 100644 --- a/nx-dev/ui-home/src/lib/sections/smarter-tools-for-monorepos.tsx +++ b/nx-dev/ui-home/src/lib/sections/smarter-tools-for-monorepos.tsx @@ -36,6 +36,10 @@ import { WebpackIcon } from './technologies/webpack'; import { SectionHeading, Strong, TextLink } from '../typography'; import { cx } from '@nx/nx-dev/ui-primitives'; import { motion } from 'framer-motion'; +import { FastifyIcon } from './technologies/fastify'; +import { PnpmIcon } from './technologies/pnpm'; +import { SolidIcon } from './technologies/solid'; +import { YoutubeIcon } from './youtube'; export function SmarterToolsForMonorepos(): JSX.Element { return ( @@ -193,11 +197,11 @@ export function SmarterToolsForMonorepos(): JSX.Element { -