diff --git a/docs/nx-cloud/intro/nx-cloud-workflows.md b/docs/nx-cloud/intro/nx-cloud-workflows.md index 0a18ea9387376..016a57543b271 100644 --- a/docs/nx-cloud/intro/nx-cloud-workflows.md +++ b/docs/nx-cloud/intro/nx-cloud-workflows.md @@ -5,6 +5,8 @@ src="https://www.youtube.com/embed/JG1FWfZFByM" title="Introducing Nx Cloud Workflows" width="100%" /%} +{% call-to-action title="Sign Up for Early Access" icon="nxcloud" description="Experience Nx Cloud Workflows for yourself" url="https://cloud.nx.app/workflows-early-access" /%} + ## Powerful CI Capabilities Optimized for Nx monorepos Just like Nx and Nx Cloud, Nx Cloud Workflows enables you to offload tedious technical tasks so that you can focus on more mission-critical tasks. With a traditional CI platform, you are responsible for telling the CI platform exactly what commands to execute in which environments and what to do with the artifacts. Nx Cloud by itself can automate parallelizing tasks and sharing build artifacts across machines, but you still have to create agent machines on your CI platform. diff --git a/nx-dev/ui-markdoc/src/index.ts b/nx-dev/ui-markdoc/src/index.ts index 9c4b875dbadc5..37c21e3376369 100644 --- a/nx-dev/ui-markdoc/src/index.ts +++ b/nx-dev/ui-markdoc/src/index.ts @@ -17,6 +17,8 @@ import { CustomLink } from './lib/nodes/link.component'; import { link } from './lib/nodes/link.schema'; import { Callout } from './lib/tags/callout.component'; import { callout } from './lib/tags/callout.schema'; +import { CallToAction } from './lib/tags/call-to-action.component'; +import { callToAction } from './lib/tags/call-to-action.schema'; import { Card, Cards, LinkCard } from './lib/tags/cards.component'; import { card, cards, linkCard } from './lib/tags/cards.schema'; import { GithubRepository } from './lib/tags/github-repository.component'; @@ -66,6 +68,7 @@ export const getMarkdocCustomConfig = ( }, tags: { callout, + 'call-to-action': callToAction, card, cards, 'link-card': linkCard, @@ -90,6 +93,7 @@ export const getMarkdocCustomConfig = ( }, components: { Callout, + CallToAction, Card, Cards, LinkCard, diff --git a/nx-dev/ui-markdoc/src/lib/tags/call-to-action.component.tsx b/nx-dev/ui-markdoc/src/lib/tags/call-to-action.component.tsx new file mode 100644 index 0000000000000..bbc171aee7fd6 --- /dev/null +++ b/nx-dev/ui-markdoc/src/lib/tags/call-to-action.component.tsx @@ -0,0 +1,41 @@ +import { ChevronRightIcon } from '@heroicons/react/24/outline'; +import { frameworkIcons } from '../icons'; + +export function CallToAction({ + url, + title, + description, + icon = 'nx', +}: { + url: string; + title: string; + description?: string; + icon?: string; +}): JSX.Element { + return ( +
+ {title} + + + {description || ''} + +
+