Skip to content

Commit 75a73ed

Browse files
committedNov 5, 2024·
feat(nx-dev): add customer case studies
1 parent 5ddcb56 commit 75a73ed

File tree

5 files changed

+47
-20
lines changed

5 files changed

+47
-20
lines changed
 

‎nx-dev/nx-dev/pages/customers.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { CallToAction, DefaultLayout } from '@nx/nx-dev/ui-common';
22
import { NextSeo } from 'next-seo';
33
import { useRouter } from 'next/router';
4-
54
import {
65
EnterpriseCustomers,
76
Hero,
@@ -38,7 +37,7 @@ export function Customers(): JSX.Element {
3837
<div>
3938
<Hero />
4039
</div>
41-
<div className="mt-16 lg:mt-16">
40+
<div className="mt-16">
4241
<EnterpriseCustomers />
4342
</div>
4443
<div className="mt-16 lg:mt-32">

‎nx-dev/ui-customers/src/lib/enterprise-customers.tsx

+22-7
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import {
4444
VodafoneIcon,
4545
ZipariIcon,
4646
} from '@nx/nx-dev/ui-icons';
47+
import { DownloadCaseStudy } from '@nx/nx-dev/ui-enterprise';
4748

4849
export function EnterpriseCustomers(): JSX.Element {
4950
return (
@@ -123,11 +124,18 @@ export function EnterpriseCustomers(): JSX.Element {
123124
>
124125
<ParamountIcon aria-hidden="true" className="h-14 w-14" />
125126
</a>
127+
<div className="col-span-2 flex items-center justify-center p-6 md:col-span-2">
128+
<DownloadCaseStudy
129+
title="Banking Case Study"
130+
description="$7B European bank cuts CI times by 62% and boosts team productivity."
131+
buttonHref="https://go.nx.dev/bank-case-study"
132+
/>
133+
</div>
126134
<a
127135
href="https://www.fedex.com"
128136
rel="noreferrer"
129137
target="_blank"
130-
className="flex items-center justify-center border-b border-slate-200/20 p-12 transition hover:bg-slate-100/20 hover:text-slate-950 dark:border-slate-800/20 dark:hover:border-slate-600/20 dark:hover:bg-slate-600/10 dark:hover:text-white"
138+
className="flex items-center justify-center border-b border-l border-r border-slate-200/20 p-12 transition hover:bg-slate-100/20 hover:text-slate-950 dark:border-slate-800/20 dark:hover:border-slate-600/20 dark:hover:bg-slate-600/10 dark:hover:text-white"
131139
>
132140
<FedExIcon aria-hidden="true" className="h-28 w-28" />
133141
</a>
@@ -143,7 +151,7 @@ export function EnterpriseCustomers(): JSX.Element {
143151
href="https://zipari.com"
144152
rel="noreferrer"
145153
target="_blank"
146-
className="flex items-center justify-center border-b border-r border-slate-200/20 p-12 transition hover:bg-slate-100/20 hover:text-slate-950 dark:border-slate-800/20 dark:hover:border-slate-600/20 dark:hover:bg-slate-600/10 dark:hover:text-white"
154+
className="flex items-center justify-center border-b border-r border-t border-slate-200/20 p-12 transition hover:bg-slate-100/20 hover:text-slate-950 dark:border-slate-800/20 dark:hover:border-slate-600/20 dark:hover:bg-slate-600/10 dark:hover:text-white"
147155
>
148156
<ZipariIcon aria-hidden="true" className="h-12 w-12" />
149157
</a>
@@ -152,7 +160,7 @@ export function EnterpriseCustomers(): JSX.Element {
152160
href="https://www.bill.com"
153161
rel="noreferrer"
154162
target="_blank"
155-
className="flex items-center justify-center border-x border-b border-slate-200/20 p-12 transition hover:bg-slate-100/20 hover:text-slate-950 dark:border-slate-800/20 dark:hover:border-slate-600/20 dark:hover:bg-slate-600/10 dark:hover:text-white"
163+
className="flex items-center justify-center border-x border-b border-t border-slate-200/20 p-12 transition hover:bg-slate-100/20 hover:text-slate-950 dark:border-slate-800/20 dark:hover:border-slate-600/20 dark:hover:bg-slate-600/10 dark:hover:text-white"
156164
>
157165
<BillIcon aria-hidden="true" className="h-16 w-16" />
158166
</a>
@@ -192,7 +200,7 @@ export function EnterpriseCustomers(): JSX.Element {
192200
href="https://www.deloitte.com"
193201
rel="noreferrer"
194202
target="_blank"
195-
className="flex items-center justify-center border-b border-slate-200/20 p-12 transition hover:bg-slate-100/20 hover:text-slate-950 dark:border-slate-800/20 dark:hover:border-slate-600/20 dark:hover:bg-slate-600/10 dark:hover:text-white"
203+
className="flex items-center justify-center border-b border-r border-slate-200/20 p-12 transition hover:bg-slate-100/20 hover:text-slate-950 dark:border-slate-800/20 dark:hover:border-slate-600/20 dark:hover:bg-slate-600/10 dark:hover:text-white"
196204
>
197205
<DeloitteIcon aria-hidden="true" className="h-28 w-28" />
198206
</a>
@@ -204,11 +212,18 @@ export function EnterpriseCustomers(): JSX.Element {
204212
>
205213
<VodafoneIcon aria-hidden="true" className="h-12 w-12" />
206214
</a>
215+
<div className="col-span-2 flex items-center justify-center p-6 md:col-span-2">
216+
<DownloadCaseStudy
217+
title="Financial Institution Case Study"
218+
description="$28B Fortune 500 financial institution reduces CI times by 79% with Nx Cloud."
219+
buttonHref="https://go.nx.dev/financial-casestudy"
220+
/>
221+
</div>
207222
<a
208223
href="https://www.t-mobile.com"
209224
rel="noreferrer"
210225
target="_blank"
211-
className="flex items-center justify-center border-b border-r border-slate-200/20 p-12 transition hover:bg-slate-100/20 hover:text-slate-950 dark:border-slate-800/20 dark:hover:border-slate-600/20 dark:hover:bg-slate-600/10 dark:hover:text-white"
226+
className="flex items-center justify-center border-b border-l border-r border-slate-200/20 p-12 transition hover:bg-slate-100/20 hover:text-slate-950 dark:border-slate-800/20 dark:hover:border-slate-600/20 dark:hover:bg-slate-600/10 dark:hover:text-white"
212227
>
213228
<TMobileIcon aria-hidden="true" className="h-10 w-10" />
214229
</a>
@@ -224,15 +239,15 @@ export function EnterpriseCustomers(): JSX.Element {
224239
href="https://www.modernatx.com"
225240
rel="noreferrer"
226241
target="_blank"
227-
className="flex items-center justify-center border-b border-slate-200/20 p-12 transition hover:bg-slate-100/20 hover:text-slate-950 dark:border-slate-800/20 dark:hover:border-slate-600/20 dark:hover:bg-slate-600/10 dark:hover:text-white"
242+
className="flex items-center justify-center border-b border-t border-slate-200/20 p-12 transition hover:bg-slate-100/20 hover:text-slate-950 dark:border-slate-800/20 dark:hover:border-slate-600/20 dark:hover:bg-slate-600/10 dark:hover:text-white"
228243
>
229244
<ModernaIcon aria-hidden="true" className="h-32 w-32" />
230245
</a>
231246
<a
232247
href="https://clickup.com"
233248
rel="noreferrer"
234249
target="_blank"
235-
className="flex items-center justify-center border-x border-b border-slate-200/20 p-12 transition hover:bg-slate-100/20 hover:text-slate-950 dark:border-slate-800/20 dark:hover:border-slate-600/20 dark:hover:bg-slate-600/10 dark:hover:text-white"
250+
className="flex items-center justify-center border-x border-b border-t border-slate-200/20 p-12 transition hover:bg-slate-100/20 hover:text-slate-950 dark:border-slate-800/20 dark:hover:border-slate-600/20 dark:hover:bg-slate-600/10 dark:hover:text-white"
236251
>
237252
<ClickUpIcon aria-hidden="true" className="h-12 w-12" />
238253
</a>

‎nx-dev/ui-customers/src/lib/oss-projects.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function OssProjects(): JSX.Element {
2626
Popular OSS projects using Nx
2727
</SectionHeading>
2828

29-
<div className="mt-20">
29+
<div className="mt-16">
3030
<dl className="grid grid-cols-2 justify-between sm:grid-cols-4">
3131
<a
3232
rel="noreferrer"

‎nx-dev/ui-enterprise/src/lib/download-case-study.tsx

+18-9
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,37 @@
11
import { ButtonLink } from '@nx/nx-dev/ui-common';
22

3-
export function DownloadCaseStudy(): JSX.Element {
3+
export interface DownloadCaseStudyProps {
4+
title: string;
5+
description: string;
6+
buttonHref: string;
7+
buttonText?: string;
8+
}
9+
10+
export function DownloadCaseStudy({
11+
title,
12+
description,
13+
buttonHref,
14+
buttonText = 'Download (pdf)',
15+
}: DownloadCaseStudyProps): JSX.Element {
416
return (
517
<div className="border border-slate-100 bg-white shadow-lg sm:rounded-lg dark:border-slate-800/60 dark:bg-slate-950">
618
<div className="px-4 py-5 sm:p-6">
719
<h3 className="text-base font-semibold leading-6 text-slate-900 dark:text-slate-100">
8-
Our case study
20+
{title}
921
</h3>
1022
<div className="mt-2 sm:flex sm:items-start sm:justify-between">
1123
<div className="max-w-xl text-sm">
12-
<p>
13-
See how a $7B bank saved money, reduced CI times by 62% and
14-
improved developer productivity.
15-
</p>
24+
<p>{description}</p>
1625
</div>
1726
<div className="mt-5 sm:ml-6 sm:mt-0 sm:flex sm:flex-shrink-0 sm:items-center">
1827
<ButtonLink
19-
href="https://go.nx.dev/bank-case-study"
20-
title="Download the case study"
28+
href={buttonHref}
29+
title={`Download ${title}`}
2130
variant="primary"
2231
target="_blank"
2332
size="small"
2433
>
25-
Download (pdf)
34+
{buttonText}
2635
</ButtonLink>
2736
</div>
2837
</div>

‎nx-dev/ui-enterprise/src/lib/metrics-and-customers.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,11 @@ export function MetricsAndCustomers(): JSX.Element {
157157
whileInView="visible"
158158
className="mx-auto max-w-xl"
159159
>
160-
<DownloadCaseStudy />
160+
<DownloadCaseStudy
161+
title="Banking Case Study"
162+
description="See how a $7B bank saved money, reduced CI times by 62% and improved developer productivity."
163+
buttonHref="https://go.nx.dev/bank-case-study"
164+
/>
161165
</motion.div>
162166
</div>
163167
<div className="hidden w-1/4 items-center justify-end gap-20 lg:flex">

0 commit comments

Comments
 (0)
Please sign in to comment.