Skip to content

Commit 425a13a

Browse files
committed
wip
1 parent d52eeed commit 425a13a

File tree

2 files changed

+13
-88
lines changed

2 files changed

+13
-88
lines changed

src/components/index-page/what-is-graphql/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Wires } from "./wires"
55

66
export function WhatIsGraphQL() {
77
return (
8-
<section className="gql-container gql-section">
8+
<section id="what-is-graphql" className="gql-container gql-section">
99
<SectionLabel>Introduction</SectionLabel>
1010
<div className="justify-between gap-4 lg:flex">
1111
<h2 className="typography-h2 mt-6">What is GraphQL?</h2>

src/components/index-page/what-is-graphql/wires.tsx

Lines changed: 12 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ function ClientEdges() {
2222
<>
2323
<path
2424
d="M446 220L424.5 220V291.75H72"
25-
stroke="url(#paint0_linear_671_9150)"
25+
stroke="url(#paint4_linear_671_9150)"
2626
/>
27-
<path d="M446 220H424.5V147H72" stroke="url(#paint1_linear_671_9150)" />
28-
<path d="M528 220H514.206L72 220" stroke="url(#paint2_linear_671_9150)" />
29-
<path d="M528 220H424.772V365H72" stroke="url(#paint3_linear_671_9150)" />
27+
<path d="M446 220H424.5V147H72" stroke="url(#paint4_linear_671_9150)" />
28+
<path d="M528 220H514.206L72 220" stroke="url(#paint4_linear_671_9150)" />
29+
<path d="M528 220H424.772V365H72" stroke="url(#paint4_linear_671_9150)" />
3030
<path d="M446 220H424.5V112H144" stroke="url(#paint4_linear_671_9150)" />
3131
<path
3232
d="M528.5 220H424.5V328H144"
33-
stroke="url(#paint5_linear_671_9150)"
33+
stroke="url(#paint4_linear_671_9150)"
3434
/>
35-
<path d="M446 220H424.5V184H144" stroke="url(#paint6_linear_671_9150)" />
35+
<path d="M446 220H424.5V184H144" stroke="url(#paint4_linear_671_9150)" />
3636
<path
3737
d="M528 220L424.866 220V256H144"
38-
stroke="url(#paint7_linear_671_9150)"
38+
stroke="url(#paint4_linear_671_9150)"
3939
/>
4040
<path
4141
d="M514.5 220H424.5V76H72"
@@ -46,7 +46,6 @@ function ClientEdges() {
4646
)
4747
}
4848

49-
// Connection paths from center to server (right side)
5049
function ServerEdges() {
5150
return (
5251
<>
@@ -195,50 +194,6 @@ function ServerBoxes() {
195194
function SVGDefinitions() {
196195
return (
197196
<defs>
198-
<linearGradient
199-
id="paint0_linear_671_9150"
200-
x1="446"
201-
y1="338.567"
202-
x2="124.035"
203-
y2="338.567"
204-
gradientUnits="userSpaceOnUse"
205-
>
206-
<stop stopColor="#F3F4F0" />
207-
<stop offset="1" stopColor="#A0A88A" />
208-
</linearGradient>
209-
<linearGradient
210-
id="paint1_linear_671_9150"
211-
x1="446"
212-
y1="99.8575"
213-
x2="204.096"
214-
y2="99.8575"
215-
gradientUnits="userSpaceOnUse"
216-
>
217-
<stop stopColor="#F3F4F0" />
218-
<stop offset="1" stopColor="#A0A88A" />
219-
</linearGradient>
220-
<linearGradient
221-
id="paint2_linear_671_9150"
222-
x1="528"
223-
y1="218.35"
224-
x2="135.443"
225-
y2="218.35"
226-
gradientUnits="userSpaceOnUse"
227-
>
228-
<stop stopColor="#F3F4F0" />
229-
<stop offset="1" stopColor="#A0A88A" />
230-
</linearGradient>
231-
<linearGradient
232-
id="paint3_linear_671_9150"
233-
x1="454"
234-
y1="459.285"
235-
x2="125.148"
236-
y2="459.285"
237-
gradientUnits="userSpaceOnUse"
238-
>
239-
<stop stopColor="#F3F4F0" />
240-
<stop offset="1" stopColor="#A0A88A" />
241-
</linearGradient>
242197
<linearGradient
243198
id="paint4_linear_671_9150"
244199
x1="446"
@@ -250,39 +205,6 @@ function SVGDefinitions() {
250205
<stop stopColor="#F3F4F0" />
251206
<stop offset="1" stopColor="#A0A88A" />
252207
</linearGradient>
253-
<linearGradient
254-
id="paint5_linear_671_9150"
255-
x1="446"
256-
y1="398.551"
257-
x2="266.078"
258-
y2="398.551"
259-
gradientUnits="userSpaceOnUse"
260-
>
261-
<stop stopColor="#F3F4F0" />
262-
<stop offset="1" stopColor="#A0A88A" />
263-
</linearGradient>
264-
<linearGradient
265-
id="paint6_linear_671_9150"
266-
x1="446"
267-
y1="160.591"
268-
x2="266.078"
269-
y2="160.591"
270-
gradientUnits="userSpaceOnUse"
271-
>
272-
<stop stopColor="#F3F4F0" />
273-
<stop offset="1" stopColor="#A0A88A" />
274-
</linearGradient>
275-
<linearGradient
276-
id="paint7_linear_671_9150"
277-
x1="446.394"
278-
y1="279.409"
279-
x2="266.237"
280-
y2="279.409"
281-
gradientUnits="userSpaceOnUse"
282-
>
283-
<stop stopColor="#F3F4F0" />
284-
<stop offset="1" stopColor="#A0A88A" />
285-
</linearGradient>
286208
<linearGradient
287209
id="paint8_linear_671_9150"
288210
x1="446"
@@ -415,6 +337,9 @@ const components = {
415337
}
416338

417339
export function Wires({ className }: { className?: string }) {
340+
// Step 1 in the demonstration:
341+
// Query visible, first client wire selected.
342+
418343
return (
419344
<div className={clsx(className, "relative")}>
420345
<svg
@@ -427,12 +352,12 @@ export function Wires({ className }: { className?: string }) {
427352
className="relative h-auto w-full"
428353
>
429354
<ClientEdges />
430-
<ServerEdges />
431355
<ClientBoxes />
356+
<ServerEdges />
432357
<ServerBoxes />
433358
<SVGDefinitions />
434359
</svg>
435-
<QueryMdx components={components} />
360+
{/* <QueryMdx components={components} /> */}
436361
</div>
437362
)
438363
}

0 commit comments

Comments
 (0)