|
|
@ -8,10 +8,12 @@ import { getAllBestPractices } from '../lib/best-pratice'; |
|
|
|
import { getAllGuides } from '../lib/guide'; |
|
|
|
import { getAllGuides } from '../lib/guide'; |
|
|
|
import { getRoadmapsByTag } from '../lib/roadmap'; |
|
|
|
import { getRoadmapsByTag } from '../lib/roadmap'; |
|
|
|
import { getAllVideos } from '../lib/video'; |
|
|
|
import { getAllVideos } from '../lib/video'; |
|
|
|
|
|
|
|
import { getAllQuestionGroups } from '../lib/question-group'; |
|
|
|
|
|
|
|
|
|
|
|
const roleRoadmaps = await getRoadmapsByTag('role-roadmap'); |
|
|
|
const roleRoadmaps = await getRoadmapsByTag('role-roadmap'); |
|
|
|
const skillRoadmaps = await getRoadmapsByTag('skill-roadmap'); |
|
|
|
const skillRoadmaps = await getRoadmapsByTag('skill-roadmap'); |
|
|
|
const bestPractices = await getAllBestPractices(); |
|
|
|
const bestPractices = await getAllBestPractices(); |
|
|
|
|
|
|
|
const questionGroups = await getAllQuestionGroups(); |
|
|
|
|
|
|
|
|
|
|
|
const guides = await getAllGuides(); |
|
|
|
const guides = await getAllGuides(); |
|
|
|
const videos = await getAllVideos(); |
|
|
|
const videos = await getAllVideos(); |
|
|
@ -58,6 +60,16 @@ const videos = await getAllVideos(); |
|
|
|
}))} |
|
|
|
}))} |
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--<FeaturedItems--> |
|
|
|
|
|
|
|
<!-- heading='Questions'--> |
|
|
|
|
|
|
|
<!-- allowBookmark={false}--> |
|
|
|
|
|
|
|
<!-- featuredItems={questionGroups.map((questionGroup) => ({--> |
|
|
|
|
|
|
|
<!-- text: questionGroup.frontmatter.briefTitle,--> |
|
|
|
|
|
|
|
<!-- url: `/questions/${questionGroup.id}`,--> |
|
|
|
|
|
|
|
<!-- isNew: questionGroup.frontmatter.isNew,--> |
|
|
|
|
|
|
|
<!-- }))}--> |
|
|
|
|
|
|
|
<!--/>--> |
|
|
|
|
|
|
|
|
|
|
|
<div class='grid grid-cols-1 gap-7 bg-gray-50 py-7 sm:gap-16 sm:py-16'> |
|
|
|
<div class='grid grid-cols-1 gap-7 bg-gray-50 py-7 sm:gap-16 sm:py-16'> |
|
|
|
<FeaturedGuides heading='Guides' guides={guides.slice(0, 7)} /> |
|
|
|
<FeaturedGuides heading='Guides' guides={guides.slice(0, 7)} /> |
|
|
|
<FeaturedVideos heading='Videos' videos={videos.slice(0, 7)} /> |
|
|
|
<FeaturedVideos heading='Videos' videos={videos.slice(0, 7)} /> |
|
|
|