|
|
@ -18,7 +18,11 @@ export interface Props { |
|
|
|
title: string; |
|
|
|
title: string; |
|
|
|
description: string; |
|
|
|
description: string; |
|
|
|
note?: string; |
|
|
|
note?: string; |
|
|
|
tnsBannerLink?: string; |
|
|
|
partner?: { |
|
|
|
|
|
|
|
description: string; |
|
|
|
|
|
|
|
link: string; |
|
|
|
|
|
|
|
linkText: string; |
|
|
|
|
|
|
|
}; |
|
|
|
roadmapId: string; |
|
|
|
roadmapId: string; |
|
|
|
isUpcoming?: boolean; |
|
|
|
isUpcoming?: boolean; |
|
|
|
hasSearch?: boolean; |
|
|
|
hasSearch?: boolean; |
|
|
@ -26,14 +30,14 @@ export interface Props { |
|
|
|
question?: RoadmapFrontmatter['question']; |
|
|
|
question?: RoadmapFrontmatter['question']; |
|
|
|
hasTopics?: boolean; |
|
|
|
hasTopics?: boolean; |
|
|
|
isForkable?: boolean; |
|
|
|
isForkable?: boolean; |
|
|
|
activeTab?: 'roadmap' | 'projects'; |
|
|
|
activeTab?: 'roadmap' | 'projects' | 'courses'; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const { |
|
|
|
const { |
|
|
|
title, |
|
|
|
title, |
|
|
|
description, |
|
|
|
description, |
|
|
|
roadmapId, |
|
|
|
roadmapId, |
|
|
|
tnsBannerLink, |
|
|
|
partner, |
|
|
|
isUpcoming = false, |
|
|
|
isUpcoming = false, |
|
|
|
note, |
|
|
|
note, |
|
|
|
hasTopics = false, |
|
|
|
hasTopics = false, |
|
|
@ -53,13 +57,13 @@ const roadmapTitle = |
|
|
|
|
|
|
|
|
|
|
|
<div class='container mt-0 flex flex-col gap-2.5 px-0 sm:mt-3 sm:px-4'> |
|
|
|
<div class='container mt-0 flex flex-col gap-2.5 px-0 sm:mt-3 sm:px-4'> |
|
|
|
{ |
|
|
|
{ |
|
|
|
tnsBannerLink && ( |
|
|
|
partner && ( |
|
|
|
<div class='hidden rounded-md border bg-white px-2 py-1.5 sm:block'> |
|
|
|
<div class='hidden rounded-md border bg-white px-2 py-1.5 sm:block'> |
|
|
|
<p class='py-0.5 text-left text-sm'> |
|
|
|
<p class='py-0.5 text-left text-sm'> |
|
|
|
<span class='badge mr-1'>Partner</span> |
|
|
|
<span class='badge mr-1'>Partner</span> |
|
|
|
Get the latest {roadmapTitle} news from our sister site{' '} |
|
|
|
{partner.description} |
|
|
|
<a href={tnsBannerLink} target='_blank' class='font-medium underline'> |
|
|
|
<a href={partner.link} target='_blank' class='font-medium underline'> |
|
|
|
TheNewStack.io |
|
|
|
{partner.linkText} |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</p> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|