diff --git a/src/components/HomeOne/ServicesHomeOne.js b/src/components/HomeOne/ServicesHomeOne.js index 79b2509..8d1e1dc 100644 --- a/src/components/HomeOne/ServicesHomeOne.js +++ b/src/components/HomeOne/ServicesHomeOne.js @@ -4,80 +4,70 @@ 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 serviceTitle = "" + 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 ( +
+
+
+
+
+

+ {serviceTitle} +

+
+
+
+
+ {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 74ede29..86d4b8a 100644 --- a/src/components/HomeOne/TrafficHomeTwo.js +++ b/src/components/HomeOne/TrafficHomeTwo.js @@ -3,77 +3,61 @@ import thumb from '../../assets/images/PerformingTaskNew.png'; import getConfig from './../../Config/config' function TrafficHomeOne() { - var site = getConfig()[0]; - return ( -
-
-
-
-
-

On WrenchBoard.

-

- Performing task on WrenchBoard is easy. All you need is a free account. -

-
-
-
-
-
- -
-
Free account
-

Get family access from parents, or create your free account.

-
-
-
-
-
- -
-
Suggest or Find Task
-

Suggest tasks to parents or pick from the market.

-
-
-
-
-
- -
-
Complete Task
-

Complete the task as specified.

-
-
-
-
-
- -
-
Reward
-

Get your reward as specified.

-
-
- {/*
+ 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." }, + ] +}