Update roadmap header

pull/6512/head
Kamran Ahmed 3 months ago
parent e0c1b6eb75
commit 219aaa3fb2
  1. 2
      src/components/RoadmapHeader.astro
  2. 10
      src/components/TabLink.tsx
  3. 8
      src/pages/get-started.astro

@ -125,7 +125,7 @@ const hasTnsBanner = !!tnsBannerLink;
icon={FolderKanbanIcon} icon={FolderKanbanIcon}
text='Projects' text='Projects'
isActive={activeTab === 'projects'} isActive={activeTab === 'projects'}
badgeText={projectCount > 0 ? '' : 'soon'} badgeText={projectCount > 0 ? 'new' : 'soon'}
/> />
</div> </div>

@ -37,7 +37,15 @@ export function TabLink(props: TabLinkProps) {
}); });
const badgeNode = badgeText && ( const badgeNode = badgeText && (
<span className="ml-0.5 hidden items-center gap-0.5 rounded-full bg-yellow-200 px-2 py-0.5 text-xs font-medium text-black transition-colors group-hover:bg-yellow-300 sm:flex"> <span
className={cn(
'ml-0.5 hidden items-center gap-0.5 rounded-full bg-yellow-200 px-2 py-0.5 text-xs font-medium text-black transition-colors sm:flex',
{
'bg-gray-200 text-black group-hover:bg-gray-300 ': badgeText?.toLowerCase() == 'soon',
'bg-yellow-200 text-black group-hover:bg-yellow-300 ': badgeText?.toLowerCase() == 'new',
},
)}
>
<span className="relative -top-px">{badgeText}</span> <span className="relative -top-px">{badgeText}</span>
</span> </span>
); );

@ -28,7 +28,7 @@ import {
PenSquare, PenSquare,
Component, Component,
Waypoints, Waypoints,
CheckSquare, Braces, FolderKanban, Coins, Megaphone, CheckSquare, Braces, FolderKanban, Coins, Megaphone, GitBranch,
} from 'lucide-react'; } from 'lucide-react';
import { SectionBadge } from '../components/GetStarted/SectionBadge'; import { SectionBadge } from '../components/GetStarted/SectionBadge';
import { TipItem } from '../components/GetStarted/TipItem'; import { TipItem } from '../components/GetStarted/TipItem';
@ -416,6 +416,12 @@ import { TipItem } from '../components/GetStarted/TipItem';
link='/software-architect' link='/software-architect'
description='Learn all you need to know to become a Software Architect.' description='Learn all you need to know to become a Software Architect.'
/> />
<RoadmapCard
icon={GitBranch}
title='Git and GitHub'
link='/git-github'
description='Learn all you need to know to become a Git and GitHub expert.'
/>
</div> </div>
</RoleRoadmaps> </RoleRoadmaps>

Loading…
Cancel
Save