From 2826a5302f765a78b2e70864c1282f5a8737de52 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Mon, 28 Oct 2019 00:20:59 +0400 Subject: [PATCH] Split featured content into separate components --- components/featured-content/guides.js | 54 ++++++++++ components/featured-content/index.js | 137 ++---------------------- components/featured-content/journeys.js | 54 ++++++++++ components/featured-content/roadmaps.js | 39 +++++++ 4 files changed, 154 insertions(+), 130 deletions(-) create mode 100644 components/featured-content/guides.js create mode 100644 components/featured-content/journeys.js create mode 100644 components/featured-content/roadmaps.js diff --git a/components/featured-content/guides.js b/components/featured-content/guides.js new file mode 100644 index 000000000..13c98d500 --- /dev/null +++ b/components/featured-content/guides.js @@ -0,0 +1,54 @@ +import { FeaturedContentWrap } from './style'; + +const FeaturedGuides = () => ( + +
+

+ + List of most visited guides  + View all Guides → + +

+
+
+ +

Design Patterns for Humans

+

A language agnostic, ultra-simplified explanation to design patterns

+
+
+
+ +

Learn Regex

+

An easy to understand guide on regular expressions with real world examples

+
+
+
+ +

Bash Guide

+

Easy to understand guide for bash with real world usage examples.

+
+
+
+ +

DNS in One Picture

+

Quick illustrative guide on how a website is found on the internet.

+
+
+
+ +

Using React Hooks

+

Start using React hooks in your react applications today with this guide.

+
+
+
+ +

HTTP Caching

+

Everything you need to know about web caching

+
+
+
+
+
+); + +export default FeaturedGuides; \ No newline at end of file diff --git a/components/featured-content/index.js b/components/featured-content/index.js index 52fbd0bc3..e14496cf0 100644 --- a/components/featured-content/index.js +++ b/components/featured-content/index.js @@ -1,136 +1,13 @@ -import { FeaturedContentWrap, FeaturedWrap } from './style'; +import { FeaturedWrap } from './style'; +import FeaturedJourneys from './journeys'; +import FeaturedGuides from './guides'; +import FeaturedRoadmaps from './roadmaps'; const FeaturedContent = (props) => ( - -
-
-

Featured Content

-

- - List of roadmaps mostly visited by the community  - View all Roadmaps → - -

-
-
- - - -
-
-
- -
-

- - List of most visited guides  - View all Guides → - -

-
- - - - - - -
-
-
- -
-

- - List of most visited Journeys  - View all Journeys → - -

-
- - - - -
-
-
+ + +
); diff --git a/components/featured-content/journeys.js b/components/featured-content/journeys.js new file mode 100644 index 000000000..f0a8b341c --- /dev/null +++ b/components/featured-content/journeys.js @@ -0,0 +1,54 @@ +import { FeaturedContentWrap } from './style'; + +const FeaturedJourneys = () => ( + +
+

+ + List of most visited Journeys  + View all Journeys → + +

+
+
+ + +
+

Kamran Ahmed

+

Engineering Lead at Al-tayer

+
+
+
+
+ + +
+

Aras Atasaygin

+

Engg. Manager at Al-tayer

+
+
+
+
+ + +
+

Dan Abramov

+

Co-founder and CTO at Blink

+
+
+
+
+ + +
+

Chris Coyier

+

Co-founder of Codepen

+
+
+
+
+
+
+); + +export default FeaturedJourneys; \ No newline at end of file diff --git a/components/featured-content/roadmaps.js b/components/featured-content/roadmaps.js new file mode 100644 index 000000000..ab52a2f77 --- /dev/null +++ b/components/featured-content/roadmaps.js @@ -0,0 +1,39 @@ +import { FeaturedContentWrap } from './style'; + +const FeaturedRoadmaps = () => ( + +
+
+

Featured Content

+

+ + List of roadmaps mostly visited by the community  + View all Roadmaps → + +

+
+
+
+ +

Frontend Developer

+

Step by step guide to becoming a modern frontend developer in 2019

+
+
+
+ +

Backend Developer

+

Step by step guide to becoming a modern backend developer in 2019

+
+
+
+ +

DevOps Roadmap

+

Step by step guide to become an SRE or for any operations role in 2019

+
+
+
+
+
+); + +export default FeaturedRoadmaps; \ No newline at end of file