mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-01 06:50:26 +02:00
feat: add projects in homepage (#7118)
This commit is contained in:
@@ -14,6 +14,16 @@ 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 questionGroups = await getAllQuestionGroups();
|
||||||
|
const projectGroups = [
|
||||||
|
{
|
||||||
|
title: 'Frontend',
|
||||||
|
id: 'frontend',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Backend',
|
||||||
|
id: 'backend',
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
const guides = await getAllGuides();
|
const guides = await getAllGuides();
|
||||||
const questionGuides = (await getAllQuestionGroups()).filter(
|
const questionGuides = (await getAllQuestionGroups()).filter(
|
||||||
@@ -59,6 +69,15 @@ const videos = await getAllVideos();
|
|||||||
showCreateRoadmap={true}
|
showCreateRoadmap={true}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<FeaturedItems
|
||||||
|
heading='Project Ideas'
|
||||||
|
allowBookmark={false}
|
||||||
|
featuredItems={projectGroups.map((projectGroup) => ({
|
||||||
|
text: projectGroup.title,
|
||||||
|
url: `${projectGroup.id}/projects`,
|
||||||
|
}))}
|
||||||
|
/>
|
||||||
|
|
||||||
<FeaturedItems
|
<FeaturedItems
|
||||||
heading='Best Practices'
|
heading='Best Practices'
|
||||||
featuredItems={bestPractices.map((bestPractice) => ({
|
featuredItems={bestPractices.map((bestPractice) => ({
|
||||||
|
Reference in New Issue
Block a user