Skip to content

Commit 56c8268

Browse files
committed
wip
1 parent 4dde9f4 commit 56c8268

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

src/components/index-page/use-cases/index.tsx

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const USE_CASES: UseCase[] = [
1717
{
1818
label: "A large backend with many services",
1919
description:
20-
"GraphQL serves as a unified data layer across multiple services. You simplify API management, reduce cross-team dependencies, and keep the API surface flexible and maintainable.",
20+
"GraphQL serves as a unified data layer across multiple services. This way you simplify API management and reduce dependencies between teams. It enables efficient data fetching while keeping the API surface flexible and maintainable.",
2121
cta: "Best Practices for Large-Scale Systems",
2222
href: "/learn/best-practices",
2323
},
@@ -60,17 +60,18 @@ export function UseCases({
6060

6161
return (
6262
<section
63-
className={clsx("gql-section gql-container dark:text-neu-0", className)}
63+
className={clsx("gql-container dark:text-neu-0", className)}
6464
{...props}
6565
>
66-
<div className="flex *:basis-1/2 max-lg:flex-col">
67-
<div className="border-sec-dark bg-sec-light p-4 lg:border-r lg:p-8 xl:p-16">
66+
<div className="mx-auto flex max-w-[1440px] *:basis-1/2 max-lg:flex-col 3xl:min-h-[800px]">
67+
<div className="relative flex flex-col border-sec-dark bg-sec-light p-4 lg:border-r lg:p-8 xl:p-16">
6868
<h2 className="typography-h2">Is GraphQL right for&nbsp;me?</h2>
6969
<p className="typography-body-lg mt-6 text-neu-800">
7070
Choose a use case most relevant for your project and learn how
7171
GraphQL can help you build faster, modern solutions.
7272
</p>
7373

74+
<div className="3xl:flex-1" />
7475
<ul className="mt-8 divide-y divide-sec-dark border border-sec-dark">
7576
{USE_CASES.map((useCase, i) => (
7677
<li key={useCase.label}>
@@ -81,23 +82,27 @@ export function UseCases({
8182
className="flex w-full items-center justify-between gap-6 px-3 py-4 text-left transition-colors hover:bg-sec-lighter aria-selected:bg-sec-base aria-selected:hover:bg-sec-lighter"
8283
>
8384
<span className="typography-body-lg">{useCase.label}</span>
84-
<ArrowRightIcon className="size-5 shrink-0 text-sec-dark" />
85+
<ArrowRightIcon className="size-10 shrink-0 text-sec-dark opacity-0 group-aria-selected:opacity-100" />
8586
</button>
8687
</li>
8788
))}
8889
</ul>
90+
<div className="3xl:flex-1" />
8991
</div>
9092

91-
<article className="relative flex h-auto flex-col bg-pri-light p-8 md:p-12 lg:p-16">
93+
<article className="relative flex h-auto flex-col bg-sec-base p-8 md:p-12 lg:p-16">
9294
<Stripes />
93-
<div className="z-10 max-w-2xl">
94-
<h3 className="typography-h3 text-neu-900">{selected.label}</h3>
95-
<p className="typography-body-lg mt-6 text-neu-700">
95+
<div className="z-10 my-auto max-h-[528px] max-w-2xl">
96+
<h3 className="typography-body-lg text-sec-darker">
97+
{selected.label}
98+
</h3>
99+
<p className="typography-h3 mt-10 text-neu-800">
96100
{selected.description}
97101
</p>
98-
<div className="mt-8">
102+
<div className="mt-8 flex xl:mt-[120px]">
99103
<Button href={selected.href} variant="primary">
100104
{selected.cta}
105+
<ArrowRightIcon className="size-6 shrink-0 text-neu-0" />
101106
</Button>
102107
</div>
103108
</div>

0 commit comments

Comments
 (0)