diff --git a/src/component/HomeMain/Pricing/Main.js b/src/component/HomeMain/Pricing/Main.js
index fb75738..171b3bf 100644
--- a/src/component/HomeMain/Pricing/Main.js
+++ b/src/component/HomeMain/Pricing/Main.js
@@ -1,13 +1,30 @@
import { Link } from 'react-router-dom'
-import React , { useState} from 'react'
+import React , { useState, useEffect} from 'react'
+import AOS from "aos";
import img1 from '../../../assets/images/standard.png'
import img2 from '../../../assets/images/unlimited.png'
import img3 from '../../../assets/images/premium.png'
+import SiteService from '../../../vendors/service/siteService'
+
const Main = ({gredient , video}) => {
const[tog, setTog] = useState()
+ const [prices, setPrices] = useState([]); // initial state for FAQs before API call
+
+ let priceServices = new SiteService(); // instantiating the class
+
+ const getAllPriceData = () => {
+ return priceServices.priceData();
+ };
+
+ useEffect(() => {
+ getAllPriceData().then((data) => setPrices(data.data));
+ AOS.init();
+ AOS.refresh();
+ }, []);
+
return (
<>
{gredient ?
@@ -29,37 +46,52 @@ const Main = ({gredient , video}) => {
-
-
-
-

-
-
-
Standard
- For the basics
-
-
$15
-
- -
-
Up to 5 Website
-
- -
-
50 GB disk space
-
- -
-
10 Customize sub pages
-
- -
-
2 Domains access
-
- -
-
Support on request
-
-
-
BUY NOW
-
-
-
+
+ {prices.length > 0 &&
+ prices.map((price, index) => {
+ if (index % 2 == 0) {
+ return (
+
+
+
+ { video ?

:

}
+
+
+
{price.title}
+ {price.text}
+
+
{price.price}
+
+ {price.features.map((feature, index)=> {feature}
)}
+
+
Start Now
+
+
+ );
+ } else {
+ return (
+
+
+
+ { video ?

:

}
+
+
+
{price.title}
+ {price.text}
+
+
{price.price}
+
+ {price.features.map((feature, index)=> {feature}
)}
+
+
Start Now
+
+
+ );
+ }
+ })
+ }
+
+ {/*

@@ -86,136 +118,60 @@ const Main = ({gredient , video}) => {
24/7 Customer support
-
BUY NOW
+
Start Now
-
-
-
-
-

-
-
-
Premium
- For small team
-
-
$55
-
- -
-
Up to 10 Website
-
- -
-
100 GB disk space
-
- -
-
15 Customize sub pages
-
- -
-
4 Domains access
-
- -
-
24/7 Customer support
-
-
-
BUY NOW
-
-
+
*/}
+
-
-
-
-

-
-
-
Standard
- For the basics
-
-
$150
-
- -
-
Up to 10 Website
-
- -
-
100 GB disk space
-
- -
-
25 Customize sub pages
-
- -
-
4 Domains access
-
- -
-
Support on request
-
-
-
BUY NOW
-
-
-
-
-
-

-
-
-
Unlimited
- For the professionals
-
-
$999
-
- -
-
Unlimited Website
-
- -
-
400 GB disk space
-
- -
-
40 Customize sub pages
-
- -
-
20 Domains access
-
- -
-
24/7 Customer support
-
-
-
BUY NOW
-
-
+ {prices.length > 0 &&
+ prices.map((price, index) => {
+ if (index % 2 == 0) {
+ return (
+
+
+
+ { video ?

:

}
+
+
+
{price.title}
+ {price.text}
+
+
{price.price}
+
+ {price.features.map((feature, index)=> {feature}
)}
+
+
Start Now
+
+
+ );
+ } else {
+ return (
+
+
+
+ { video ?

:

}
+
+
+
{price.title}
+ {price.text}
+
+
{price.price}
+
+ {price.features.map((feature, index)=> {feature}
)}
+
+
Start Now
+
+
+ );
+ }
+ })
+ }
-
-
-
-

-
-
-
Premium
- For small team
-
-
$550
-
- -
-
Up to 20 Website
-
- -
-
200 GB disk space
-
- -
-
25 Customize sub pages
-
- -
-
8 Domains access
-
- -
-
24/7 Customer support
-
-
-
BUY NOW
-
-
@@ -241,193 +197,101 @@ const Main = ({gredient , video}) => {
-
-
-
- { video ?

:

}
-
-
-
Standard
- For the basics
-
-
$15
-
- -
-
Up to 5 Website
-
- -
-
50 GB disk space
-
- -
-
10 Customize sub pages
-
- -
-
2 Domains access
-
- -
-
Support on request
-
-
-
BUY NOW
-
-
-
-
-
- { video ?

:

}
-
-
-
Unlimited
- For the professionals
-
-
$99
-
- -
-
Unlimited Website
-
- -
-
200 GB disk space
-
- -
-
20 Customize sub pages
-
- -
-
10 Domains access
-
- -
-
24/7 Customer support
-
-
-
BUY NOW
-
-
-
-
-
- {video ?

:

}
-
-
-
Premium
- For small team
-
-
$55
-
- -
-
Up to 10 Website
-
- -
-
100 GB disk space
-
- -
-
15 Customize sub pages
-
- -
-
4 Domains access
-
- -
-
24/7 Customer support
-
-
-
BUY NOW
-
-
+
+ {prices.length > 0 &&
+ prices.map((price, index) => {
+ if (index % 2 == 0) {
+ return (
+
+
+
+ { video ?

:

}
+
+
+
{price.title}
+ {price.text}
+
+
{price.price}
+
+ {price.features.map((feature, index)=> {feature}
)}
+
+
Start Now
+
+
+ );
+ } else {
+ return (
+
+
+
+ { video ?

:

}
+
+
+
{price.title}
+ {price.text}
+
+
{price.price}
+
+ {price.features.map((feature, index)=> {feature}
)}
+
+
Start Now
+
+
+ );
+ }
+ })
+ }
+
-
-
-
- { video ?

:

}
-
-
-
Standard
- For the basics
-
-
$150
-
- -
-
Up to 10 Website
-
- -
-
100 GB disk space
-
- -
-
25 Customize sub pages
-
- -
-
4 Domains access
-
- -
-
Support on request
-
-
-
BUY NOW
-
-
-
-
-
- { video ?

:

}
-
-
-
Unlimited
- For the professionals
-
-
$999
-
- -
-
Unlimited Website
-
- -
-
400 GB disk space
-
- -
-
40 Customize sub pages
-
- -
-
20 Domains access
-
- -
-
24/7 Customer support
-
-
-
BUY NOW
-
-
+ {prices.length > 0 &&
+ prices.map((price, index) => {
+ if (index % 2 == 0) {
+ return (
+
+
+
+ { video ?

:

}
+
+
+
{price.title}
+ {price.text}
+
+
{price.price}
+
+ {price.features.map((feature, index)=> {feature}
)}
+
+
Start Now
+
+
+ );
+ } else {
+ return (
+
+
+
+ { video ?

:

}
+
+
+
{price.title}
+ {price.text}
+
+
{price.price}
+
+ {price.features.map((feature, index)=> {feature}
)}
+
+
Start Now
+
+
+ );
+ }
+ })
+ }
-
-
-
- {video ?

:

}
-
-
-
Premium
- For small team
-
-
$550
-
- -
-
Up to 20 Website
-
- -
-
200 GB disk space
-
- -
-
25 Customize sub pages
-
- -
-
8 Domains access
-
- -
-
24/7 Customer support
-
-
-
BUY NOW
-
-
diff --git a/src/component/HomeMain/Work/Main.js b/src/component/HomeMain/Work/Main.js
index 14051b9..732135d 100644
--- a/src/component/HomeMain/Work/Main.js
+++ b/src/component/HomeMain/Work/Main.js
@@ -20,8 +20,7 @@ const Main = ({dark}) => {
How it works - 3 easy steps
-
Lorem Ipsum is simply dummy text of the printing and typese tting
indus orem Ipsum has beenthe
- standard dummy.
+
myFit has powerful connectivity, fitness, health, and safety features,
Also makes provision Fitness tracking,Workout tracking,Heart rate monitoring.
diff --git a/src/component/Pages/Faq/Main.js b/src/component/Pages/Faq/Main.js
index a237cfe..1ee4dea 100644
--- a/src/component/Pages/Faq/Main.js
+++ b/src/component/Pages/Faq/Main.js
@@ -5,9 +5,23 @@ import BGImg from "../../../assets/images/bread_crumb_bg.png"
import BGImg1 from "../../../assets/images/bread_crumb_bg_one.png"
import BGImg2 from "../../../assets/images/bread_crumb_bg_two.png"
+import SiteService from '../../../vendors/service/siteService'
+
const Main = ({brdcum}) => {
const[activeFaq, setActiveFaq] = useState({a : true})
+
+ const [faqs, setFaqs] = useState([]); // initial state for FAQs before API call
+
+ let faqServices = new SiteService(); // instantiating the class
+
+ const allFaqData = () => {
+ return faqServices.faqData();
+ };
+
+ useEffect(() => {
+ allFaqData().then((data) => setFaqs(data.data));
+ }, []);
return (
<>
{brdcum.b1 &&
@@ -54,7 +68,8 @@ const Main = ({brdcum}) => {
-
+
+ {/*
-
-
+
*/}
+
+ {/*
-
+
*/}
-
+ {/*
-
+
*/}
-
+ {/*
-
+
*/}
-
+ {/*
-
+
*/}
-
+ {/*
-
+
*/}
-
+ {/*
+
*/}
+
+ {/* displays loading ... while the page fetches the FAQs */}
+ {faqs.length < 1 &&
Loading...
}
+
+ {faqs.length > 0 && faqs.map((faq, index) => {
+ let id = `heading${index}`; //headingSeven
+ let target = `collapse${index}`; //#collapseSeven
+
+ return(
+
+
+
+
+
+
+
+
+ )
+ })}