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 (
+
+
+
+
+
+ Ready to
+
+ Build smarter and ship faster?
+
+
+ Experience the next generation of CI tooling.
+
+
+
+ Get started
+
+
+ Contact us{' '}
+
+ →
+
+
+
+
+
+ );
+}
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 {
-
+
@@ -215,11 +219,11 @@ export function SmarterToolsForMonorepos(): JSX.Element {
-
+
@@ -239,9 +243,16 @@ export function SmarterToolsForMonorepos(): JSX.Element {
alt="Nx Video tutorials card"
/>
-
- Video tutorials
-
+
+
+
+ Video tutorials
+
+
@@ -428,13 +439,13 @@ export function SmarterToolsForMonorepos(): JSX.Element {
-
+
diff --git a/nx-dev/ui-home/src/lib/sections/technologies/fastify.tsx b/nx-dev/ui-home/src/lib/sections/technologies/fastify.tsx
new file mode 100644
index 00000000000000..70175fa73d0564
--- /dev/null
+++ b/nx-dev/ui-home/src/lib/sections/technologies/fastify.tsx
@@ -0,0 +1,17 @@
+import { FC, SVGProps } from 'react';
+
+/**
+ * Use `#000000` for a colored version.
+ */
+export const FastifyIcon: FC> = (props) => (
+
+ Fastify
+
+
+);
diff --git a/nx-dev/ui-home/src/lib/sections/technologies/pnpm.tsx b/nx-dev/ui-home/src/lib/sections/technologies/pnpm.tsx
new file mode 100644
index 00000000000000..041278eeffdba2
--- /dev/null
+++ b/nx-dev/ui-home/src/lib/sections/technologies/pnpm.tsx
@@ -0,0 +1,17 @@
+import { FC, SVGProps } from 'react';
+
+/**
+ * Use `#F69220` for a colored version.
+ */
+export const PnpmIcon: FC> = (props) => (
+
+ pnpm
+
+
+);
diff --git a/nx-dev/ui-home/src/lib/sections/technologies/solid.tsx b/nx-dev/ui-home/src/lib/sections/technologies/solid.tsx
new file mode 100644
index 00000000000000..7bde1b54ee2a4e
--- /dev/null
+++ b/nx-dev/ui-home/src/lib/sections/technologies/solid.tsx
@@ -0,0 +1,17 @@
+import { FC, SVGProps } from 'react';
+
+/**
+ * Use `#2C4F7C` for a colored version.
+ */
+export const SolidIcon: FC> = (props) => (
+
+ Solid
+
+
+);
diff --git a/nx-dev/ui-home/src/lib/sections/work-better-achieve-more-ship-quicker.tsx b/nx-dev/ui-home/src/lib/sections/work-better-achieve-more-ship-quicker.tsx
index 0334a37ed34776..1cf3d6bbc69777 100644
--- a/nx-dev/ui-home/src/lib/sections/work-better-achieve-more-ship-quicker.tsx
+++ b/nx-dev/ui-home/src/lib/sections/work-better-achieve-more-ship-quicker.tsx
@@ -45,107 +45,8 @@ export function WorkBetterAchieveMoreShipQuicker(): JSX.Element {
-
-
-
-
- Visibility
-
-
-
-
-
-
-
-
-
-
-
- Ownership
-
-
-
-
-
-
-
-
-
-
-
- Control
-
-
-
-
-
-
-
-
-
-
-
- Automation
-
-
-
-
{/*Remove this*/}
-