From 8927614cd60c4c370a1d4f81c9d9d3c1ae33435e Mon Sep 17 00:00:00 2001 From: Ebube Date: Mon, 28 Aug 2023 18:34:17 +0100 Subject: [PATCH] more clean up for that section --- src/components/HomeOne/ServicesHomeOne.js | 139 ++++++++++------------ src/components/HomeOne/TrafficHomeTwo.js | 90 +++++++------- 2 files changed, 109 insertions(+), 120 deletions(-) diff --git a/src/components/HomeOne/ServicesHomeOne.js b/src/components/HomeOne/ServicesHomeOne.js index 79b2509..93d229e 100644 --- a/src/components/HomeOne/ServicesHomeOne.js +++ b/src/components/HomeOne/ServicesHomeOne.js @@ -4,80 +4,69 @@ import IconTwo from '../../assets/images/icon/Findtaskicon.png'; import IconThree from '../../assets/images/icon/taskicon.png'; import IconFour from '../../assets/images/icon/walleticon.png'; -// import FirstSlide from '../../assets/images/icon/Untitledxyz.png'; - - -function ServicesHomeOne({ className }) { - return ( -
-
-
-
-
-

- Start getting paid in easy steps. -

- -
-
-
-
-
-
-
- -
-

Free Account

-

Join WrenchBoard.Create an account for Income.

-
-
-
-
-
- -
-

Find Task

-

Build a Self-Portfolio with sole purpose to Cash-Out.

-
-
-
-
-
- -
-

Complete

-

Organize and Manage your teams efficiently. Manage your workgroup.

-
-
-
-
-
- -
-

Get Paid

-

Start Boosting your Income By earning Cash for your Time and Skills.

-
-
-
-
-
- ); +function ServiceItem({ icon, title, description, index }) { + return ( +
+
+ {title} +
+

{title}

+

{description}

+
+ ); } -export default ServicesHomeOne; +function ServicesHomeOne({ className }) { + const serviceItems = [ + { + icon: IconOne, + title: 'Free Account', + description: 'Join WrenchBoard. Create an account for Income.', + }, + { + icon: IconTwo, + title: 'Find Task', + description: 'Build a Self-Portfolio with sole purpose to Cash-Out.', + }, + { + icon: IconThree, + title: 'Complete', + description: 'Organize and Manage your teams efficiently. Manage your workgroup.', + }, + { + icon: IconFour, + title: 'Get Paid', + description: 'Start Boosting your Income by earning Cash for your Time and Skills.', + }, + ]; + + return ( +
+
+
+
+
+

+ Start getting paid in easy steps. +

+
+
+
+
+ {serviceItems.map(({ icon, title, description }, index) => ( +
+ +
+ ))} +
+
+
+ ); +} + +export default ServicesHomeOne; \ No newline at end of file diff --git a/src/components/HomeOne/TrafficHomeTwo.js b/src/components/HomeOne/TrafficHomeTwo.js index 73945fc..eab58e1 100644 --- a/src/components/HomeOne/TrafficHomeTwo.js +++ b/src/components/HomeOne/TrafficHomeTwo.js @@ -3,61 +3,61 @@ import thumb from '../../assets/images/PerformingTaskNew.png'; import getConfig from './../../Config/config' function TrafficHomeOne() { - var site = getConfig()[0]; - return ( -
-
-
-
-
-

{featuresContent.title}

-

{featuresContent.detail}

-
-
- {featuresContent.list?.map(({ icon, header, paragraph }, idx) => ( -
-
-
- -
-
{header}
-

{paragraph}

-
-
- ))} - {/*
+ var site = getConfig()[0]; + return ( +
+
+
+
+
+

{featuresContent.title}

+

{featuresContent.detail}

+
+
+ {featuresContent.list?.map(({ icon, header, paragraph }, idx) => ( +
+
+
+ +
+
{header}
+

{paragraph}

+
+
+ ))} + {/* */} -
-
-
-
- -
-
- ); +
+
+
+
+ +
+
+ ); } export default TrafficHomeOne; const featuresContent = { - title: "on WrenchBoard.", - detail: "Performing task on WrenchBoard is easy. All you need is a free account.", - list: [ - { icon: "fal fa-check", header: "Free account", paragraph: "Get family access from parents, or create your free account." }, - { icon: "fal fa-check", header: "Suggest or Find Task", paragraph: "Suggest tasks to parents or pick from the market." }, - { icon: "fal fa-check", header: "Complete Task", paragraph: "Complete the task as specified." }, - { icon: "fal fa-check", header: "Reward", paragraph: "Get your reward as specified." }, - ] + title: "on WrenchBoard.", + detail: "Performing task on WrenchBoard is easy. All you need is a free account.", + list: [ + { icon: "fal fa-check", header: "Free account", paragraph: "Get family access from parents, or create your free account." }, + { icon: "fal fa-check", header: "Suggest or Find Task", paragraph: "Suggest tasks to parents or pick from the market." }, + { icon: "fal fa-check", header: "Complete Task", paragraph: "Complete the task as specified." }, + { icon: "fal fa-check", header: "Reward", paragraph: "Get your reward as specified." }, + ] }