Skip to content

Commit 7a80fb1

Browse files
committed
revert and use hubhero in roadmap hub page
1 parent c67a0d7 commit 7a80fb1

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/layouts/md/Roadmap.tsx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ import type { ChildOnlyProp } from "@/lib/types"
44
import type { MdPageContent, RoadmapFrontmatter } from "@/lib/interfaces"
55

66
import { List as ButtonDropdownList } from "@/components/ButtonDropdown"
7-
import { ContentHero } from "@/components/Hero"
7+
import { ContentHero, HubHero } from "@/components/Hero"
88
import Pill from "@/components/Pill"
99
import RoadmapActionCard from "@/components/Roadmap/RoadmapActionCard"
1010
import RoadmapImageContent from "@/components/Roadmap/RoadmapImageContent"
1111

1212
import { ContentLayout } from "../ContentLayout"
1313

14+
import RoadmapHubHeroImage from "@/public/images/heroes/roadmap-hub-hero.jpg"
15+
1416
const CardGrid = (props: ChildOnlyProp) => (
1517
<SimpleGrid columns={{ base: 1, md: 2 }} spacing={8} {...props} />
1618
)
@@ -98,7 +100,18 @@ export const RoadmapLayout = ({
98100
tocItems={tocItems}
99101
dropdownLinks={dropdownLinks}
100102
maxDepth={frontmatter.sidebarDepth}
101-
heroSection={<ContentHero {...heroProps} />}
103+
heroSection={
104+
slug === "/roadmap/" ? (
105+
<HubHero
106+
heroImg={RoadmapHubHeroImage}
107+
header={frontmatter.title}
108+
title=""
109+
description={frontmatter.description}
110+
/>
111+
) : (
112+
<ContentHero {...heroProps} />
113+
)
114+
}
102115
>
103116
{children}
104117
</ContentLayout>

0 commit comments

Comments
 (0)