diff --git a/next.config.js b/next.config.js index 70be9c84c8..56e13b9dc0 100644 --- a/next.config.js +++ b/next.config.js @@ -3,9 +3,10 @@ import nextra from "nextra" import path from "node:path" import withLess from "next-with-less" -import { remarkGraphiQLComment } from "./src/remark-graphiql-comment.js" import fs from "fs" +import { remarkGraphiQLComment } from "./src/remark-graphiql-comment.js" + const vercelJSON = JSON.parse(fs.readFileSync("./vercel.json", "utf-8")) const withNextra = nextra({ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fb8006eaa9..b9052f1ef5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7688,6 +7688,10 @@ snapshots: dependencies: acorn: 8.11.3 + acorn-jsx@5.3.2(acorn@8.15.0): + dependencies: + acorn: 8.15.0 + acorn@8.11.3: {} acorn@8.15.0: {} @@ -9827,7 +9831,7 @@ snapshots: mdast-util-mdx@3.0.0: dependencies: - mdast-util-from-markdown: 2.0.0 + mdast-util-from-markdown: 2.0.2 mdast-util-mdx-expression: 2.0.0 mdast-util-mdx-jsx: 3.1.2 mdast-util-mdxjs-esm: 2.0.1 @@ -10055,8 +10059,8 @@ snapshots: micromark-extension-mdxjs@3.0.0: dependencies: - acorn: 8.11.3 - acorn-jsx: 5.3.2(acorn@8.11.3) + acorn: 8.15.0 + acorn-jsx: 5.3.2(acorn@8.15.0) micromark-extension-mdx-expression: 3.0.0 micromark-extension-mdx-jsx: 3.0.0 micromark-extension-mdx-md: 2.0.0 diff --git a/public/img/graph-wash.png b/public/img/graph-wash.png deleted file mode 100644 index 678844a070..0000000000 Binary files a/public/img/graph-wash.png and /dev/null differ diff --git a/src/components/index-page/how-it-works.tsx b/src/components/index-page/how-it-works.tsx index 5c6abf22d1..c882b76c1f 100644 --- a/src/components/index-page/how-it-works.tsx +++ b/src/components/index-page/how-it-works.tsx @@ -1,43 +1,46 @@ -import Link from "next/link" +import { ChevronRight } from "@/app/conf/_design-system/pixelarticons/chevron-right" +import { Button } from "@/app/conf/_design-system/button" + import { CodeA, CodeB, CodeC } from "../code-blocks" -import { clsx } from "clsx" + +const TRY_IT_OUT_URL = "https://graphql.org/swapi-graphql" export function HowItWorks() { return ( -
-
-
-
-

Describe your data

- -
+
+ + + How it works + +

A GraphQL Query

+
    + } /> + } /> + } /> +
-
-

Ask for what you want

- -
- -
-

Get predictable results

- -
-
+ +
+ ) +} - - Try it out live - +function ListItem({ + text, + code, +}: { + text: React.ReactNode + code: React.ReactNode +}) { + return ( +
  • +
    + {text} +
    +
    + {code}
    -
  • + ) } diff --git a/src/components/index-page/index.tsx b/src/components/index-page/index.tsx index 7f43d52dca..173c09cfea 100644 --- a/src/components/index-page/index.tsx +++ b/src/components/index-page/index.tsx @@ -11,7 +11,7 @@ import { HowItWorks } from "./how-it-works" export function IndexPage() { return ( -
    +
    diff --git a/src/components/index-page/trusted-by/index.tsx b/src/components/index-page/trusted-by/index.tsx index 1610f6403c..b0148cd379 100644 --- a/src/components/index-page/trusted-by/index.tsx +++ b/src/components/index-page/trusted-by/index.tsx @@ -115,7 +115,7 @@ export function TrustedBy() {
    @@ -125,7 +125,7 @@ export function TrustedBy() { href={href} target="_blank" rel="noreferrer" - className="group flex shrink-0 items-center justify-center bg-neu-0 p-10 before:inset-2 hover:before:bg-neu-100 dark:hover:before:bg-[#202219]" + className="group relative flex shrink-0 items-center justify-center bg-neu-0 p-10 *:z-[1] before:absolute before:inset-2 hover:before:bg-neu-100/50 dark:hover:before:bg-[#202219]" > diff --git a/src/components/index-page/trusted-by/style.module.css b/src/components/index-page/trusted-by/style.module.css index a1323e8cbc..84b6c18d32 100644 --- a/src/components/index-page/trusted-by/style.module.css +++ b/src/components/index-page/trusted-by/style.module.css @@ -1,13 +1,4 @@ .logos { - background-image: radial-gradient( - ellipse at 50% 50%, - hsl(var(--color-neu-600)) 0%, - transparent 75% - ); - background-size: 100% 100%; - background-position: center; - background-repeat: no-repeat; - & .shopify > svg { transition: opacity 300ms cubic-bezier(0.075, 0.82, 0.165, 1); } @@ -15,6 +6,10 @@ & > a { transition: background-color 300ms cubic-bezier(0.075, 0.82, 0.165, 1); + &::before { + transition: background-color 300ms cubic-bezier(0.075, 0.82, 0.165, 1); + } + & :is(svg, path) { transition: fill 300ms cubic-bezier(0.075, 0.82, 0.165, 1); } diff --git a/src/globals.css b/src/globals.css index 01e942d99a..974d9ea6bf 100644 --- a/src/globals.css +++ b/src/globals.css @@ -520,6 +520,17 @@ div[id^="headlessui-menu-items"] { --navbar-h: var(--nextra-navbar-height); } +.gql-radial-gradient { + background-image: radial-gradient( + ellipse at 50% 50%, + hsl(var(--color-neu-600)) 0%, + transparent 75% + ); + background-size: 100% 100%; + background-position: center; + background-repeat: no-repeat; +} + :root { --navbar-h: 70px; }