Skip to content

Commit 3594020

Browse files
committed
Add Integration figure, improve padding
1 parent cb5a75d commit 3594020

File tree

3 files changed

+48
-2
lines changed

3 files changed

+48
-2
lines changed

src/components/index-page/graphql-advantages/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { OptimizationFigure } from "./optimization"
88
import { ProductivityFigure } from "./productivity"
99
import { ConsistencyFigure } from "./consistency"
1010
import { VersionlessFigure } from "./versionless"
11+
import { IntegrationFigure } from "./integration"
1112

1213
export function GraphQLAdvantages() {
1314
return (
@@ -77,7 +78,7 @@ export function GraphQLAdvantages() {
7778
name="Integration"
7879
bigText="Bring your own data and code"
7980
text="GraphQL is storage-agnostic — integrate databases, REST APIs, and third-party services into a single, cohesive data layer. Write GraphQL APIs that leverage your existing data and code with GraphQL engines available in many languages."
80-
figure={null}
81+
figure={<IntegrationFigure />}
8182
cta={
8283
<Button href="/learn" variant="secondary">
8384
Learn more about this
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
export function IntegrationFigure() {
2+
const languages = [
3+
"C SHARP",
4+
"NODE.JS",
5+
"PYTHON",
6+
"RUST",
7+
"POSTGRES",
8+
"JAVASCRIPT",
9+
]
10+
11+
return (
12+
<div
13+
className="flex min-h-[300px] w-full flex-col items-center justify-center bg-gradient-to-b from-[hsla(75,57%,97%,0)] to-white px-[14px] py-[30px] dark:to-neu-100/20 xl:px-[46px]"
14+
aria-hidden
15+
>
16+
<div className="flex w-full items-center justify-center bg-pri-lighter/50 px-10 py-6 dark:bg-pri-base/15">
17+
<span className="font-mono text-xs font-normal uppercase tracking-wide text-pri-base dark:text-pri-light">
18+
GRAPHQL
19+
</span>
20+
</div>
21+
22+
<div className="relative mt-5 w-full overflow-hidden [mask-image:linear-gradient(to_right,transparent,white_23%,white_77%,transparent)]">
23+
<div
24+
className="flex animate-scroll gap-3"
25+
style={
26+
{
27+
"--animation-duration": "30s",
28+
} as React.CSSProperties
29+
}
30+
>
31+
{[...languages, ...languages].map((language, index) => (
32+
<div
33+
key={index}
34+
className="flex shrink-0 items-center justify-center bg-sec-lighter px-10 py-6 dark:bg-sec-darker/30"
35+
>
36+
<span className="font-mono text-xs font-normal uppercase tracking-wide text-sec-dark dark:text-sec-light">
37+
{language}
38+
</span>
39+
</div>
40+
))}
41+
</div>
42+
</div>
43+
</div>
44+
)
45+
}

src/components/index-page/powered-by-community.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import ArrowDownIcon from "@/app/conf/_design-system/pixelarticons/arrow-down.sv
44

55
export function PoweredByCommunity() {
66
return (
7-
<section className="gql-section">
7+
<section className="gql-section lg:pb-16 xl:pb-24">
88
<div className="gql-container typography-body-lg flex bg-pri-darker text-white max-lg:flex-col">
99
<div className="border-pri-light p-6 max-lg:border-b lg:border-r lg:p-16">
1010
<h2 className="typography-h2 text-balance">

0 commit comments

Comments
 (0)