Skip to content
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

minor design fixes to landing page #3733

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"start": "next start"
},
"dependencies": {
"@theguild/components": "9.2.0",
"@theguild/components": "9.3.2",
"fast-glob": "^3.3.2",
"next": "15.1.6",
"next-sitemap": "4.2.3",
Expand Down
45 changes: 0 additions & 45 deletions website/src/app/(landing-pages)/infinite-moving-cards.tsx

This file was deleted.

11 changes: 11 additions & 0 deletions website/src/app/(landing-pages)/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { ReactNode } from 'react';
import { HiveLayoutConfig } from '@theguild/components';

export default function LandingLayout({ children }: { children: ReactNode }) {
return (
<>
{children}
<HiveLayoutConfig widths="landing-narrow" />
</>
);
}
22 changes: 15 additions & 7 deletions website/src/app/(landing-pages)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import {
GitHubIcon,
Heading,
Hero,
HeroDecorationFromLogo,
HeroLogo,
InfoCard,
TextLink,
ToolsAndLibrariesCards,
Expand Down Expand Up @@ -65,9 +67,14 @@ export default function IndexPage() {
return (
<Page className="mx-auto max-w-[90rem] overflow-hidden">
<Hero
className="mx-4 md:mx-6"
heading="High-performance GraphQL Server"
text="Fully-featured GraphQL server designed for effortless setup and optimal developer experience."
logo={<YogaIcon />}
top={
<HeroLogo>
<YogaIcon />
</HeroLogo>
}
checkmarks={['Fully open source', 'No vendor lock', 'Can be self-hosted!']}
>
<CallToAction variant="primary-inverted" href="/docs">
Expand All @@ -80,13 +87,14 @@ export default function IndexPage() {
<GitHubIcon className="size-6" />
GitHub
</CallToAction>
{/* todo: this is not the same as in design, fix it when we have more time */}
<HeroDecorationFromLogo logo={<YogaIcon />} />
</Hero>

<ExploreMainProductCards />
<EverythingHTTPSection />
<TrulyExtendableSection className="mt-24" />

<ReachZenQuickerWithYoga className="my-28" />
<TrulyExtendableSection className="mt-24 mx-4 md:mx-6" />
<ReachZenQuickerWithYoga />

<RunAnywhereSection className="mx-4 md:mx-6">
{[
Expand Down Expand Up @@ -209,7 +217,7 @@ function EverythingHTTPSection({ className }: { className?: string }) {
icon={<Image src={checkBadge} alt="" />}
className="flex-1 rounded-2xl md:rounded-3xl"
>
Meets rigorous standards as confirmed by comprehensive <br />
Meets rigorous standards as confirmed by comprehensive{' '}
<TextLink
href="https://github.com/enisdenjo/graphql-http/blob/master/implementations/graphql-yoga/README.md"
className="mt-4 text-green-800"
Expand All @@ -236,10 +244,10 @@ function EverythingHTTPSection({ className }: { className?: string }) {
icon={<Image src={arrowUpBade} alt="" />}
className="flex-1 basis-full rounded-2xl md:rounded-3xl lg:basis-0"
>
Facilitates file uploads directly through GraphQL using <br />
Facilitates file uploads directly through GraphQL using{' '}
<TextLink
href="https://github.com/jaydenseric/graphql-multipart-request-spec"
className="mt-4 text-green-800"
className="mt-4 text-green-800 "
>
the multipart request specification
</TextLink>
Expand Down
10 changes: 5 additions & 5 deletions website/src/app/(landing-pages)/reach-zen-quicker-with-yoga.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { ComponentProps, FC } from 'react';
import { CallToAction, Heading, ComparisonTable as Table } from '@theguild/components';
import { CallToAction, cn, Heading, ComparisonTable as Table } from '@theguild/components';
import ComparisonTable from '../comparison-table.mdx';

export const ReachZenQuickerWithYoga: FC<ComponentProps<'section'>> = props => {
export const ReachZenQuickerWithYoga: FC<ComponentProps<'section'>> = ({ className, ...rest }) => {
return (
<section {...props}>
<Heading as="h2" size="md" className="text-balance sm:text-center px-4">
<section className={cn('py-6 md:py-[120px]', className)} {...rest}>
<Heading as="h2" size="md" className="text-balance sm:text-center px-4 md:px-6">
Using Apollo Server? Reach zen quicker with Yoga.
</Heading>
<div className="mx-4 flex max-lg:flex-col gap-6 lg:gap-24 mt-6 sm:mt-[64px]">
<div className="px-4 md:px-6 flex max-lg:flex-col gap-6 lg:gap-24 mt-6 sm:mt-[64px]">
<div className="basis-1/4">
<Heading as="h3" size="sm" className="max-sm:text-2xl">
Runtime&nbsp;Performance Champion
Expand Down
Loading
Loading