File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,15 @@ import type { ChildOnlyProp } from "@/lib/types"
4
4
import type { MdPageContent , RoadmapFrontmatter } from "@/lib/interfaces"
5
5
6
6
import { List as ButtonDropdownList } from "@/components/ButtonDropdown"
7
- import { ContentHero } from "@/components/Hero"
7
+ import { ContentHero , HubHero } from "@/components/Hero"
8
8
import Pill from "@/components/Pill"
9
9
import RoadmapActionCard from "@/components/Roadmap/RoadmapActionCard"
10
10
import RoadmapImageContent from "@/components/Roadmap/RoadmapImageContent"
11
11
12
12
import { ContentLayout } from "../ContentLayout"
13
13
14
+ import RoadmapHubHeroImage from "@/public/images/heroes/roadmap-hub-hero.jpg"
15
+
14
16
const CardGrid = ( props : ChildOnlyProp ) => (
15
17
< SimpleGrid columns = { { base : 1 , md : 2 } } spacing = { 8 } { ...props } />
16
18
)
@@ -98,7 +100,18 @@ export const RoadmapLayout = ({
98
100
tocItems = { tocItems }
99
101
dropdownLinks = { dropdownLinks }
100
102
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
+ }
102
115
>
103
116
{ children }
104
117
</ ContentLayout >
You can’t perform that action at this time.
0 commit comments