diff --git a/src/components/FeaturedRoadmaps/FeaturedRoadmapItem.astro b/src/components/FeaturedRoadmaps/FeaturedRoadmapItem.astro new file mode 100644 index 000000000..5f8519107 --- /dev/null +++ b/src/components/FeaturedRoadmaps/FeaturedRoadmapItem.astro @@ -0,0 +1,56 @@ +--- +import type { RoadmapFileType } from '../../lib/roadmap'; + +export interface Props { + roadmap: RoadmapFileType; +} + +const { roadmap } = Astro.props; +const frontmatter = roadmap.frontmatter; + +let roadmapTitle = frontmatter.featuredTitle; + +// Lighthouse considers "Go" as a non-descriptive text such as "Submit" etc. +// Adding "Roadmap" as a postfix to make it not complain ¯\_(ツ)_/¯ +if (roadmapTitle === 'Go') { + roadmapTitle = 'Go Roadmap'; +} +--- + + + + {roadmapTitle} + + + { + frontmatter.isNew && ( + + + + + + New + + ) + } + + { + frontmatter.isUpcoming && ( + + + + + + Upcoming + + ) + } + diff --git a/src/components/FeaturedRoadmaps/FeaturedRoadmaps.astro b/src/components/FeaturedRoadmaps/FeaturedRoadmaps.astro new file mode 100644 index 000000000..39317ec20 --- /dev/null +++ b/src/components/FeaturedRoadmaps/FeaturedRoadmaps.astro @@ -0,0 +1,31 @@ +--- +import type { RoadmapFileType } from '../../lib/roadmap'; +import FeaturedRoadmapItem from './FeaturedRoadmapItem.astro'; + +export interface Props { + roadmaps: RoadmapFileType[]; + heading: string; +} + +const { roadmaps, heading } = Astro.props; +--- + +
- roadmap.sh is a community effort to create roadmaps, guides and other educational content to help guide the developers in picking up the path and guide their learnings. -
- -- Community created roadmaps, guides and articles to help developers grow in their career. -
-+ roadmap.sh is a community + effort to create roadmaps, guides and other educational content to help + guide the developers in picking up the path and guide their learnings. +
+ ++ Community created roadmaps, guides and articles to help developers + grow in their career. +