diff --git a/components/row-block/style.js b/components/row-block/style.js index fb48199e7..3626a3bee 100644 --- a/components/row-block/style.js +++ b/components/row-block/style.js @@ -41,7 +41,7 @@ export const ItemTitle = styled.h3` export const Badge = styled.span` font-size: 10px; font-weight: 600; - background: #696969; + background: #8a8a8a; color: white; padding: 0 8px; border-radius: 4px; diff --git a/content/roadmaps.json b/content/roadmaps.json index e97a9dba3..82f95b6d5 100644 --- a/content/roadmaps.json +++ b/content/roadmaps.json @@ -155,6 +155,7 @@ "description": "Step by step guide to becoming an Android developer", "featuredDescription": "Step by step guide to becoming a modern Android Developer in 2020", "isTextHeavy": true, + "communityResource": true, "featured": true, "path": "/roadmaps/4-android/landscape.md", "resources": "/roadmaps/4-android/resources.md", @@ -167,7 +168,7 @@ "name": "Kamran Ahmed", "url": "https://twitter.com/kamranahmedse" }, - "contributorsCount": 0, + "contributorsCount": 1, "contributorsUrl": "/android/contributors", "url": "/android", "sidebar": {} @@ -210,7 +211,7 @@ "name": "Kamran Ahmed", "url": "https://twitter.com/kamranahmedse" }, - "contributorsCount": 0, + "contributorsCount": 1, "contributorsUrl": "/fullstack/contributors", "url": "/fullstack", "sidebar": {} @@ -244,7 +245,7 @@ "name": "Anas Fitiani", "url": "https://github.com/anas-qa" }, - "contributorsCount": 0, + "contributorsCount": 1, "contributorsUrl": "/qa/contributors", "url": "/qa", "sidebar": {} diff --git a/content/roadmaps/4-android/meta.json b/content/roadmaps/4-android/meta.json index ca0508023..9e68c23fd 100644 --- a/content/roadmaps/4-android/meta.json +++ b/content/roadmaps/4-android/meta.json @@ -20,6 +20,7 @@ "description": "Step by step guide to becoming an Android developer", "featuredDescription": "Step by step guide to becoming a modern Android Developer in 2020", "isTextHeavy": true, + "communityResource": true, "featured": true, "path": "./landscape.md", "resources": "./resources.md", diff --git a/pages/roadmaps.js b/pages/roadmaps.js index 4882b80e7..e12a2fd02 100644 --- a/pages/roadmaps.js +++ b/pages/roadmaps.js @@ -15,6 +15,18 @@ import Helmet from 'components/helmet'; const PageTitle = "Developer Roadmaps"; const PageDescription = "Step by step guides and paths to learn different tools or technologies"; +function getBadgeText(roadmap) { + if (roadmap.upcoming) { + return 'Upcoming'; + } + + if (roadmap.communityResource) { + return 'Community'; + } + + return ''; +} + const RoadmapsList = () => ( @@ -49,7 +61,7 @@ const RoadmapsList = () => ( subtitle={ roadmap.featuredDescription || roadmap.description } url={ roadmap.url } disabled={ roadmap.upcoming } - badge={ roadmap.upcoming ? 'upcoming' : '' } + badge={ getBadgeText(roadmap) } /> )) } diff --git a/public/sitemap.xml b/public/sitemap.xml index b6b5b354e..7368210e3 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -3,7 +3,7 @@ https://roadmap.sh/frontend monthly - 2020-05-01T11:22:37.592Z + 2020-05-26T18:13:35.798Z 1.0 @@ -21,7 +21,7 @@ https://roadmap.sh/android monthly - 2020-05-26T00:11:12.565Z + 2020-05-26T10:23:03.622Z 1.0 @@ -171,7 +171,7 @@ https://roadmap.sh/roadmaps monthly - 2020-05-25T19:25:25.060Z + 2020-05-26T18:35:55.812Z 1.0