feat: add projects in homepage

feat/projects
Arik Chakma 1 month ago
parent 56e7aa5687
commit 6a7fc4ca76
  1. 19
      src/pages/index.astro

@ -14,6 +14,16 @@ const roleRoadmaps = await getRoadmapsByTag('role-roadmap');
const skillRoadmaps = await getRoadmapsByTag('skill-roadmap');
const bestPractices = await getAllBestPractices();
const questionGroups = await getAllQuestionGroups();
const projectGroups = [
{
title: 'Frontend',
id: 'frontend',
},
{
title: 'Backend',
id: 'backend',
},
]
const guides = await getAllGuides();
const questionGuides = (await getAllQuestionGroups()).filter(
@ -59,6 +69,15 @@ const videos = await getAllVideos();
showCreateRoadmap={true}
/>
<FeaturedItems
heading='Project Ideas'
allowBookmark={false}
featuredItems={projectGroups.map((projectGroup) => ({
text: projectGroup.title,
url: `${projectGroup.id}/projects`,
}))}
/>
<FeaturedItems
heading='Best Practices'
featuredItems={bestPractices.map((bestPractice) => ({

Loading…
Cancel
Save