Add community badge
This commit is contained in:
@ -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;
|
||||
|
@ -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": {}
|
||||
|
@ -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",
|
||||
|
@ -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 = () => (
|
||||
<DefaultLayout>
|
||||
<Helmet title={PageTitle} desciption={PageDescription} />
|
||||
@ -49,7 +61,7 @@ const RoadmapsList = () => (
|
||||
subtitle={ roadmap.featuredDescription || roadmap.description }
|
||||
url={ roadmap.url }
|
||||
disabled={ roadmap.upcoming }
|
||||
badge={ roadmap.upcoming ? 'upcoming' : '' }
|
||||
badge={ getBadgeText(roadmap) }
|
||||
/>
|
||||
)) }
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
<url>
|
||||
<loc>https://roadmap.sh/frontend</loc>
|
||||
<changefreq>monthly</changefreq>
|
||||
<lastmod>2020-05-01T11:22:37.592Z</lastmod>
|
||||
<lastmod>2020-05-26T18:13:35.798Z</lastmod>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
<url>
|
||||
@ -21,7 +21,7 @@
|
||||
<url>
|
||||
<loc>https://roadmap.sh/android</loc>
|
||||
<changefreq>monthly</changefreq>
|
||||
<lastmod>2020-05-26T00:11:12.565Z</lastmod>
|
||||
<lastmod>2020-05-26T10:23:03.622Z</lastmod>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
<url>
|
||||
@ -171,7 +171,7 @@
|
||||
<url>
|
||||
<loc>https://roadmap.sh/roadmaps</loc>
|
||||
<changefreq>monthly</changefreq>
|
||||
<lastmod>2020-05-25T19:25:25.060Z</lastmod>
|
||||
<lastmod>2020-05-26T18:35:55.812Z</lastmod>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
<url>
|
||||
|
Reference in New Issue
Block a user