Skip to content

Commit 3048d01

Browse files
authored
remove Learn more button, point Get Started to Learn (#1670)
* aa * fix * aa
1 parent baefece commit 3048d01

File tree

4 files changed

+15
-32
lines changed

4 files changed

+15
-32
lines changed

src/components/index-page/hero/index.tsx renamed to src/components/index-page/hero.tsx

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,48 @@
11
import Link from "next/link"
2-
import { CodeA, CodeB, CodeC } from "../../code-blocks"
2+
import { CodeA, CodeB, CodeC } from "../code-blocks"
33
import { GraphQLLogo } from "@/icons"
44
import { clsx } from "clsx"
5-
import classes from "./index.module.css"
65

76
export function Hero() {
87
return (
9-
<div className="hero dark">
8+
<div className="hero">
109
<div className="container conf-block">
1110
<section
1211
className={clsx(
1312
"flex-wrap gap-14 justify-center items-center flex max-sm:flex-col",
1413
"[&_h3]:text-white [&_h3]:text-2xl max-lg:[&_h3]:text-center",
1514
"[&_pre]:!bg-transparent [&_pre]:ring-0 [&_pre_span]:text-[--shiki-dark]",
1615
"[&_h3]:font-extralight",
16+
"[&_code]:whitespace-pre-wrap" /* fix scroll on mobile for code-blocks */,
1717
)}
1818
>
1919
<div className="max-md:grow max-xl:w-full flex flex-col items-center gap-2">
2020
<GraphQLLogo className="w-24" />
2121
<h1 className="text-primary text-3xl">GraphQL</h1>
2222
</div>
2323

24-
<div className={classes.col1}>
24+
<div>
2525
<h3>Describe your data</h3>
2626
<CodeA />
2727
</div>
2828

29-
<div className={classes.col2}>
29+
<div>
3030
<h3>Ask for what you want</h3>
3131
<CodeB />
3232
</div>
3333

34-
<div className={classes.col3}>
34+
<div>
3535
<h3>Get predictable results</h3>
3636
<CodeC />
3737
</div>
3838
</section>
3939

40-
<div className="flex gap-2 justify-center pt-10">
41-
<Link className={classes.button} href="/code">
42-
Get Started
43-
</Link>
44-
<Link className={classes.button} href="/learn">
45-
Learn More
46-
</Link>
47-
</div>
40+
<Link
41+
className="text-white border-white index-button block w-fit mx-auto mt-10"
42+
href="/learn"
43+
>
44+
Get Started
45+
</Link>
4846
</div>
4947
</div>
5048
)

src/components/index-page/hero/index.module.css

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/components/index-page/without-version/index.tsx renamed to src/components/index-page/without-version.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useEffect, useRef } from "react"
2-
import { V1, V2, V3, V4, V5 } from "../../code-blocks"
2+
import { V1, V2, V3, V4, V5 } from "../code-blocks"
33
import { clsx } from "clsx"
44

55
export function WithoutVersion() {
@@ -24,7 +24,7 @@ export function WithoutVersion() {
2424
return (
2525
<div className="index-gradient">
2626
<section
27-
className="point5 container conf-block flex max-lg:flex-col lg:flex-row-reverse lg:*:w-1/2 gap-14 justify-around"
27+
className="container conf-block flex max-lg:flex-col lg:flex-row-reverse lg:*:w-1/2 gap-14 justify-around"
2828
id="without-versions"
2929
>
3030
<div className="max-lg:text-center">

src/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ div[id^="headlessui-menu-items"] {
341341
}
342342

343343
.index-button {
344-
@apply border border-black dark:border-current rounded-md transition-colors py-2.5 px-6;
344+
@apply border border-current rounded-md transition-colors py-2.5 px-6;
345345

346346
&:hover,
347347
&:focus {

0 commit comments

Comments
 (0)