Skip to content

Commit d52eeed

Browse files
committed
wip
1 parent 4887f70 commit d52eeed

File tree

6 files changed

+560
-1
lines changed

6 files changed

+560
-1
lines changed

src/components/index-page/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ import { GraphQLAdvantages } from "./graphql-advantages"
88
import { QuotesFromTheIndustry } from "./quotes-from-the-industry"
99
import { JoinTheCommunity } from "./join-the-community"
1010
import { DataColocation } from "./data-colocation"
11+
import { WhatIsGraphQL } from "./what-is-graphql"
1112

1213
export function IndexPage() {
1314
return (
1415
<div className="gql-all-anchors-focusable bg-neu-0">
1516
<Hero />
1617
<TrustedBy />
18+
<WhatIsGraphQL />
1719
<HowItWorks />
1820
<ProvenSolution />
1921
<FivePillars />
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
```graphql
2+
{
3+
project(name: "GraphQL") {
4+
tagline
5+
contributors {
6+
name
7+
}
8+
}
9+
}
10+
```
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
import { type SVGProps } from "react"
2+
3+
export function DesktopIcon(props: SVGProps<SVGPathElement>) {
4+
return <path d="M22 4V18H16V20H8V18H2V4H22ZM4 6V16H20V6H4Z" {...props} />
5+
}
6+
7+
export function PhoneIcon(props: SVGProps<SVGPathElement>) {
8+
return (
9+
<path
10+
d="M18 21H6V3H18V21ZM8 19H16V5H14V7H10V5H8V19ZM13 17H11V15H13V17Z"
11+
{...props}
12+
/>
13+
)
14+
}
15+
16+
export function TelevisionIcon(props: SVGProps<SVGPathElement>) {
17+
return (
18+
<path
19+
d="M9 2H7V4H9V2ZM17 2H15V4H17V2ZM22 20V6H15V4H13V6H11V4H9V6H2V20H22ZM4 18V8H20V18H4Z"
20+
{...props}
21+
/>
22+
)
23+
}
24+
25+
export function TabletIcon(props: SVGProps<SVGPathElement>) {
26+
return (
27+
<path d="M20 22H4V2H20V22ZM6 20H18V4H6V20ZM13 18H11V16H13V18Z" {...props} />
28+
)
29+
}
30+
31+
export function WristwatchIcon(props: SVGProps<SVGPathElement>) {
32+
return (
33+
<path
34+
d="M16 22H8V18H3V6H8V2H16V6H21V18H16V22ZM5 16H19V8H5V16Z"
35+
{...props}
36+
/>
37+
)
38+
}
39+
40+
export function LabirynthIcon(props: SVGProps<SVGPathElement>) {
41+
return (
42+
<path
43+
d="M13 10H14V14H10V10H11V8H8V16H16V8H18V18H6V6H11V4H4V20H20V4H22V22H2V2H13V10Z"
44+
{...props}
45+
/>
46+
)
47+
}
48+
49+
export function ServerIcon(props: SVGProps<SVGPathElement>) {
50+
return (
51+
<path
52+
d="M21 21H3V3H21V21ZM5 19H19V13H5V19ZM9 17H7V15H9V17ZM5 11H19V5H5V11ZM9 9H7V7H9V9Z"
53+
{...props}
54+
/>
55+
)
56+
}
57+
58+
export function ModemIcon(props: SVGProps<SVGPathElement>) {
59+
return (
60+
<>
61+
<path
62+
d="M16 7H22V23H20V16H4V23H2V7H14V5H16V7ZM4 14H20V9H4V14ZM14 13H12V11H14V13ZM18 13H16V11H18V13ZM13 5H11V3H13V5ZM19 5H17V3H19V5ZM17 3H13V1H17V3Z"
63+
{...props}
64+
/>
65+
<path
66+
d="M16 7H22V23H2V7H14V5H16V7ZM4 21H20V16H4V21ZM14 20H12V18H14V20ZM18 20H16V18H18V20ZM4 14H20V9H4V14ZM14 13H12V11H14V13ZM18 13H16V11H18V13ZM13 5H11V3H13V5ZM19 5H17V3H19V5ZM17 3H13V1H17V3Z"
67+
{...props}
68+
/>
69+
</>
70+
)
71+
}
72+
73+
export function CloudIcon(props: SVGProps<SVGPathElement>) {
74+
return (
75+
<path
76+
d="M22 20H2V18H22V20ZM2 18H0V12H2V18ZM24 18H22V12H24V18ZM18 12V14H16V12H18ZM4 12H2V10H4V12ZM10 12H8V10H10V12ZM20 10H22V12H18V8H20V10ZM8 10H4V8H8V10ZM10 8H8V6H10V8ZM18 8H16V6H18V8ZM16 6H10V4H16V6Z"
77+
{...props}
78+
/>
79+
)
80+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { SectionLabel } from "@/app/conf/_design-system/section-label"
2+
import { Button } from "@/app/conf/_design-system/button"
3+
4+
import { Wires } from "./wires"
5+
6+
export function WhatIsGraphQL() {
7+
return (
8+
<section className="gql-container gql-section">
9+
<SectionLabel>Introduction</SectionLabel>
10+
<div className="justify-between gap-4 lg:flex">
11+
<h2 className="typography-h2 mt-6">What is GraphQL?</h2>
12+
<p className="typography-body-lg mt-6 max-w-[624px] text-pretty text-neu-800">
13+
GraphQL is an open‑source query language for APIs and
14+
a&nbsp;server‑side runtime. It provides a strongly‑typed schema to
15+
define relationships between data, making APIs more flexible and
16+
predictable. And it isn’t tied to a specific database or storage
17+
engine — it works with your existing code and data, making it easier
18+
to evolve APIs over time.
19+
</p>
20+
</div>
21+
<Wires className="mt-6 w-full max-sm:my-12" />
22+
<Button className="mt-6 sm:mx-auto sm:w-fit" href="/learn">
23+
Learn GraphQL
24+
</Button>
25+
</section>
26+
)
27+
}

0 commit comments

Comments
 (0)