-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
Copy pathhero.tsx
49 lines (44 loc) · 1.46 KB
/
hero.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import Link from "next/link"
import { CodeA, CodeB, CodeC } from "../code-blocks"
import { GraphQLLogo } from "@/icons"
import { clsx } from "clsx"
export function Hero() {
return (
<div className="[background:url('/img/graph-wash.png'),#171e26_repeat_center_center] xl:py-20">
<div className="conf-block container">
<section
className={clsx(
"flex flex-wrap items-center justify-center gap-14 max-sm:flex-col",
"[&_h3]:text-2xl [&_h3]:text-white max-lg:[&_h3]:text-center",
"[&_pre]:!bg-transparent [&_pre]:ring-0 [&_pre_span]:text-[--shiki-dark]",
"[&_h3]:font-extralight",
"[&_code]:whitespace-pre-wrap" /* fix scroll on mobile for code-blocks */,
)}
>
<div className="flex flex-col items-center gap-2 max-xl:w-full max-md:grow">
<GraphQLLogo className="w-24" />
<h1 className="text-3xl text-primary">GraphQL</h1>
</div>
<div>
<h3>Describe your data</h3>
<CodeA />
</div>
<div>
<h3>Ask for what you want</h3>
<CodeB />
</div>
<div>
<h3>Get predictable results</h3>
<CodeC />
</div>
</section>
<Link
className="index-button mx-auto mt-10 block w-fit border-white text-white"
href="/learn"
>
Get Started
</Link>
</div>
</div>
)
}