forked from graphql/graphql.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
new landing — hero #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
hasparus
wants to merge
4
commits into
source
Choose a base branch
from
new-landing--hero
base: source
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/dist/client/components/image.js b/dist/client/components/image.js | ||
index 239d72f5921e2d1b7359e569ae5b74c12d7c9d8a..ebeb619da1e3ccb7722e9388c92c1e2192527027 100644 | ||
--- a/dist/client/components/image.js | ||
+++ b/dist/client/components/image.js | ||
@@ -1,5 +1,5 @@ | ||
import { jsx } from "react/jsx-runtime"; | ||
-import NextImage from "next/image"; | ||
+import NextImage from "next-image-export-optimizer"; | ||
import { forwardRef } from "react"; | ||
const Image = forwardRef((props, ref) => { | ||
const ComponentToUse = typeof props.src === "object" ? NextImage : "img"; | ||
diff --git a/dist/client/normalize-pages.js b/dist/client/normalize-pages.js | ||
index 15afee0c1de26f47d781f423e5ec32e33ad925d3..fefd01736bd2b778df275bf50ac48384d5f63845 100644 | ||
--- a/dist/client/normalize-pages.js | ||
+++ b/dist/client/normalize-pages.js | ||
@@ -103,7 +103,9 @@ The field key "${metaKey}.items.${key}" in \`_meta\` file refers to a page that | ||
} | ||
if (item) continue; | ||
if (typeof window === "undefined") { | ||
- const isValid = metaItem.type === "separator" || metaItem.type === "menu" || metaItem.href; | ||
+ const isValid = metaItem.type === "separator" || metaItem.type === "menu" || metaItem.href | ||
+ // workaround | ||
+ || metaKey === 'conf'; | ||
if (!isValid) { | ||
throw new Error( | ||
`Validation of "_meta" file has failed. |
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,6 @@ module.exports = { | |
"tailwindcss/nesting": {}, | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
"postcss-import": {}, | ||
}, | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,59 @@ | ||
import Link from "next/link" | ||
import { CodeA, CodeB, CodeC } from "../code-blocks" | ||
import { GraphQLLogo } from "@/icons" | ||
import { clsx } from "clsx" | ||
import { StripesDecoration } from "@/app/conf/_design-system/stripes-decoration" | ||
import CheckIcon from "@/app/conf/_design-system/pixelarticons/check.svg?svgr" | ||
import { Button } from "@/app/conf/_design-system/button" | ||
import { ImageLoaded } from "@/app/conf/2025/components/image-loaded" | ||
|
||
import logoBlurred from "./hero/logo-blurred.png" | ||
|
||
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 className="relative bg-neu-0"> | ||
<div className="gql-conf-container flex flex-col-reverse lg:grid lg:grid-cols-2"> | ||
<div className="flex max-w-4xl flex-col justify-center gap-4 p-4 lg:min-h-[800px] xl:gap-8 xl:py-24 xl:pl-24 xl:pr-10"> | ||
<h1 className="typography-h1 max-w-3xl text-neu-900"> | ||
The query language for modern APIs | ||
</h1> | ||
|
||
<div> | ||
<h3>Ask for what you want</h3> | ||
<CodeB /> | ||
</div> | ||
<ul className="flex flex-col gap-2"> | ||
{[ | ||
"Deliver high-performance user experience at scale", | ||
"Secure and stabilize your API with a strongly typed schema and validated queries", | ||
"Reduce dependencies through efficient, distributed development", | ||
].map((item, index) => ( | ||
<li key={index} className="flex items-start gap-1"> | ||
<CheckIcon className="size-6 shrink-0 text-pri-base max-lg:mt-px" /> | ||
<p className="text-pretty text-neu-800">{item}</p> | ||
</li> | ||
))} | ||
</ul> | ||
|
||
<div> | ||
<h3>Get predictable results</h3> | ||
<CodeC /> | ||
<div className="flex items-center gap-4"> | ||
<Button href="/learn" className="max-sm:w-full"> | ||
Learn more | ||
</Button> | ||
</div> | ||
</section> | ||
|
||
<Link | ||
className="index-button mx-auto mt-10 block w-fit border-white text-white" | ||
href="/learn" | ||
> | ||
Get Started | ||
</Link> | ||
</div> | ||
<HeroStripes /> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
function HeroStripes() { | ||
return ( | ||
<div className="pointer-events-none relative overflow-hidden max-lg:h-[210px]"> | ||
<ImageLoaded | ||
image={logoBlurred} | ||
className="relative h-full bg-gradient-to-b from-pri-base to-pri-lighter opacity-0 transition-opacity duration-[1.5s] [mask-position:center_12%] [mask-size:110%] data-[loaded=true]:opacity-100 dark:to-pri-base lg:[mask-position:7%_7%] lg:[mask-size:200%]" | ||
style={{ | ||
maskImage: `url(${logoBlurred.src})`, | ||
maskRepeat: "no-repeat", | ||
}} | ||
/> | ||
<StripesDecoration | ||
stripeWidth="5px" | ||
oddClassName="bg-gradient-to-b from-sec-base to-pri-lighter dark:from-sec-darker dark:to-pri-darker" | ||
/> | ||
</div> | ||
) | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import Link from "next/link" | ||
import { CodeA, CodeB, CodeC } from "../code-blocks" | ||
import { clsx } from "clsx" | ||
|
||
export function HowItWorks() { | ||
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> | ||
<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="/TODO" | ||
> | ||
Try it out live | ||
</Link> | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should do
3.x.y
that way patch doesn't break magically since patches are always on some fixed versionThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point. I assumed v3 isn't getting new updates but it might change.