diff --git a/src/components/blog-page/index.tsx b/src/components/blog-page/index.tsx index 0d597d3b7e..3d78bf4a84 100644 --- a/src/components/blog-page/index.tsx +++ b/src/components/blog-page/index.tsx @@ -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" @@ -87,7 +88,13 @@ export function BlogPage({ )} - + ) diff --git a/src/components/blog-page/looking-for-more.tsx b/src/components/blog-page/looking-for-more.tsx deleted file mode 100644 index 2441ade4e7..0000000000 --- a/src/components/blog-page/looking-for-more.tsx +++ /dev/null @@ -1,36 +0,0 @@ -import { Anchor } from "@/app/conf/_design-system/anchor" - -import ArrowDownIcon from "@/app/conf/_design-system/pixelarticons/arrow-down.svg?svgr" - -export function LookingForMore() { - return ( -
-
-
-

Looking for more?

-

- Explore learning guides and best practices — or browse for tools, - libraries and other resources. -

-
-
- - Learn - - - - Resources - - -
-
-
- ) -} diff --git a/src/components/learn-aggregator/looking-for-more.tsx b/src/components/learn-aggregator/looking-for-more.tsx deleted file mode 100644 index 95c719ad66..0000000000 --- a/src/components/learn-aggregator/looking-for-more.tsx +++ /dev/null @@ -1,37 +0,0 @@ -import { clsx } from "clsx" -import ArrowDownIcon from "@/app/conf/_design-system/pixelarticons/arrow-down.svg?svgr" - -export function LookingForMore(props: React.HTMLAttributes) { - return ( -
-
-
-

Looking for more?

-

- Learning is just the beginning. Discover tools and other resources — - or connect with the GraphQL community around the world. -

-
- -
-
- ) -} diff --git a/src/components/looking-for-more.tsx b/src/components/looking-for-more.tsx new file mode 100644 index 0000000000..db174b300d --- /dev/null +++ b/src/components/looking-for-more.tsx @@ -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 { + description: string + links: [LinkItem, LinkItem] +} + +export function LookingForMore({ + description, + links, + ...props +}: LookingForMoreProps) { + return ( +
+
+
+

Looking for more?

+

{description}

+
+
+ + {links[0].label} + + + + {links[1].label} + + +
+
+
+ ) +} diff --git a/src/pages/learn/index.mdx b/src/pages/learn/index.mdx index c26ab6d58e..a121f17c81 100644 --- a/src/pages/learn/index.mdx +++ b/src/pages/learn/index.mdx @@ -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" - + +