computer-scienceangular-roadmapbackend-roadmapblockchain-roadmapdba-roadmapdeveloper-roadmapdevops-roadmapfrontend-roadmapgo-roadmaphactoberfestjava-roadmapjavascript-roadmapnodejs-roadmappython-roadmapqa-roadmapreact-roadmaproadmapstudy-planvue-roadmapweb3-roadmap
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
2.1 KiB
73 lines
2.1 KiB
2 years ago
|
---
|
||
2 years ago
|
import Icon from './Icon.astro';
|
||
2 years ago
|
|
||
|
export interface Props {
|
||
2 years ago
|
roadmapId: string;
|
||
2 years ago
|
}
|
||
|
|
||
2 years ago
|
const { roadmapId } = Astro.props;
|
||
2 years ago
|
|
||
2 years ago
|
const hasTNSBanner = ['frontend', 'backend', 'devops'].includes(roadmapId);
|
||
2 years ago
|
const roadmapTitle = roadmapId === 'devops' ? 'DevOps' : `${roadmapId.charAt(0).toUpperCase()}${roadmapId.slice(1)}`;
|
||
2 years ago
|
---
|
||
|
|
||
2 years ago
|
<div
|
||
|
class:list={[
|
||
2 years ago
|
'mt-4 sm:mt-7 border-0 sm:border rounded-md mb-0',
|
||
2 years ago
|
{
|
||
|
'sm:-mb-[82px]': hasTNSBanner,
|
||
|
'sm:-mb-[65px]': !hasTNSBanner,
|
||
|
},
|
||
|
]}
|
||
|
>
|
||
|
{
|
||
|
hasTNSBanner && (
|
||
|
<div class='px-2 py-1.5 border-b bg-gray-100 hidden sm:block'>
|
||
|
<p class='text-sm'>
|
||
|
Get the latest {roadmapTitle} news from our sister site{' '}
|
||
2 years ago
|
<a
|
||
2 years ago
|
href='https://thenewstack.io?utm_source=roadmap.sh&utm_medium=Referral&utm_campaign=Alert'
|
||
2 years ago
|
target='_blank'
|
||
|
class='font-semibold underline'
|
||
2 years ago
|
ga-category='PartnerClick'
|
||
|
ga-action='TNS Referral'
|
||
|
ga-label='TNS Referral - Roadmap'
|
||
2 years ago
|
>
|
||
2 years ago
|
TheNewStack.io
|
||
|
</a>
|
||
|
</p>
|
||
|
</div>
|
||
|
)
|
||
|
}
|
||
2 years ago
|
|
||
2 years ago
|
<!-- Desktop: Roadmap Resources - Alert -->
|
||
2 years ago
|
<div
|
||
|
class:list={[
|
||
|
'hidden sm:flex justify-between px-2 bg-white items-center',
|
||
|
{
|
||
|
'rounded-bl-md rounded-br-md': hasTNSBanner,
|
||
|
'rounded-md': !hasTNSBanner,
|
||
|
},
|
||
|
]}
|
||
|
>
|
||
|
<p class='text-sm'>
|
||
2 years ago
|
<span class='text-yellow-900 bg-yellow-200 py-0.5 px-1 text-xs rounded-sm font-medium uppercase mr-0.5'>New</span>
|
||
2 years ago
|
Resources are here, try clicking nodes
|
||
|
</p>
|
||
2 years ago
|
|
||
2 years ago
|
<a
|
||
2 years ago
|
href={`/${roadmapId}/topics`}
|
||
2 years ago
|
class='inline-flex items-center justify-center py-1.5 text-sm font-medium rounded-md hover:text-black text-gray-500 px-1'
|
||
2 years ago
|
>
|
||
2 years ago
|
<Icon icon='search' />
|
||
|
<span class='ml-2'>Search Topics</span>
|
||
2 years ago
|
</a>
|
||
|
</div>
|
||
2 years ago
|
|
||
2 years ago
|
<!-- Mobile - Roadmap resources alert -->
|
||
2 years ago
|
<p class='block sm:hidden text-sm border border-yellow-500 text-yellow-700 rounded-md py-1.5 px-2 bg-white relative'>
|
||
2 years ago
|
Click roadmap items for resources or visit{' '}
|
||
2 years ago
|
<a href={`/${roadmapId}/topics`} class='text-blue-700 underline'> resources list</a>.
|
||
2 years ago
|
</p>
|
||
2 years ago
|
</div>
|