Skip to content
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
11 changes: 9 additions & 2 deletions src/components/blog-page/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import { Tag } from "@/app/conf/_design-system/tag"
import { arrowsMoveSideways } from "@/app/conf/_design-system/utils/arrows-move-sideways"
import { StripesDecoration } from "@/app/conf/_design-system/stripes-decoration"

import { LookingForMore } from "@/components/looking-for-more"

import { blogTagColors } from "./blog-tag-colors"
import { BlogCard } from "./blog-card"
import { LookingForMore } from "./looking-for-more"
import { BlogMdxContent } from "./mdx-types"
import { FeaturedBlogPosts } from "./featured-blog-posts"

Expand Down Expand Up @@ -87,7 +88,13 @@ export function BlogPage({
)}
</section>
</div>
<LookingForMore />
<LookingForMore
description="Explore learning guides and best practices — or browse for tools, libraries and other resources."
links={[
{ href: "/learn", label: "Learn" },
{ href: "/resources", label: "Resources" },
]}
/>
</div>
</main>
)
Expand Down
36 changes: 0 additions & 36 deletions src/components/blog-page/looking-for-more.tsx

This file was deleted.

37 changes: 0 additions & 37 deletions src/components/learn-aggregator/looking-for-more.tsx

This file was deleted.

46 changes: 46 additions & 0 deletions src/components/looking-for-more.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import { clsx } from "clsx"
import { Anchor } from "@/app/conf/_design-system/anchor"
import ArrowDownIcon from "@/app/conf/_design-system/pixelarticons/arrow-down.svg?svgr"

type LinkItem = { href: string; label: string }

interface LookingForMoreProps extends React.HTMLAttributes<HTMLElement> {
description: string
links: [LinkItem, LinkItem]
}

export function LookingForMore({
description,
links,
...props
}: LookingForMoreProps) {
return (
<section
{...props}
className={clsx("gql-container gql-section", props.className)}
>
<div className="mx-auto grid max-w-[1504px] gap-0 bg-pri-dark text-white dark:bg-pri-darker lg:grid-cols-[752px_1fr]">
<div className="flex flex-col justify-between gap-6 border-pri-light p-6 xs:gap-8 xs:p-8 lg:border-r lg:p-16">
<h2 className="typography-h2 text-balance">Looking for more?</h2>
<p className="typography-body-lg max-w-[624px]">{description}</p>
</div>
<div className="flex flex-col">
<Anchor
href={links[0].href}
className="flex items-center justify-between border-y border-pri-light px-6 py-10 hover:bg-white/10 xs:px-8 xs:py-16 lg:border-t-0"
>
<span className="typography-body-lg">{links[0].label}</span>
<ArrowDownIcon className="size-10 shrink-0 -rotate-90 text-pri-light" />
</Anchor>
<Anchor
href={links[1].href}
className="flex items-center justify-between px-6 py-10 hover:bg-white/10 xs:px-8 xs:py-16"
>
<span className="typography-body-lg">{links[1].label}</span>
<ArrowDownIcon className="size-10 shrink-0 -rotate-90 text-pri-light" />
</Anchor>
</div>
</div>
</section>
)
}
11 changes: 9 additions & 2 deletions src/pages/learn/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { LearnHeroStripes } from '../../components/learn-aggregator/learn-hero-s
import { pagesBySection } from '../../components/learn-aggregator/learn-pages'
import { CommonQuestionsSection } from '../../components/learn-aggregator/common-questions'
import { TrainingCoursesSection } from '../../components/learn-aggregator/training-courses'
import { LookingForMore } from "../../components/learn-aggregator/looking-for-more"
import { LookingForMore } from "../../components/looking-for-more"

<NavbarFixed />
<TocHero
Expand Down Expand Up @@ -68,4 +68,11 @@ import { LookingForMore } from "../../components/learn-aggregator/looking-for-mo

<CommonQuestionsSection id="faq" />

<LookingForMore />
<LookingForMore
description="Learning is just the beginning. Discover tools and other resources — or connect with the GraphQL community around the world."
links={[
{ href: "/resources", label: "Resources" },
{ href: "/community", label: "Community" },
]}
/>

Loading