|
|
@ -1,8 +1,8 @@ |
|
|
|
--- |
|
|
|
--- |
|
|
|
import Icon from "./Icon.astro"; |
|
|
|
import Icon from './Icon.astro'; |
|
|
|
import ResourcesAlert from "./ResourcesAlert.astro"; |
|
|
|
import ResourcesAlert from './ResourcesAlert.astro'; |
|
|
|
import TopicSearch from "./TopicSearch/TopicSearch.astro"; |
|
|
|
import TopicSearch from './TopicSearch/TopicSearch.astro'; |
|
|
|
import YouTubeAlert from "./YouTubeAlert.astro"; |
|
|
|
import YouTubeAlert from './YouTubeAlert.astro'; |
|
|
|
|
|
|
|
|
|
|
|
export interface Props { |
|
|
|
export interface Props { |
|
|
|
title: string; |
|
|
|
title: string; |
|
|
@ -22,50 +22,57 @@ const { |
|
|
|
hasTopics = false, |
|
|
|
hasTopics = false, |
|
|
|
} = Astro.props; |
|
|
|
} = Astro.props; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const isRoadmapReady = !isUpcoming; |
|
|
|
const isRoadmapReady = !isUpcoming; |
|
|
|
--- |
|
|
|
--- |
|
|
|
|
|
|
|
|
|
|
|
<div class="border-b"> |
|
|
|
<div class='border-b'> |
|
|
|
<div class="py-5 sm:py-12 container relative"> |
|
|
|
<div class='py-5 sm:py-12 container relative'> |
|
|
|
<YouTubeAlert /> |
|
|
|
<YouTubeAlert /> |
|
|
|
|
|
|
|
|
|
|
|
<div class="mt-0 mb-3 sm:mb-6 sm:mt-4"> |
|
|
|
<div class='mt-0 mb-3 sm:mb-6 sm:mt-4'> |
|
|
|
<h1 class="text-2xl sm:text-4xl mb-0.5 sm:mb-2 font-bold"> |
|
|
|
<h1 class='text-2xl sm:text-4xl mb-0.5 sm:mb-2 font-bold'> |
|
|
|
{title} |
|
|
|
{title} |
|
|
|
</h1> |
|
|
|
</h1> |
|
|
|
<p class="text-gray-500 text-sm sm:text-lg">{description}</p> |
|
|
|
<p class='text-gray-500 text-sm sm:text-lg'>{description}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="flex justify-between"> |
|
|
|
<div class='flex justify-between'> |
|
|
|
<div class="flex gap-1 sm:gap-2"> |
|
|
|
<div class='flex gap-1 sm:gap-2'> |
|
|
|
{ |
|
|
|
{ |
|
|
|
!hasSearch && ( |
|
|
|
!hasSearch && ( |
|
|
|
<> |
|
|
|
<> |
|
|
|
<a href='/roadmaps/' class='bg-gray-500 py-1.5 px-3 rounded-md text-white text-xs sm:text-sm font-medium hover:bg-gray-600' aria-label="Back to All Roadmaps"> |
|
|
|
<a |
|
|
|
|
|
|
|
href='/roadmaps/' |
|
|
|
|
|
|
|
class='bg-gray-500 py-1.5 px-3 rounded-md text-white text-xs sm:text-sm font-medium hover:bg-gray-600' |
|
|
|
|
|
|
|
aria-label='Back to All Roadmaps' |
|
|
|
|
|
|
|
> |
|
|
|
←<span class='hidden sm:inline'> All Roadmaps</span> |
|
|
|
←<span class='hidden sm:inline'> All Roadmaps</span> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
|
|
|
|
|
|
|
|
{isRoadmapReady && ( |
|
|
|
{isRoadmapReady && ( |
|
|
|
<button |
|
|
|
<button |
|
|
|
data-popup="download-popup" |
|
|
|
data-popup='download-popup' |
|
|
|
class="inline-flex items-center justify-center bg-yellow-400 py-1.5 px-3 text-xs sm:text-sm font-medium rounded-md hover:bg-yellow-500" |
|
|
|
class='inline-flex items-center justify-center bg-yellow-400 py-1.5 px-3 text-xs sm:text-sm font-medium rounded-md hover:bg-yellow-500' |
|
|
|
aria-label="Download Roadmap" |
|
|
|
aria-label='Download Roadmap' |
|
|
|
onclick="window.fireEvent({ category: 'Subscription', action: 'Clicked Popup Opener', label: 'Download Roadmap Popup' })" |
|
|
|
ga-category='Subscription' |
|
|
|
|
|
|
|
ga-action='Clicked Popup Opener' |
|
|
|
|
|
|
|
ga-label='Download Roadmap Popup' |
|
|
|
> |
|
|
|
> |
|
|
|
<Icon icon="download" /> |
|
|
|
<Icon icon='download' /> |
|
|
|
<span class="hidden sm:inline ml-2">Download</span> |
|
|
|
<span class='hidden sm:inline ml-2'>Download</span> |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
)} |
|
|
|
)} |
|
|
|
|
|
|
|
|
|
|
|
<button |
|
|
|
<button |
|
|
|
data-popup="subscribe-popup" |
|
|
|
data-popup='subscribe-popup' |
|
|
|
class="inline-flex items-center justify-center bg-yellow-400 py-1.5 px-3 text-xs sm:text-sm font-medium rounded-md hover:bg-yellow-500" |
|
|
|
class='inline-flex items-center justify-center bg-yellow-400 py-1.5 px-3 text-xs sm:text-sm font-medium rounded-md hover:bg-yellow-500' |
|
|
|
aria-label="Subscribe for Updates" |
|
|
|
aria-label='Subscribe for Updates' |
|
|
|
onclick="window.fireEvent({ category: 'Subscription', action: 'Clicked Popup Opener', label: 'Subscribe Roadmap Popup' })" |
|
|
|
ga-category='Subscription' |
|
|
|
|
|
|
|
ga-action='Clicked Popup Opener' |
|
|
|
|
|
|
|
ga-label='Subscribe Roadmap Popup' |
|
|
|
> |
|
|
|
> |
|
|
|
<Icon icon="email" /> |
|
|
|
<Icon icon='email' /> |
|
|
|
<span class="ml-2">Subscribe</span> |
|
|
|
<span class='ml-2'>Subscribe</span> |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
</> |
|
|
|
</> |
|
|
|
) |
|
|
|
) |
|
|
@ -75,11 +82,11 @@ const isRoadmapReady = !isUpcoming; |
|
|
|
hasSearch && ( |
|
|
|
hasSearch && ( |
|
|
|
<a |
|
|
|
<a |
|
|
|
href={`/${roadmapId}/`} |
|
|
|
href={`/${roadmapId}/`} |
|
|
|
class="bg-gray-500 py-1.5 px-3 rounded-md text-white text-xs sm:text-sm font-medium hover:bg-gray-600" |
|
|
|
class='bg-gray-500 py-1.5 px-3 rounded-md text-white text-xs sm:text-sm font-medium hover:bg-gray-600' |
|
|
|
aria-label="Back to Visual Roadmap" |
|
|
|
aria-label='Back to Visual Roadmap' |
|
|
|
> |
|
|
|
> |
|
|
|
← |
|
|
|
← |
|
|
|
<span class="inline"> Visual Roadmap</span> |
|
|
|
<span class='inline'> Visual Roadmap</span> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
@ -89,13 +96,13 @@ const isRoadmapReady = !isUpcoming; |
|
|
|
isRoadmapReady && ( |
|
|
|
isRoadmapReady && ( |
|
|
|
<a |
|
|
|
<a |
|
|
|
href={`https://github.com/kamranahmedse/developer-roadmap/issues/new?title=[Suggestion] ${title}`} |
|
|
|
href={`https://github.com/kamranahmedse/developer-roadmap/issues/new?title=[Suggestion] ${title}`} |
|
|
|
target="_blank" |
|
|
|
target='_blank' |
|
|
|
class="inline-flex items-center justify-center bg-gray-500 text-white py-1.5 px-3 text-xs sm:text-sm font-medium rounded-md hover:bg-gray-600" |
|
|
|
class='inline-flex items-center justify-center bg-gray-500 text-white py-1.5 px-3 text-xs sm:text-sm font-medium rounded-md hover:bg-gray-600' |
|
|
|
aria-label="Suggest Changes" |
|
|
|
aria-label='Suggest Changes' |
|
|
|
> |
|
|
|
> |
|
|
|
<Icon icon="comment" class="h-3 w-3" /> |
|
|
|
<Icon icon='comment' class='h-3 w-3' /> |
|
|
|
<span class="ml-2 hidden sm:inline">Suggest Changes</span> |
|
|
|
<span class='ml-2 hidden sm:inline'>Suggest Changes</span> |
|
|
|
<span class="ml-2 inline sm:hidden">Suggest</span> |
|
|
|
<span class='ml-2 inline sm:hidden'>Suggest</span> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|