Add community badge
This commit is contained in:
@ -41,7 +41,7 @@ export const ItemTitle = styled.h3`
|
|||||||
export const Badge = styled.span`
|
export const Badge = styled.span`
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
background: #696969;
|
background: #8a8a8a;
|
||||||
color: white;
|
color: white;
|
||||||
padding: 0 8px;
|
padding: 0 8px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
@ -155,6 +155,7 @@
|
|||||||
"description": "Step by step guide to becoming an Android developer",
|
"description": "Step by step guide to becoming an Android developer",
|
||||||
"featuredDescription": "Step by step guide to becoming a modern Android Developer in 2020",
|
"featuredDescription": "Step by step guide to becoming a modern Android Developer in 2020",
|
||||||
"isTextHeavy": true,
|
"isTextHeavy": true,
|
||||||
|
"communityResource": true,
|
||||||
"featured": true,
|
"featured": true,
|
||||||
"path": "/roadmaps/4-android/landscape.md",
|
"path": "/roadmaps/4-android/landscape.md",
|
||||||
"resources": "/roadmaps/4-android/resources.md",
|
"resources": "/roadmaps/4-android/resources.md",
|
||||||
@ -167,7 +168,7 @@
|
|||||||
"name": "Kamran Ahmed",
|
"name": "Kamran Ahmed",
|
||||||
"url": "https://twitter.com/kamranahmedse"
|
"url": "https://twitter.com/kamranahmedse"
|
||||||
},
|
},
|
||||||
"contributorsCount": 0,
|
"contributorsCount": 1,
|
||||||
"contributorsUrl": "/android/contributors",
|
"contributorsUrl": "/android/contributors",
|
||||||
"url": "/android",
|
"url": "/android",
|
||||||
"sidebar": {}
|
"sidebar": {}
|
||||||
@ -210,7 +211,7 @@
|
|||||||
"name": "Kamran Ahmed",
|
"name": "Kamran Ahmed",
|
||||||
"url": "https://twitter.com/kamranahmedse"
|
"url": "https://twitter.com/kamranahmedse"
|
||||||
},
|
},
|
||||||
"contributorsCount": 0,
|
"contributorsCount": 1,
|
||||||
"contributorsUrl": "/fullstack/contributors",
|
"contributorsUrl": "/fullstack/contributors",
|
||||||
"url": "/fullstack",
|
"url": "/fullstack",
|
||||||
"sidebar": {}
|
"sidebar": {}
|
||||||
@ -244,7 +245,7 @@
|
|||||||
"name": "Anas Fitiani",
|
"name": "Anas Fitiani",
|
||||||
"url": "https://github.com/anas-qa"
|
"url": "https://github.com/anas-qa"
|
||||||
},
|
},
|
||||||
"contributorsCount": 0,
|
"contributorsCount": 1,
|
||||||
"contributorsUrl": "/qa/contributors",
|
"contributorsUrl": "/qa/contributors",
|
||||||
"url": "/qa",
|
"url": "/qa",
|
||||||
"sidebar": {}
|
"sidebar": {}
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
"description": "Step by step guide to becoming an Android developer",
|
"description": "Step by step guide to becoming an Android developer",
|
||||||
"featuredDescription": "Step by step guide to becoming a modern Android Developer in 2020",
|
"featuredDescription": "Step by step guide to becoming a modern Android Developer in 2020",
|
||||||
"isTextHeavy": true,
|
"isTextHeavy": true,
|
||||||
|
"communityResource": true,
|
||||||
"featured": true,
|
"featured": true,
|
||||||
"path": "./landscape.md",
|
"path": "./landscape.md",
|
||||||
"resources": "./resources.md",
|
"resources": "./resources.md",
|
||||||
|
@ -15,6 +15,18 @@ import Helmet from 'components/helmet';
|
|||||||
const PageTitle = "Developer Roadmaps";
|
const PageTitle = "Developer Roadmaps";
|
||||||
const PageDescription = "Step by step guides and paths to learn different tools or technologies";
|
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 = () => (
|
const RoadmapsList = () => (
|
||||||
<DefaultLayout>
|
<DefaultLayout>
|
||||||
<Helmet title={PageTitle} desciption={PageDescription} />
|
<Helmet title={PageTitle} desciption={PageDescription} />
|
||||||
@ -49,7 +61,7 @@ const RoadmapsList = () => (
|
|||||||
subtitle={ roadmap.featuredDescription || roadmap.description }
|
subtitle={ roadmap.featuredDescription || roadmap.description }
|
||||||
url={ roadmap.url }
|
url={ roadmap.url }
|
||||||
disabled={ roadmap.upcoming }
|
disabled={ roadmap.upcoming }
|
||||||
badge={ roadmap.upcoming ? 'upcoming' : '' }
|
badge={ getBadgeText(roadmap) }
|
||||||
/>
|
/>
|
||||||
)) }
|
)) }
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<url>
|
<url>
|
||||||
<loc>https://roadmap.sh/frontend</loc>
|
<loc>https://roadmap.sh/frontend</loc>
|
||||||
<changefreq>monthly</changefreq>
|
<changefreq>monthly</changefreq>
|
||||||
<lastmod>2020-05-01T11:22:37.592Z</lastmod>
|
<lastmod>2020-05-26T18:13:35.798Z</lastmod>
|
||||||
<priority>1.0</priority>
|
<priority>1.0</priority>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
@ -21,7 +21,7 @@
|
|||||||
<url>
|
<url>
|
||||||
<loc>https://roadmap.sh/android</loc>
|
<loc>https://roadmap.sh/android</loc>
|
||||||
<changefreq>monthly</changefreq>
|
<changefreq>monthly</changefreq>
|
||||||
<lastmod>2020-05-26T00:11:12.565Z</lastmod>
|
<lastmod>2020-05-26T10:23:03.622Z</lastmod>
|
||||||
<priority>1.0</priority>
|
<priority>1.0</priority>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
@ -171,7 +171,7 @@
|
|||||||
<url>
|
<url>
|
||||||
<loc>https://roadmap.sh/roadmaps</loc>
|
<loc>https://roadmap.sh/roadmaps</loc>
|
||||||
<changefreq>monthly</changefreq>
|
<changefreq>monthly</changefreq>
|
||||||
<lastmod>2020-05-25T19:25:25.060Z</lastmod>
|
<lastmod>2020-05-26T18:35:55.812Z</lastmod>
|
||||||
<priority>1.0</priority>
|
<priority>1.0</priority>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
|
Reference in New Issue
Block a user