From 3ef4769676a9ca91cc05fd6861fc5a084ba7420f Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Sat, 4 Jan 2020 17:57:50 +0400 Subject: [PATCH] Update links --- components/featured-content/guides.js | 2 +- components/featured-content/roadmaps.js | 5 +--- components/featured-guide/index.js | 31 +++++++++++-------------- components/featured-roadmap/index.js | 13 ++++------- components/page-footer/index.js | 2 +- components/roadmap-summary/style.js | 1 + components/site-nav/index.js | 19 +++++++-------- 7 files changed, 32 insertions(+), 41 deletions(-) diff --git a/components/featured-content/guides.js b/components/featured-content/guides.js index 60d0bb236..03b0a9ece 100644 --- a/components/featured-content/guides.js +++ b/components/featured-content/guides.js @@ -9,7 +9,7 @@ const FeaturedGuides = () => (

Guides mostly visited by the community  - View all Guides → + View all Guides →

diff --git a/components/featured-content/roadmaps.js b/components/featured-content/roadmaps.js index e77520e7c..620cd5de9 100644 --- a/components/featured-content/roadmaps.js +++ b/components/featured-content/roadmaps.js @@ -1,4 +1,3 @@ -import Link from 'next/link'; import { FeaturedContentWrap } from './style'; import roadmaps from 'storage/roadmaps'; import FeaturedRoadmap from 'components/featured-roadmap'; @@ -10,9 +9,7 @@ const FeaturedRoadmaps = () => (

Roadmaps mostly visited by the community  - - View all Roadmaps → - + View all Roadmaps →

diff --git a/components/featured-guide/index.js b/components/featured-guide/index.js index d8cebe4d4..325ed70a9 100644 --- a/components/featured-guide/index.js +++ b/components/featured-guide/index.js @@ -1,5 +1,4 @@ -import Link from 'next/link'; -import formatDate from 'date-fns/format' +import formatDate from 'date-fns/format'; import { Author, AuthorImage, AuthorName, BlockLink, BlockMeta, BlockSubtitle, BlockTitle, PublishDate } from './style'; import { findByUsername } from 'lib/author'; @@ -7,22 +6,20 @@ import { findByUsername } from 'lib/author'; const FeaturedGuide = ({ guide }) => { const author = findByUsername(guide.author) || {}; return ( -
- - - { guide.title } - { guide.featuredDescription || guide.description } - - - - { author.name } - - { formatDate(new Date(guide.createdAt), 'MMMM d, yyyy') } - - - +
+ + {guide.title} + {guide.featuredDescription || guide.description} + + + + {author.name} + + {formatDate(new Date(guide.createdAt), 'MMMM d, yyyy')} + +
- ) + ); }; export default FeaturedGuide; diff --git a/components/featured-roadmap/index.js b/components/featured-roadmap/index.js index 94aa574a8..f9b0b46a6 100644 --- a/components/featured-roadmap/index.js +++ b/components/featured-roadmap/index.js @@ -1,14 +1,11 @@ -import Link from 'next/link'; import { BlockLink, BlockSubtitle, BlockTitle } from './style'; const FeaturedRoadmap = ({ roadmap }) => ( -
- - - { roadmap.title } - { roadmap.featuredDescription || roadmap.description } - - +
+ + {roadmap.title} + {roadmap.featuredDescription || roadmap.description} +
); diff --git a/components/page-footer/index.js b/components/page-footer/index.js index 5efc307f4..51db191dc 100644 --- a/components/page-footer/index.js +++ b/components/page-footer/index.js @@ -9,7 +9,7 @@ const PageFooter = () => (
diff --git a/components/roadmap-summary/style.js b/components/roadmap-summary/style.js index ed43863fb..30cf3e766 100644 --- a/components/roadmap-summary/style.js +++ b/components/roadmap-summary/style.js @@ -14,6 +14,7 @@ export const UpcomingContainer = styled.div` export const Summary = styled.div` margin-top: 35px; min-height: 400px; + max-width: 1000px; display: block; position: relative; text-align: left; diff --git a/components/site-nav/index.js b/components/site-nav/index.js index f1470296b..18da31681 100644 --- a/components/site-nav/index.js +++ b/components/site-nav/index.js @@ -1,19 +1,18 @@ -import Link from 'next/link'; import { HeaderWrap } from './style'; const SiteNav = () => ( -