From b32e8a721db9b8aa3a35d41316acf66c25a17d9a Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Sat, 9 Nov 2019 19:44:43 +0400 Subject: [PATCH] Add badges to roadmap listing --- components/badges/index.js | 7 ++++-- components/roadmap-summary/index.js | 14 ++++++++--- pages/[roadmap]/index.js | 36 ----------------------------- pages/roadmaps.js | 21 +++++++++++++++-- 4 files changed, 35 insertions(+), 43 deletions(-) diff --git a/components/badges/index.js b/components/badges/index.js index c9faea84b..3af88a87d 100644 --- a/components/badges/index.js +++ b/components/badges/index.js @@ -21,9 +21,12 @@ export const PrimaryBadge = styled.span` margin-left: 10px; svg { - height: 11px; - width: 11px; + height: 11px !important; margin-right: 5px; + + &.fa-clock { + height: 10px !important; + } } `; diff --git a/components/roadmap-summary/index.js b/components/roadmap-summary/index.js index 5ce414269..bdfdf0510 100644 --- a/components/roadmap-summary/index.js +++ b/components/roadmap-summary/index.js @@ -13,7 +13,7 @@ import { import SharePage from 'components/share-page'; import { BadgeLink, BadgesList, PrimaryBadge, SecondaryBadge } from 'components/badges'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; -import { faEnvelope } from '@fortawesome/free-solid-svg-icons'; +import { faEnvelope, faClock, faHandshake } from '@fortawesome/free-solid-svg-icons'; import GuideBody from 'components/guide-body'; import siteConfig from "data/site"; @@ -31,10 +31,18 @@ const RoadmapSummary = ({ roadmap }) => ( { roadmap.description } - { roadmap.upcoming && Upcoming Roadmap } + { roadmap.upcoming && ( + + + Upcoming Roadmap + + ) } { !roadmap.upcoming && ( - Suggest Improvements + + + Suggest Improvements + ) } diff --git a/pages/[roadmap]/index.js b/pages/[roadmap]/index.js index 0a540e362..b5f9b1430 100644 --- a/pages/[roadmap]/index.js +++ b/pages/[roadmap]/index.js @@ -6,48 +6,12 @@ import RoadmapSummary from 'components/roadmap-summary'; import { serverOnlyProps } from 'lib/server'; import { getRequestedRoadmap } from 'lib/roadmap'; import Helmet from 'components/helmet'; -import PageHeader from 'components/page-header'; -import GuideBody from 'components/guide-body'; - -import { BadgesList, PrimaryBadge, SecondaryBadge } from 'components/badges'; -import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; -import { faEnvelope } from '@fortawesome/free-solid-svg-icons'; const Roadmap = ({ roadmap }) => { if (!roadmap) { return } - if (false && roadmap.upcoming) { - const GuideContent = require(`../../data/roadmaps/upcoming.md`).default; - - return ( - - - - - - Upcoming Roadmap - - - - Notify Me - - - - -
- - - -
- -
- ); - } - return ( diff --git a/pages/roadmaps.js b/pages/roadmaps.js index 667599e48..b266c6174 100644 --- a/pages/roadmaps.js +++ b/pages/roadmaps.js @@ -8,6 +8,9 @@ import roadmaps from "data/roadmaps"; import RowBlock from 'components/row-block'; import IconRowBlock from 'components/icon-row-block'; import siteConfig from "data/site"; +import { BadgeLink, BadgesList, PrimaryBadge, SecondaryBadge } from '../components/badges'; +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; +import { faEnvelope, faCodeBranch } from '@fortawesome/free-solid-svg-icons'; const RoadmapsList = () => ( @@ -15,8 +18,22 @@ const RoadmapsList = () => (
+ subtitle="Step by step guides and paths to learn different tools or technologies"> + + + + + Request a Roadmap + + + + + + Send me Updates + + + +