parent
32761b5587
commit
b176d2c23e
5 changed files with 94 additions and 17 deletions
@ -0,0 +1,26 @@ |
||||
--- |
||||
import YouTubeAlert from './YouTubeAlert.astro'; |
||||
|
||||
export interface Props { |
||||
title: string; |
||||
description: string; |
||||
showYouTubeAlert?: boolean; |
||||
} |
||||
|
||||
const { title, description, showYouTubeAlert = false } = Astro.props; |
||||
--- |
||||
|
||||
<div class="bg-white border-b pt-6 pb-5 sm:pt-12 sm:pb-10"> |
||||
<div class="container"> |
||||
{ |
||||
showYouTubeAlert && ( |
||||
<div class="mb-4 hidden sm:block"> |
||||
<YouTubeAlert /> |
||||
</div> |
||||
) |
||||
} |
||||
|
||||
<h1 class="text-3xl sm:text-5xl mb-1 sm:mb-2 font-bold">{title}</h1> |
||||
<p class="text-gray-500 text-sm sm:text-lg">{description}</p> |
||||
</div> |
||||
</div> |
@ -0,0 +1,11 @@ |
||||
export interface MarkdownFileType<T = Record<string, string>> { |
||||
frontmatter: T; |
||||
file: string; |
||||
url: string; |
||||
Content: any; |
||||
getHeadings: () => { |
||||
depth: number; |
||||
slug: string; |
||||
text: string; |
||||
}[]; |
||||
} |
@ -0,0 +1,25 @@ |
||||
--- |
||||
import SimplePageHeader from '../components/SimplePageHeader.astro'; |
||||
import BaseLayout from '../layouts/BaseLayout.astro'; |
||||
import { getRoadmapsByTag } from '../lib/roadmap'; |
||||
|
||||
const roleRoadmaps = await getRoadmapsByTag('role-roadmap'); |
||||
const skillRoadmaps = await getRoadmapsByTag('skill-roadmap'); |
||||
--- |
||||
|
||||
<BaseLayout title="Roadmap"> |
||||
<SimplePageHeader |
||||
title="Developer Roadmaps" |
||||
description="Step by step guides and paths to learn different tools or technologies" |
||||
showYouTubeAlert={true} |
||||
/> |
||||
|
||||
<div class="bg-gray-100 pt-4 pb-14 sm:pt-8 sm:pb-16"> |
||||
<div class="container"> |
||||
<div class="grid grid-cols-1 sm:grid-cols-2 gap-0.5 sm:gap-3"> |
||||
<h1>{ roleRoadmaps.length }</h1> |
||||
<h1>{ skillRoadmaps.length }</h1> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
</BaseLayout> |
Loading…
Reference in new issue