diff --git a/src/components/FeaturedItems/FeaturedItem.astro b/src/components/FeaturedItems/FeaturedItem.astro new file mode 100644 index 000000000..e4afd2332 --- /dev/null +++ b/src/components/FeaturedItems/FeaturedItem.astro @@ -0,0 +1,50 @@ +--- +export interface FeaturedItemType { + isUpcoming?: boolean; + isNew?: boolean; + url: string; + text: string; +} + +export interface Props extends FeaturedItemType {} + +const { isUpcoming = false, isNew = false, text, url } = Astro.props; +--- + + + + {text} + + + { + isNew && ( + + + + + + New + + ) + } + + { + isUpcoming && ( + + + + + + Upcoming + + ) + } + diff --git a/src/components/FeaturedItems/FeaturedItems.astro b/src/components/FeaturedItems/FeaturedItems.astro new file mode 100644 index 000000000..867170151 --- /dev/null +++ b/src/components/FeaturedItems/FeaturedItems.astro @@ -0,0 +1,35 @@ +--- +import FeaturedItem, { FeaturedItemType } from './FeaturedItem.astro'; + +export interface Props { + featuredItems: FeaturedItemType[]; + heading: string; +} + +const { featuredItems, 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. + 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. + Community created roadmaps, guides and articles to help developers grow in their career.