From c927aa948e1cd7599f72219b968e08c491afd101 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Sat, 7 Sep 2019 18:45:27 +0400 Subject: [PATCH] Rename featured content component --- .../{swim-lane => featured-content}/index.js | 40 +++++++++++-------- .../style.scss | 16 ++++++-- pages/home/index.js | 4 +- pages/index.js | 3 +- 4 files changed, 41 insertions(+), 22 deletions(-) rename components/{swim-lane => featured-content}/index.js (66%) rename components/{swim-lane => featured-content}/style.scss (80%) diff --git a/components/swim-lane/index.js b/components/featured-content/index.js similarity index 66% rename from components/swim-lane/index.js rename to components/featured-content/index.js index b6662875c..36aa96954 100644 --- a/components/swim-lane/index.js +++ b/components/featured-content/index.js @@ -1,28 +1,30 @@ import './style.scss'; -const SwimLane = (props) => ( +const FeaturedContent = (props) => ( <> -
+
-
+

Featured Content

-

List of roadmaps mostly visited by the community. There are more roadmaps also.

+

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

-
+ ); -SwimLane.defaultProps = { +FeaturedContent.defaultProps = { className: '', }; -export default SwimLane; \ No newline at end of file +export default FeaturedContent; \ No newline at end of file diff --git a/components/swim-lane/style.scss b/components/featured-content/style.scss similarity index 80% rename from components/swim-lane/style.scss rename to components/featured-content/style.scss index 682555c63..b63d4b54e 100644 --- a/components/swim-lane/style.scss +++ b/components/featured-content/style.scss @@ -1,5 +1,5 @@ -.lane-wrap { - .lane-head { +.featured-content-wrap { + .featured-head { text-align: center; display: block; @@ -15,10 +15,20 @@ font-size: 18px; margin-bottom: 40px; margin-top: 25px; + + a { + background: black; + color: white; + padding: 3px 8px; + border-radius: 6px; + font-size: 14px; + text-decoration: none; + margin-left: 5px; + } } .swim-lane { - .lane-item { + .featured-block { border: 1px solid #f7f7f7; display: block; text-decoration: none; diff --git a/pages/home/index.js b/pages/home/index.js index 67407b081..403fc1bed 100644 --- a/pages/home/index.js +++ b/pages/home/index.js @@ -1,5 +1,5 @@ import Header from '../../components/header/index'; -import SwimLane from '../../components/swim-lane'; +import FeaturedContent from '../../components/featured-content'; import './style.scss'; import HeroSection from '../../components/hero-section'; @@ -8,7 +8,7 @@ export const Home = (props) => (
- +
); diff --git a/pages/index.js b/pages/index.js index 9e91ba90f..30926317d 100644 --- a/pages/index.js +++ b/pages/index.js @@ -1,11 +1,12 @@ import { library } from '@fortawesome/fontawesome-svg-core'; import { faGithub, fab } from '@fortawesome/free-brands-svg-icons'; +import { faArrowRight } from '@fortawesome/free-solid-svg-icons' import 'bootstrap/dist/css/bootstrap.min.css'; import './global.scss'; import Home from './home/index'; -library.add(fab, faGithub); +library.add(fab, faGithub, faArrowRight); const Index = () => (