diff --git a/src/components/FeaturedGuides.astro b/src/components/FeaturedGuides.astro new file mode 100644 index 000000000..8e707a202 --- /dev/null +++ b/src/components/FeaturedGuides.astro @@ -0,0 +1,33 @@ +--- +import type { GuideFileType } from '../lib/guide'; +import GuideListItem from './GuideListItem.astro'; + +export interface Props { + heading: string; + guides: GuideFileType[]; +} + +const { heading, guides } = Astro.props; +--- + +

{heading}

+ +
+ {guides.map((guide) => )} +
+ + + +
+ + View All Guides  → + +
diff --git a/src/pages/index.astro b/src/pages/index.astro index 04786d386..21d3bff89 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,38 +1,47 @@ --- +import FeaturedGuides from '../components/FeaturedGuides.astro'; import FeaturedRoadmaps from '../components/FeaturedRoadmaps/FeaturedRoadmaps.astro'; import BaseLayout from '../layouts/BaseLayout.astro'; +import { getAllGuides } from '../lib/guide'; import { getRoadmapsByTag } from '../lib/roadmap'; const roleRoadmaps = await getRoadmapsByTag('role-roadmap'); const skillRoadmaps = await getRoadmapsByTag('skill-roadmap'); +const guides = await getAllGuides(); --- - -
-
+ +
+

Developer Roadmaps

- -

+

Community created roadmaps, guides and articles to help developers grow in their career.

- - + + + +
+
+ +
+