Compare commits
44 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b9cf520bcf | |||
| 6914a8fe99 | |||
| cd3732122b | |||
| 3aa53025cf | |||
| e372f8a036 | |||
| f6727c98d0 | |||
| 26cdf65d76 | |||
| de2b95fed5 | |||
| dc921d42d2 | |||
| b05b7b6956 | |||
| fa649aef81 | |||
| 30ac6f6a69 | |||
| f81aa3e467 | |||
| de6044b561 | |||
| e8fcf95efb | |||
| 6c99163825 | |||
| 1db651722b | |||
| d2f4996186 | |||
| 2f5ab5a1f7 | |||
| 40caafdeb5 | |||
| e2bc8b517e | |||
| 6d73d9151f | |||
| 65c3474519 | |||
| b6baa37a1f | |||
| 2b351b9825 | |||
| a09bfac386 | |||
| 209b35b26d | |||
| 0229091c81 | |||
| ef292121b8 | |||
| 7098e8a2fe | |||
| cf6a83423e | |||
| 63ea81ec40 | |||
| 79cd247c16 | |||
| 84eacb05d7 | |||
| 88d106f3a4 | |||
| 0a93f6fc8a | |||
| 4463a98b63 | |||
| fa2a9fd116 | |||
| 623dc8164b | |||
| 8f07d4380f | |||
| d3d4f3f8f8 | |||
| 92a802750d | |||
| 8d47da611d | |||
| 0e7862df7f |
@@ -6,7 +6,8 @@ REACT_APP_ANDROID_URL="https://play.google.com/store/apps/details?id=com.mermsem
|
|||||||
REACT_APP_IOS_URL="https://play.google.com/store/apps/details?id=com.mermsemr.myfit"
|
REACT_APP_IOS_URL="https://play.google.com/store/apps/details?id=com.mermsemr.myfit"
|
||||||
|
|
||||||
|
|
||||||
REACT_APP_APPSITE=" https://mermsemr.com"
|
REACT_APP_APPSITE="https://dev142.users.myfit.mermsemr.com/login"
|
||||||
|
# " https://mermsemr.com"
|
||||||
#REACT_APP_APPSITE="http://localhost:7012"
|
#REACT_APP_APPSITE="http://localhost:7012"
|
||||||
|
|
||||||
# Social Media Links
|
# Social Media Links
|
||||||
|
|||||||
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 18 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 140 KiB |
|
After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 51 KiB |
|
After Width: | Height: | Size: 115 KiB |
|
After Width: | Height: | Size: 59 KiB |
@@ -10,15 +10,20 @@ const Main = ({brdcum}) => {
|
|||||||
const [ytShow , setytShow] = useState (false)
|
const [ytShow , setytShow] = useState (false)
|
||||||
|
|
||||||
// About us text variables
|
// About us text variables
|
||||||
let innovativeDesc = 'The team at myFit by Flxuxtra LLC works with you to achieve your health objectives without getting in your way. Do your health your way to get the best result for you and your family. We are you, always ready and always engaged with the users to help get the best out of our solution.'
|
let innovativeDesc = 'The team at myFit by Fluxtra LLC works with you to achieve your health objectives without getting in your way. Do your health your way to get the best result for you and your family. We are you, always ready and always engaged with the users to help get the best out of our solution.'
|
||||||
'We work with you to achieve your health and fitness goals by providing solutions that fit your goals.'
|
'We work with you to achieve your health and fitness goals by providing solutions that fit your goals.'
|
||||||
let whyWeAreDiff = {
|
let whyWeAreDiff = {
|
||||||
desc:'We work with you to achieve your health and fitness goals by providing solutions that fit your goals.',
|
desc:'We work with you to achieve your health and fitness goals by providing solutions that fit your goals.',
|
||||||
|
secureDesc:"MyFit is built to keep your data secure and protect your privacy. Your data is encrypted and you are always in control of your information.",
|
||||||
|
richFeaturesDesc: " Self-service & Scheduling, Tracking of health and fitness, Performance metrics. A more active, healthier interaction and improved quality of life.",
|
||||||
|
easeOfUseDesc:" MyFit keeps you connected to your health, a healthy partner for a healthy life. Measure and keep track of your health & awareness in one place.",
|
||||||
|
supportDesc:" myFit alerts you of irregular rhythms. You can connect with your health facilitator.",
|
||||||
title1: 'Secure',
|
title1: 'Secure',
|
||||||
title2: 'Rich Features',
|
title2: 'Rich Features',
|
||||||
title3: 'Ease of Use',
|
title3: 'Ease of Use',
|
||||||
title4: 'Support'
|
title4: 'Support'
|
||||||
}
|
}
|
||||||
|
let queryDesc = 'If you have an query, please get in touch with us, we will revert back quickly.'
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@@ -115,9 +120,7 @@ const Main = ({brdcum}) => {
|
|||||||
</div> */}
|
</div> */}
|
||||||
<div className="text">
|
<div className="text">
|
||||||
<h3>{whyWeAreDiff.title1}</h3>
|
<h3>{whyWeAreDiff.title1}</h3>
|
||||||
<p>Lorem Ipsum is simply dummy text of the printing and type
|
<p> {whyWeAreDiff.secureDesc}</p>
|
||||||
setting indus ideas.
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -128,7 +131,7 @@ const Main = ({brdcum}) => {
|
|||||||
</div> */}
|
</div> */}
|
||||||
<div className="text">
|
<div className="text">
|
||||||
<h3>{whyWeAreDiff.title2}</h3>
|
<h3>{whyWeAreDiff.title2}</h3>
|
||||||
<p>Simply dummy text of the printing and typesetting indus lorem Ipsum is dummy.</p>
|
<p>{whyWeAreDiff.richFeaturesDesc}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -139,9 +142,7 @@ const Main = ({brdcum}) => {
|
|||||||
</div> */}
|
</div> */}
|
||||||
<div className="text">
|
<div className="text">
|
||||||
<h3>{whyWeAreDiff.title3}</h3>
|
<h3>{whyWeAreDiff.title3}</h3>
|
||||||
<p>Lorem Ipsum is simply dummy text of the printing and type
|
<p>{whyWeAreDiff.easeOfUseDesc}</p>
|
||||||
setting indus ideas.
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -152,7 +153,7 @@ const Main = ({brdcum}) => {
|
|||||||
</div> */}
|
</div> */}
|
||||||
<div className="text">
|
<div className="text">
|
||||||
<h3>{whyWeAreDiff.title4}</h3>
|
<h3>{whyWeAreDiff.title4}</h3>
|
||||||
<p>Simply dummy text of the printing and typesetting indus lorem Ipsum is dummy.</p>
|
<p>{whyWeAreDiff.supportDesc}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -173,45 +174,45 @@ const Main = ({brdcum}) => {
|
|||||||
<div className="section_title" data-aos="fade-up" data-aos-duration="1500" data-aos-delay="100">
|
<div className="section_title" data-aos="fade-up" data-aos-duration="1500" data-aos-delay="100">
|
||||||
<h2> <span>We focus on quality,</span> never
|
<h2> <span>We focus on quality,</span> never
|
||||||
focus on quantity</h2>
|
focus on quantity</h2>
|
||||||
<p>
|
|
||||||
Lorem Ipsum is simply dummy text of the printing and typesetting industry lorem Ipsum has been the industrys standard dummy text ever since the when an unknown printer took a galley of type and.
|
<p>{innovativeDesc}</p>
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
<ul className="app_statstic" id="counter" data-aos="fade-in" data-aos-duration="1500">
|
<ul className="app_statstic" id="counter" data-aos="fade-in" data-aos-duration="1500">
|
||||||
<li>
|
<li>
|
||||||
<div className="icon">
|
{/* <div className="icon">
|
||||||
<img src="assets/images/download.png" alt="image" />
|
<img src="assets/images/download.png" alt="image" />
|
||||||
</div>
|
</div> */}
|
||||||
<div className="text">
|
<div className="text">
|
||||||
<p><span className="counter-value" data-count="17">0</span><span>M+</span></p>
|
<h3>Manage</h3>
|
||||||
<p>Download</p>
|
<p>health plan</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<div className="icon">
|
{/* <div className="icon">
|
||||||
<img src="assets/images/followers.png" alt="image" />
|
<img src="assets/images/followers.png" alt="image" />
|
||||||
</div>
|
</div> */}
|
||||||
<div className="text">
|
<div className="text">
|
||||||
<p><span className="counter-value" data-count="08">0 </span><span>M+</span></p>
|
<h3>Health Record</h3>
|
||||||
<p>Followers</p>
|
<p>with you</p>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<div className="icon">
|
{/* <div className="icon">
|
||||||
<img src="assets/images/reviews.png" alt="image" />
|
<img src="assets/images/reviews.png" alt="image" />
|
||||||
</div>
|
</div> */}
|
||||||
<div className="text">
|
<div className="text">
|
||||||
<p><span className="counter-value" data-count="2300">1500</span><span>+</span></p>
|
<h3>Health</h3>
|
||||||
<p>Reviews</p>
|
<p>reminders</p>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<div className="icon">
|
{/* <div className="icon">
|
||||||
<img src="assets/images/countries.png" alt="image" />
|
<img src="assets/images/countries.png" alt="image" />
|
||||||
</div>
|
</div> */}
|
||||||
<div className="text">
|
<div className="text">
|
||||||
<p><span className="counter-value" data-count="150">0</span><span>+</span></p>
|
<h3>Quick</h3>
|
||||||
<p>Countries</p>
|
<p>Schedule</p>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@@ -230,7 +231,7 @@ const Main = ({brdcum}) => {
|
|||||||
|
|
||||||
<div className="section_title">
|
<div className="section_title">
|
||||||
<h2>Have any query about ?</h2>
|
<h2>Have any query about ?</h2>
|
||||||
<p>Lorem Ipsum is simply dummy text of the printing and typese tting <br/> indus orem Ipsum has beenthe standard dummy.</p>
|
<p>{queryDesc}</p>
|
||||||
</div>
|
</div>
|
||||||
<Link to="/contact" className="btn white_btn">CONTACT US NOW</Link>
|
<Link to="/contact" className="btn white_btn">CONTACT US NOW</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,75 +1,45 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
import BGImg from "../../../assets/images/bread_crumb_bg.png";
|
import BGImg from "../../../assets/images/bread_crumb_bg.png";
|
||||||
import SiteService from "../../../vendors/service/siteService";
|
import SiteService from "../../../vendors/service/siteService";
|
||||||
|
|
||||||
const Main = ({ brdcum, bgimg }) => {
|
const Main = ({ brdcum, bgimg }) => {
|
||||||
const [blogData, setBlogData] = useState([]);
|
const [blogData, setBlogData] = useState([]);
|
||||||
|
console.log(blogData);
|
||||||
|
|
||||||
let api = new SiteService();
|
const api = new SiteService();
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getBlogData();
|
getBlogData();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const getBlogData = async () => {
|
const getBlogData = async () => {
|
||||||
/*
|
try {
|
||||||
The reason for this, is because of the breaking I had when building the blog
|
const res = await api.blogData();
|
||||||
I decided to save to the local storage for an hour so that it won't need to be going to the server again but I can change this
|
|
||||||
*/
|
|
||||||
// Saving it locally to avoid interfering with server
|
|
||||||
if (localStorage.getItem("myFit--blogData") == null) {
|
|
||||||
try {
|
|
||||||
let res = await api.blogData();
|
|
||||||
|
|
||||||
// Set the blog data to local storage
|
setBlogData(res.data);
|
||||||
localStorage.setItem("myFit--blogData", JSON.stringify(res.data));
|
|
||||||
setBlogData(res.data);
|
// console.log(res.data);
|
||||||
// Set a time out for the blog data to be deleted from local storage
|
|
||||||
setTimeout(() => {
|
|
||||||
localStorage.removeItem("myFit--blogData");
|
} catch (error) {
|
||||||
}, 3600);
|
console.log("Error from blog data ", error);
|
||||||
} catch (error) {
|
|
||||||
console.log("Error from blog data ", error);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
try {
|
|
||||||
let data = JSON.parse(localStorage.getItem("myFit--blogData"));
|
|
||||||
setBlogData(data);
|
|
||||||
} catch (error) {
|
|
||||||
console.error("Error parsing JSON data: ", error);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div
|
<div className="bred_crumb" style={{ backgroundImage: `url(${BGImg})` }}>
|
||||||
className="bred_crumb"
|
|
||||||
style={{ backgroundImage: `url(${BGImg})` }}>
|
|
||||||
<div className="container">
|
<div className="container">
|
||||||
<span className="banner_shape1">
|
<span className="banner_shape1">
|
||||||
{" "}
|
{" "}
|
||||||
<img
|
<img src="assets/images/banner-shape1.png" alt="image" />{" "}
|
||||||
src="assets/images/banner-shape1.png"
|
|
||||||
alt="image"
|
|
||||||
/>{" "}
|
|
||||||
</span>
|
</span>
|
||||||
<span className="banner_shape2">
|
<span className="banner_shape2">
|
||||||
{" "}
|
{" "}
|
||||||
<img
|
<img src="assets/images/banner-shape2.png" alt="image" />{" "}
|
||||||
src="assets/images/banner-shape2.png"
|
|
||||||
alt="image"
|
|
||||||
/>{" "}
|
|
||||||
</span>
|
</span>
|
||||||
<span className="banner_shape3">
|
<span className="banner_shape3">
|
||||||
{" "}
|
{" "}
|
||||||
<img
|
<img src="assets/images/banner-shape3.png" alt="image" />{" "}
|
||||||
src="assets/images/banner-shape3.png"
|
|
||||||
alt="image"
|
|
||||||
/>{" "}
|
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div className="bred_text">
|
<div className="bred_text">
|
||||||
@@ -82,122 +52,97 @@ const Main = ({ brdcum, bgimg }) => {
|
|||||||
<span>»</span>
|
<span>»</span>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<Link to="/blog">
|
<Link to="/blog">Blog</Link>
|
||||||
{blogData.map((item, idx) => {
|
|
||||||
if (idx === 0) {
|
|
||||||
return <span>{item.post_title}</span>;
|
|
||||||
}
|
|
||||||
})}
|
|
||||||
</Link>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
{/* <div className="search_bar">
|
||||||
|
<form action="">
|
||||||
|
<div className="form-group">
|
||||||
|
<input type="text" placeholder="Search here" className="form-control"/>
|
||||||
|
<button className="btn" type="submit"><i className="icofont-search-1"></i></button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>*/}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<section className="row_am blog_list_main">
|
<section className="row_am blog_list_main">
|
||||||
{blogData.length < 1 && (
|
{blogData.map((data,index) => {
|
||||||
<div
|
if (index == 0){
|
||||||
className="loader loader-sm"
|
|
||||||
id="loader-1"></div>
|
|
||||||
)}
|
|
||||||
{blogData.map((data, index) => {
|
|
||||||
if (index == 0) {
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div className="container">
|
||||||
className="container"
|
<div className="row">
|
||||||
key={data.id}>
|
<div
|
||||||
<div className="row">
|
className="col-lg-6"
|
||||||
<div
|
data-aos="fade-in"
|
||||||
className="col-lg-6"
|
data-aos-duration="1500"
|
||||||
data-aos="fade-in"
|
>
|
||||||
data-aos-duration="1500">
|
<div className="blog_img">
|
||||||
<div className="blog_img">
|
<img
|
||||||
<img
|
src={data.meta_value}
|
||||||
src={data.meta_value}
|
alt="image"
|
||||||
alt="image"
|
/>
|
||||||
/>
|
{/* <span>20 min ago</span> */}
|
||||||
|
|
||||||
<span>{new Date(data.post_date).toDateString()}</span>
|
<span>{new Date (data.post_date).toDateString()}</span>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div className="col-lg-6">
|
</div>
|
||||||
<div className="blog_text">
|
<div className="col-lg-6">
|
||||||
<div className="section_title">
|
<div className="blog_text">
|
||||||
<h2>{data.post_title}</h2>
|
<div className="section_title">
|
||||||
<div
|
<h2>{data.post_title}</h2>
|
||||||
dangerouslySetInnerHTML={{
|
<div dangerouslySetInnerHTML={{__html: data.post_content.substring(0,400)+' . . .'}}></div>
|
||||||
__html:
|
{/* <Link to={`/blog-single/${data.id}`} state={{data}}>
|
||||||
data.post_content.substring(0, 400) + " . . .",
|
|
||||||
}}></div>
|
|
||||||
{/* Change the route name */}
|
|
||||||
<Link
|
|
||||||
to={`/blogdetails/${data.id}`}
|
|
||||||
state={{ data }}>
|
|
||||||
READ MORE
|
READ MORE
|
||||||
</Link>
|
</Link> */}
|
||||||
</div>
|
<Link to={`/blogdetails/${data.id}`} state={{data, allData: blogData}}>
|
||||||
|
READ MORE
|
||||||
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
</div>
|
||||||
}
|
|
||||||
})}
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section
|
)
|
||||||
className="row_am latest_story blog_list_story"
|
}
|
||||||
id="blog">
|
})}
|
||||||
|
|
||||||
|
|
||||||
|
</section>
|
||||||
|
<section className="row_am latest_story blog_list_story" id="blog">
|
||||||
<div className="container">
|
<div className="container">
|
||||||
<div className="row">
|
<div className="row">
|
||||||
{blogData.map((data, index) => {
|
{blogData.map((data, index) => {
|
||||||
if (index > 0) {
|
if (index > 0){
|
||||||
return (
|
return (
|
||||||
<div
|
<div key={data.id} className="col-md-4">
|
||||||
key={data.id}
|
<div className="story_box" data-aos="fade-up" data-aos-duration="1500">
|
||||||
className="col-md-4">
|
<div className="story_img">
|
||||||
<div
|
<img src={data.meta_value} alt="image" />
|
||||||
className="story_box"
|
<span>{new Date (data && data.post_date).toDateString()}</span>
|
||||||
data-aos="fade-up"
|
|
||||||
data-aos-duration="1500">
|
|
||||||
<div className="story_img">
|
|
||||||
<img
|
|
||||||
src={data.meta_value}
|
|
||||||
alt="image"
|
|
||||||
/>
|
|
||||||
<span>
|
|
||||||
{new Date(data && data.post_date).toDateString()}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<div className="story_text">
|
|
||||||
<h3>{data.post_title}</h3>
|
|
||||||
<div
|
|
||||||
dangerouslySetInnerHTML={{
|
|
||||||
__html:
|
|
||||||
data &&
|
|
||||||
data.post_content.substring(0, 100) + " . . .",
|
|
||||||
}}></div>
|
|
||||||
{/* Change the route name */}
|
|
||||||
<Link
|
|
||||||
to={`/blogdetails/${data.id}`}
|
|
||||||
state={{ data }}>
|
|
||||||
READ MORE
|
|
||||||
</Link>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
<div className="story_text">
|
||||||
}
|
<h3>{data.post_title}</h3>
|
||||||
})}
|
<div dangerouslySetInnerHTML={{__html: data && data.post_content.substring(0,100)+' . . .'}}></div>
|
||||||
</div>
|
<Link to={`/blogdetails/${data.id}`} state={{data, allData: blogData}}>
|
||||||
|
READ MORE
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
)}
|
||||||
|
|
||||||
|
|
||||||
|
})}
|
||||||
|
</div>
|
||||||
<div className="pagination_block">
|
<div className="pagination_block">
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<Link
|
<Link to={process.env.REACT_APP_BLOGSITE}
|
||||||
to={process.env.REACT_APP_BLOGSITE}
|
className="prev">
|
||||||
className="prev">
|
|
||||||
{" "}
|
{" "}
|
||||||
Visit our blog
|
Visit our blog
|
||||||
</Link>
|
</Link>
|
||||||
|
|||||||
@@ -1,201 +1,333 @@
|
|||||||
/** @format */
|
|
||||||
|
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import { Link, useLocation } from "react-router-dom";
|
import { Link, useLocation } from 'react-router-dom'
|
||||||
import Bredcrumb from "../../Bredcrumb/Main";
|
import Bredcrumb from '../../Bredcrumb/Main'
|
||||||
import BGImg from "../../../assets/images/bread_crumb_bg.png";
|
import BGImg from "../../../assets/images/bread_crumb_bg.png"
|
||||||
import BGImg1 from "../../../assets/images/bread_crumb_bg_one.png";
|
import BGImg1 from "../../../assets/images/bread_crumb_bg_one.png"
|
||||||
import BGImg2 from "../../../assets/images/bread_crumb_bg_two.png";
|
import BGImg2 from "../../../assets/images/bread_crumb_bg_two.png"
|
||||||
|
import { useParams } from "react-router-dom";
|
||||||
import SiteService from "../../../vendors/service/siteService";
|
import SiteService from "../../../vendors/service/siteService";
|
||||||
|
|
||||||
const Main = ({ brdcum }) => {
|
|
||||||
const location = useLocation();
|
|
||||||
let data = location.state?.data;
|
|
||||||
const [blogData, setBlogData] = useState([]);
|
|
||||||
|
|
||||||
let api_call = new SiteService();
|
const Main = ({brdcum}) => {
|
||||||
|
const { id } = useParams();
|
||||||
|
const location = useLocation();
|
||||||
|
const [blogData, setBlogData] = useState([]);
|
||||||
|
const [newAllData, setNewAllData] = useState([]);
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getBlogData();
|
getBlogData();
|
||||||
}, []);
|
getLatestBlog();
|
||||||
|
}, [location.state?.data]);
|
||||||
|
|
||||||
|
const api = new SiteService();
|
||||||
|
const data = location.state?.data;
|
||||||
|
const allData = location.state?.allData;
|
||||||
|
|
||||||
|
|
||||||
|
const getLatestBlog = () =>{
|
||||||
|
const arrData = [ ...allData ];
|
||||||
|
const itemIndex = arrData.findIndex(x => x.id === data.id)
|
||||||
|
arrData.splice(itemIndex, 1);
|
||||||
|
const newAllData = arrData.splice(0, 3);
|
||||||
|
setNewAllData(newAllData);
|
||||||
|
|
||||||
|
console.log('All data ', arrData, newAllData);
|
||||||
|
}
|
||||||
|
|
||||||
const getBlogData = async () => {
|
const getBlogData = async () => {
|
||||||
/*
|
try {
|
||||||
The reason for this, is because of the breaking I had when building the blog
|
const res = await api.blogData();
|
||||||
I decided to save to the local storage for an hour so that it won't need to be going to the server again but I can change this
|
setBlogData(res.data);
|
||||||
*/
|
|
||||||
// Saving it locally to avoid interfering with server
|
} catch (error) {
|
||||||
if (localStorage.getItem("myFit--blogData") == null) {
|
console.log("Error from blog data ", error);
|
||||||
try {
|
|
||||||
let res = await api_call.blogData();
|
|
||||||
|
|
||||||
// Set the blog data to local storage
|
|
||||||
localStorage.setItem("myFit--blogData", JSON.stringify(res.data));
|
|
||||||
setBlogData(res.data);
|
|
||||||
// Set a time out for the blog data to be deleted from local storage
|
|
||||||
setTimeout(() => {
|
|
||||||
localStorage.removeItem("myFit--blogData");
|
|
||||||
}, 3600);
|
|
||||||
} catch (error) {
|
|
||||||
console.log("Error from blog data ", error);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
try {
|
|
||||||
let data = JSON.parse(localStorage.getItem("myFit--blogData"));
|
|
||||||
setBlogData(data);
|
|
||||||
} catch (error) {
|
|
||||||
console.error("Error parsing JSON data: ", error);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{brdcum.b1 && (
|
|
||||||
<Bredcrumb
|
{brdcum.b1 &&
|
||||||
no={1}
|
<Bredcrumb
|
||||||
title="Blog details"
|
no={1}
|
||||||
tag={data && data.post_title}
|
title="Blog details"
|
||||||
bgimg={BGImg}
|
tag="Blog single"
|
||||||
/>
|
bgimg={BGImg}/>}
|
||||||
)}
|
|
||||||
|
|
||||||
{brdcum.b2 && (
|
{brdcum.b2 &&
|
||||||
<Bredcrumb
|
<Bredcrumb
|
||||||
no={2}
|
no={2}
|
||||||
title="Blog details"
|
title="Blog details"
|
||||||
tag={data && data.post_title}
|
tag="Blog single"
|
||||||
bgimg={BGImg1}
|
bgimg={BGImg1}/>}
|
||||||
/>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{brdcum.b5 && (
|
{brdcum.b5 &&
|
||||||
<Bredcrumb
|
<Bredcrumb
|
||||||
no={5}
|
no={5}
|
||||||
title="Blog details"
|
title="Blog details"
|
||||||
tag={data && data.post_title}
|
tag="Blog single"
|
||||||
bgimg={BGImg}
|
bgimg={BGImg}/>}
|
||||||
/>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{brdcum.b3 && (
|
{brdcum.b3 &&
|
||||||
<Bredcrumb
|
<Bredcrumb
|
||||||
no={3}
|
no={3}
|
||||||
title="Blog details"
|
title="Blog details"
|
||||||
tag={data && data.post_title}
|
tag="Blog single" />}
|
||||||
/>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{brdcum.b4 && (
|
{brdcum.b4 &&
|
||||||
<Bredcrumb
|
<Bredcrumb
|
||||||
no={4}
|
no={4}
|
||||||
title="Blog details"
|
title="Blog details"
|
||||||
tag={data && data.post_title}
|
tag="Blog single"
|
||||||
bgimg={BGImg2}
|
bgimg={BGImg2}/>}
|
||||||
/>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<section className="blog_detail_section">
|
<section className="blog_detail_section">
|
||||||
<div className="container">
|
<div className="container">
|
||||||
<div className="blog_inner_pannel">
|
<div className="blog_inner_pannel">
|
||||||
<span className="blog_date">
|
<div className="review">
|
||||||
{new Date(data && data.post_modified).toDateString()}
|
<span>Review</span>
|
||||||
</span>
|
{/* <span>45 min ago</span> */}
|
||||||
|
<span>{new Date (data && data.post_modified).toDateString()}</span>
|
||||||
|
|
||||||
<div className="section_title">
|
</div>
|
||||||
<h2>{data && data.post_title}</h2>
|
<div className="section_title">
|
||||||
</div>
|
<h2>{data && data.post_title}</h2>
|
||||||
<div className="main_img">
|
</div>
|
||||||
<img
|
<div className="main_img">
|
||||||
src={data && data.meta_value}
|
<img src={data && data.meta_value} alt="image" />
|
||||||
alt="image"
|
</div>
|
||||||
/>
|
<div className="info">
|
||||||
</div>
|
<h3>{data && data.post_name}</h3>
|
||||||
<div className="info">
|
<div dangerouslySetInnerHTML={{__html: data && data.post_content}}></div>
|
||||||
<h3>{data && data.post_name}</h3>
|
</div>
|
||||||
<div
|
{/* <div className="info">
|
||||||
dangerouslySetInnerHTML={{
|
<p>Lorem Ipsum is simply dummy text of the printing and typesetting in dustry lorem Ipsum has been the industrys standard dummy text ev er since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic Lorem Ipsum is simply dummy text of the printing and typesettingindustry lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived.</p>
|
||||||
__html: data && data.post_content,
|
<p>Printing and typesetting in dustry lorem Ipsum has been the industrys standard dummy text ev er since the 1500s, when an unnown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic Lorem Ipsum is simply dummy text of the printing and typesettingindustry lorem Ipsum has been the industrys centuries, but also the leap into electronic.</p>
|
||||||
}}></div>
|
<h3>Why we are best</h3>
|
||||||
</div>
|
<p>Lorem Ipsum is simply dummy text of the printing and typesetting in dustry lorem Ipsum has been the industrys standard dummy text ev er since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic.</p>
|
||||||
|
<ul>
|
||||||
<div className="blog_authore">
|
<li><p> <span className="icon"><i className="icofont-check-circled"></i></span> Lorem Ipsum is simply dummy text of the printing and typesetting in </p></li>
|
||||||
<div className="authore_info">
|
<li><p> <span className="icon"><i className="icofont-check-circled"></i></span> Dustry lorem Ipsum has been the industrys standard dummy text ev er since the when</p></li>
|
||||||
<div className="text">
|
<li><p> <span className="icon"><i className="icofont-check-circled"></i></span> Unknown printer took a galley of type and scrambled it to make.</p></li>
|
||||||
{/* <h3>{data && data.post_author}</h3> */}
|
<li><p> <span className="icon"><i className="icofont-check-circled"></i></span> Type specimen book. It has survived not only five centuries, but also the leap into electronic.</p></li>
|
||||||
<span>{new Date(data && data.post_date).toDateString()}</span>
|
<li><p> <span className="icon"><i className="icofont-check-circled"></i></span> Lorem Ipsum is simply dummy text of the printing.</p></li>
|
||||||
|
<li><p> <span className="icon"><i className="icofont-check-circled"></i></span> Dustry lorem Ipsum has been the industrys standard dummy text ev er since.</p></li>
|
||||||
|
<li><p> <span className="icon"><i className="icofont-check-circled"></i></span> Unknown printer took a galley of type and scrambled it to make.</p></li>
|
||||||
|
<li><p> <span className="icon"><i className="icofont-check-circled"></i></span> Type specimen book. It has survived not only.</p></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div className="two_img">
|
||||||
|
<div className="row">
|
||||||
|
<div className="col-md-6">
|
||||||
|
<img src="assets/images/blog_sub_01.png" alt="image" />
|
||||||
|
</div>
|
||||||
|
<div className="col-md-6">
|
||||||
|
<img src="assets/images/blog_sub_02.png" alt="image" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="info">
|
||||||
|
<h3>Why we are best</h3>
|
||||||
|
<p>Lorem Ipsum is simply dummy text of the printing and typesetting in dustry lorem Ipsum has been the industrys standard dummy text ev er since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic Lorem Ipsum is simply dummy text of the printing and typesettingindustry lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived.</p>
|
||||||
|
</div>
|
||||||
|
<div className="quote_block">
|
||||||
|
<span className="q_icon"><img src="assets/images/quote_icon.png" alt="image" /></span>
|
||||||
|
<h2>Lorem Ipsum is simply dummy text of the printing and typesetting in dustry lorem Ipsum has been the industrys standard dummy.</h2>
|
||||||
|
<p><span className="name">Mr. John Doe,</span> Apper Inc</p>
|
||||||
|
</div> */}
|
||||||
|
{/* <p>Lorem Ipsum is simply dummy text of the printing and typesetting in dustry lorem Ipsum has been the industrys standard dummy text ev er since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic industry.</p> */}
|
||||||
|
<div className="blog_authore">
|
||||||
|
<div className="authore_info">
|
||||||
|
{/* <div className="avtar">
|
||||||
|
<img src="assets/images/blog_d02.png" alt="image" />
|
||||||
|
</div> */}
|
||||||
|
<div className="text">
|
||||||
|
<h3>{data && data.post_author}</h3>
|
||||||
|
<span>{new Date (data && data.post_date).toDateString()}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="social_media">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a href={process.env.REACT_APP_FACEBOOK}>
|
||||||
|
<i className="icofont-facebook"></i>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href={process.env.REACT_APP_TWITTER}>
|
||||||
|
<i className="icofont-twitter"></i>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="blog_tags">
|
||||||
|
<a href={process.env.REACT_APP_BLOGSITE}>Visit Blog Site </a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
{/* <section className="row_am comment_section">
|
||||||
|
<div className="container">
|
||||||
|
<div className="section_title">
|
||||||
|
<h2>3 Comments</h2>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div className="social_media">
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<a href={process.env.REACT_APP_FACEBOOK}>
|
<div className="authore_info">
|
||||||
<i className="icofont-facebook"></i>
|
<div className="avtar">
|
||||||
</a>
|
<img src="assets/images/blog_d01.png" alt="image" />
|
||||||
</li>
|
</div>
|
||||||
<li>
|
<div className="text">
|
||||||
<a href={process.env.REACT_APP_TWITTER}>
|
<span>30 min ago</span>
|
||||||
<i className="icofont-twitter"></i>
|
<h4>Dolly Shell</h4>
|
||||||
</a>
|
</div>
|
||||||
</li>
|
</div>
|
||||||
|
<div className="comment">
|
||||||
|
<p>Lorem Ipsum is simply dummy text of the printing and typesetting in dustry lorem Ipsum has been the in
|
||||||
|
dustrys standard dummy text ev er since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen. </p>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li className="replay_comment">
|
||||||
|
<div className="authore_info">
|
||||||
|
<div className="avtar">
|
||||||
|
<img src="assets/images/blog_d02.png" alt="image" />
|
||||||
|
</div>
|
||||||
|
<div className="text">
|
||||||
|
<span>15 min ago</span>
|
||||||
|
<h4>Devil Joe</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="comment">
|
||||||
|
<p>Lorem Ipsum is simply dummy text of the printing and typesetting in dustry lorem Ipsum has been the industrys standard dummy text ev er since the when.</p>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<div className="authore_info">
|
||||||
|
<div className="avtar">
|
||||||
|
<img src="assets/images/blog_d03.png" alt="image" />
|
||||||
|
</div>
|
||||||
|
<div className="text">
|
||||||
|
<span>2 days ago</span>
|
||||||
|
<h4>Sherly Shie</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="comment">
|
||||||
|
<p>Lorem Ipsum is simply dummy text of the printing and typesetting in dustry lorem Ipsum has been the in
|
||||||
|
dustrys standard dummy text ev er since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen. </p>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div className="blog_tags">
|
</section>
|
||||||
<a href={process.env.REACT_APP_BLOGSITE}>Visit Blog Site </a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section
|
<section className="row_am comment_form_section">
|
||||||
className="row_am latest_story"
|
<div className="container">
|
||||||
id="blog">
|
<div className="section_title">
|
||||||
<div className="container">
|
<h2>Leave a <span>comment</span></h2>
|
||||||
{/* Latest Title */}
|
<p>Your email address will not be published. Required fields are marked *</p>
|
||||||
<div
|
|
||||||
className="section_title"
|
|
||||||
data-aos="fade-in"
|
|
||||||
data-aos-duration="1500"
|
|
||||||
data-aos-delay="100">
|
|
||||||
<h2>
|
|
||||||
Read latest <span>story</span>
|
|
||||||
</h2>
|
|
||||||
<br />
|
|
||||||
</div>
|
|
||||||
{/* Body */}
|
|
||||||
<div className="row">
|
|
||||||
{blogData.slice(-4, -1).map((item, index) => (
|
|
||||||
<div
|
|
||||||
className="col-md-4"
|
|
||||||
key={index}>
|
|
||||||
<div
|
|
||||||
className="story_box"
|
|
||||||
data-aos="fade-up"
|
|
||||||
data-aos-duration="1500">
|
|
||||||
<div className="story_img">
|
|
||||||
<img
|
|
||||||
src={item.meta_value}
|
|
||||||
alt="image"
|
|
||||||
/>
|
|
||||||
<span>{new Date(item.post_date).toDateString()}</span>
|
|
||||||
</div>
|
|
||||||
<div className="story_text">
|
|
||||||
<h3>{item.post_title}</h3>
|
|
||||||
<div
|
|
||||||
dangerouslySetInnerHTML={{
|
|
||||||
__html: item.post_content.substring(0, 100) + " . . .",
|
|
||||||
}}></div>
|
|
||||||
<a href={`/blogdetails/${item.id}`}>READ MORE</a>
|
|
||||||
{/* <Link to={`/blogdetails/${item.id}`}>READ MORE</Link> */}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<form action="">
|
||||||
))}
|
<div className="row">
|
||||||
</div>
|
<div className="col-md-6">
|
||||||
</div>
|
<div className="form-group">
|
||||||
</section>
|
<input type="text" className="form-control" placeholder="Name *" />
|
||||||
</>
|
</div>
|
||||||
);
|
</div>
|
||||||
};
|
<div className="col-md-6">
|
||||||
|
<div className="form-group">
|
||||||
|
<input type="email" className="form-control" placeholder="Email *" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="col-md-6">
|
||||||
|
<div className="form-group">
|
||||||
|
<input type="text" className="form-control" placeholder="Phone" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="col-md-6">
|
||||||
|
<div className="form-group">
|
||||||
|
<input type="text" className="form-control" placeholder="Website " />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="col-md-12">
|
||||||
|
<div className="form-group">
|
||||||
|
<textarea className="form-control" placeholder="Comments"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="col-md-12 text-center">
|
||||||
|
<button className="btn puprple_btn" type="submit">POST COMMENTS</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</section> */}
|
||||||
|
|
||||||
export default Main;
|
<section className="row_am latest_story" id="blog">
|
||||||
|
<div className="container">
|
||||||
|
<div className="section_title" data-aos="fade-in" data-aos-duration="1500" data-aos-delay="100">
|
||||||
|
<h2>Read latest <span>story</span></h2>
|
||||||
|
<p>Lorem Ipsum is simply dummy text of the printing and typese tting <br/> indus orem Ipsum has beenthe standard dummy.</p>
|
||||||
|
</div>
|
||||||
|
<div className="row">
|
||||||
|
|
||||||
|
{newAllData.map((data) => {
|
||||||
|
|
||||||
|
return (
|
||||||
|
|
||||||
|
<div className="col-md-4">
|
||||||
|
<div className="story_box" data-aos="fade-up" data-aos-duration="1500">
|
||||||
|
<div className="story_img">
|
||||||
|
<img src={data.meta_value} alt="image" />
|
||||||
|
<span>45 min ago</span>
|
||||||
|
</div>
|
||||||
|
<div className="story_text">
|
||||||
|
<h3>{data.post_title}</h3>
|
||||||
|
<div dangerouslySetInnerHTML={{__html: data.post_content.substring(0,300)+' . . .'}}></div>
|
||||||
|
{/* <Link to={`/blog-single/${data.id}`} state={{data}}>
|
||||||
|
READ MORE
|
||||||
|
</Link> */}
|
||||||
|
<Link to={`/blogdetails/${data.id}`} state={{data, allData: blogData}}>
|
||||||
|
READ MORE
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
)})}
|
||||||
|
|
||||||
|
{/* <div className="col-md-4">
|
||||||
|
<div className="story_box" data-aos="fade-up" data-aos-duration="1500">
|
||||||
|
<div className="story_img">
|
||||||
|
<img src="assets/images/story02.png" alt="image" />
|
||||||
|
<span>45 min ago</span>
|
||||||
|
</div>
|
||||||
|
<div className="story_text">
|
||||||
|
<h3>Top rated app! Yupp.</h3>
|
||||||
|
<p>Simply dummy text of the printing and typesetting industry lorem Ipsum has Lorem Ipsum is.</p>
|
||||||
|
<Link to="#">READ MORE</Link>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="col-md-4">
|
||||||
|
<div className="story_box" data-aos="fade-up" data-aos-duration="1500">
|
||||||
|
<div className="story_img">
|
||||||
|
<img src="assets/images/story03.png" alt="image" />
|
||||||
|
<span>45 min ago</span>
|
||||||
|
</div>
|
||||||
|
<div className="story_text">
|
||||||
|
<h3>Creative ideas on app.</h3>
|
||||||
|
<p>Printing and typesetting industry lorem Ipsum has Lorem simply dummy text of the.</p>
|
||||||
|
<Link to="#">READ MORE</Link>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div> */}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Main
|
||||||
@@ -19,7 +19,7 @@ const Main = ({title,tag,bgimg,paragraph,no}) => {
|
|||||||
<ul>
|
<ul>
|
||||||
<li><Link to="/">Home</Link></li>
|
<li><Link to="/">Home</Link></li>
|
||||||
<li><span>»</span></li>
|
<li><span>»</span></li>
|
||||||
<li><Link to="/about">{tag}</Link></li>
|
<li><Link to="#">{tag}</Link></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -39,7 +39,7 @@ const Main = ({title,tag,bgimg,paragraph,no}) => {
|
|||||||
<ul>
|
<ul>
|
||||||
<li><Link to="/">Home</Link></li>
|
<li><Link to="/">Home</Link></li>
|
||||||
<li><span>»</span></li>
|
<li><span>»</span></li>
|
||||||
<li><Link to="/about">{tag}</Link></li>
|
<li><Link to="#">{tag}</Link></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -58,7 +58,7 @@ const Main = ({title,tag,bgimg,paragraph,no}) => {
|
|||||||
<ul>
|
<ul>
|
||||||
<li><Link to="/">Home</Link></li>
|
<li><Link to="/">Home</Link></li>
|
||||||
<li><span>»</span></li>
|
<li><span>»</span></li>
|
||||||
<li><Link to="/about">{tag}</Link></li>
|
<li><Link to="#">{tag}</Link></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -77,7 +77,7 @@ const Main = ({title,tag,bgimg,paragraph,no}) => {
|
|||||||
<ul>
|
<ul>
|
||||||
<li><Link to="/">Home</Link></li>
|
<li><Link to="/">Home</Link></li>
|
||||||
<li><span>»</span></li>
|
<li><span>»</span></li>
|
||||||
<li><Link to="/about">{tag}</Link></li>
|
<li><Link to="#">{tag}</Link></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -96,7 +96,7 @@ const Main = ({title,tag,bgimg,paragraph,no}) => {
|
|||||||
<ul>
|
<ul>
|
||||||
<li><Link to="/">Home</Link></li>
|
<li><Link to="/">Home</Link></li>
|
||||||
<li><span>»</span></li>
|
<li><span>»</span></li>
|
||||||
<li><Link to="/about">{tag}</Link></li>
|
<li><Link to="#">{tag}</Link></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -64,7 +64,9 @@ const Main = ({ brdcum }) => {
|
|||||||
country: "",
|
country: "",
|
||||||
}); //initial state values
|
}); //initial state values
|
||||||
const [countries, setCountries] = useState([]); // initial state for country dropdown
|
const [countries, setCountries] = useState([]); // initial state for country dropdown
|
||||||
|
|
||||||
const [myData, setMyData] = useState(null);
|
const [myData, setMyData] = useState(null);
|
||||||
|
|
||||||
// Gave a generic name for multiple calls
|
// Gave a generic name for multiple calls
|
||||||
const API_CALL = new SiteService(); // instantiating the class
|
const API_CALL = new SiteService(); // instantiating the class
|
||||||
// API CALL
|
// API CALL
|
||||||
@@ -92,10 +94,10 @@ const Main = ({ brdcum }) => {
|
|||||||
setMyData(contact);
|
setMyData(contact);
|
||||||
|
|
||||||
// Checking for errors
|
// Checking for errors
|
||||||
if (contact?.data?.status < 1 || contact?.data?.message_id == "")
|
if (contact?.data?.status < 1 || contact?.data?.message_id == ""){
|
||||||
return (errText.textContent =
|
errText.textContent = "unable to send your message, please try again";
|
||||||
"unable to send your message, please try able");
|
response.innerHTML = `<p> SEND MESSAGE </p>`;
|
||||||
else {
|
}else {
|
||||||
response.innerHTML = `<p> SEND MESSAGE </p>`;
|
response.innerHTML = `<p> SEND MESSAGE </p>`;
|
||||||
|
|
||||||
contact_body.innerHTML = `<div class='contact_body animate pop'>
|
contact_body.innerHTML = `<div class='contact_body animate pop'>
|
||||||
@@ -105,23 +107,19 @@ const Main = ({ brdcum }) => {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
navigate("/");
|
navigate("/");
|
||||||
}, 10000);
|
}, 10000);
|
||||||
|
|
||||||
setValues((prev) => ({ ...prev, [e.target.name]: "" }));
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch(() => {
|
||||||
console.log(error);
|
errText.textContent = "unable to send your message, please try again";
|
||||||
|
response.innerHTML = `<p> SEND MESSAGE </p>`;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
//CALLS THE API AFTER COMPONENT LOADS
|
//CALLS THE API AFTER COMPONENT LOADS
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
allCountry().then((data) => setCountries(Object.values(data.data)));
|
allCountry().then((data) => setCountries(Object.entries(data.data))).catch((err)=>console.log(err.message));
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
myData
|
|
||||||
}, [myData]);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@@ -195,12 +193,12 @@ const Main = ({ brdcum }) => {
|
|||||||
name="name"
|
name="name"
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="Name"
|
placeholder="Name"
|
||||||
errorMessage="Please enter your name"
|
errorMessage="Please enter your first and last name. (e.g: Mark John)"
|
||||||
required={true}
|
required={true}
|
||||||
maxLenght={35}
|
maxLenght={35}
|
||||||
value={values.name}
|
value={values.name}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
pattern="^[A-Za-z]{1,35}$"
|
pattern="^\w+( \w+)$"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<FormInput
|
<FormInput
|
||||||
@@ -221,17 +219,15 @@ const Main = ({ brdcum }) => {
|
|||||||
value={values.country}
|
value={values.country}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
required>
|
required>
|
||||||
<option
|
<option value={""}>
|
||||||
value={""}
|
|
||||||
onCha>
|
|
||||||
Country
|
Country
|
||||||
</option>
|
</option>
|
||||||
{countries.length > 0 &&
|
{countries.length > 0 &&
|
||||||
countries.map((country, index) => (
|
countries.map((country, index) => (
|
||||||
<option
|
<option
|
||||||
key={index}
|
key={index}
|
||||||
value={country}>
|
value={country[0]}>
|
||||||
{country}
|
{country[1]}
|
||||||
</option>
|
</option>
|
||||||
))}
|
))}
|
||||||
</select>
|
</select>
|
||||||
@@ -250,11 +246,10 @@ const Main = ({ brdcum }) => {
|
|||||||
|
|
||||||
<div className="form-group">
|
<div className="form-group">
|
||||||
<textarea
|
<textarea
|
||||||
name="msg"
|
name="message"
|
||||||
className="form-control"
|
className="form-control"
|
||||||
placeholder="Your message"
|
placeholder="Your message"
|
||||||
value={values.msg}
|
value={values.message}
|
||||||
errorMessage='words have exceeded 350 characters!'
|
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
maxLength={300}
|
maxLength={300}
|
||||||
pattern="^[A-Za-z0-9]{5, 300}$"
|
pattern="^[A-Za-z0-9]{5, 300}$"
|
||||||
@@ -282,7 +277,7 @@ const Main = ({ brdcum }) => {
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{/* Error Tag */}
|
{/* Error Tag */}
|
||||||
<p id="errText" />
|
<p id="errText"></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Contact Info */}
|
{/* Contact Info */}
|
||||||
@@ -354,7 +349,9 @@ const Main = ({ brdcum }) => {
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section className="row_am map_section">
|
<section className="row_am map_section">
|
||||||
<div className="container" />
|
<div className="container">
|
||||||
|
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
|
import { HashLink } from 'react-router-hash-link';
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import line from "../../assets/images/anim_line.png";
|
import line from "../../assets/images/anim_line.png";
|
||||||
import blueapp from "../../assets/images/appstore_blue.png";
|
import blueapp from "../../assets/images/appstore_blue.png";
|
||||||
@@ -100,7 +101,7 @@ const Main = ({ footer }) => {
|
|||||||
<Link to="/faq">FAQs</Link>
|
<Link to="/faq">FAQs</Link>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<Link to="/how_it_work">How it works</Link>
|
<HashLink to="/#how_it_work">How it works</HashLink>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<Link to="/terms">Terms & conditions</Link>
|
<Link to="/terms">Terms & conditions</Link>
|
||||||
@@ -237,7 +238,7 @@ const Main = ({ footer }) => {
|
|||||||
<Link to="/faq">FAQs</Link>
|
<Link to="/faq">FAQs</Link>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<Link to="/how_it_work">How it works</Link>
|
<HashLink to="/#how_it_work">How it works</HashLink>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<Link to="/terms">Terms & conditions</Link>
|
<Link to="/terms">Terms & conditions</Link>
|
||||||
@@ -367,7 +368,7 @@ const Main = ({ footer }) => {
|
|||||||
<Link to="#">Support</Link>
|
<Link to="#">Support</Link>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<Link to="/how_it_work">How it works</Link>
|
<HashLink to="/#how_it_work">How it works</HashLink>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<Link to="/terms">Terms & conditions</Link>
|
<Link to="/terms">Terms & conditions</Link>
|
||||||
@@ -492,7 +493,7 @@ const Main = ({ footer }) => {
|
|||||||
<Link to="#">Support</Link>
|
<Link to="#">Support</Link>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<Link to="/how_it_work">How it works</Link>
|
<HashLink to="/#how_it_work">How it works</HashLink>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<Link to="/terms">Terms & conditions</Link>
|
<Link to="/terms">Terms & conditions</Link>
|
||||||
@@ -624,7 +625,7 @@ const Main = ({ footer }) => {
|
|||||||
<Link to="#">Support</Link>
|
<Link to="#">Support</Link>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<Link to="/how_it_work">How it works</Link>
|
<HashLink to="/#how_it_work">How it works</HashLink>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<Link to="/terms">Terms & conditions</Link>
|
<Link to="/terms">Terms & conditions</Link>
|
||||||
|
|||||||
@@ -32,7 +32,8 @@ const Main = () => {
|
|||||||
<h2>Read latest <span>story</span></h2>
|
<h2>Read latest <span>story</span></h2>
|
||||||
</div>
|
</div>
|
||||||
<div className="row">
|
<div className="row">
|
||||||
{blogData.slice(1, 4).map((item, index) => (
|
|
||||||
|
{blogData.slice(1, 4).map((data, index) => (
|
||||||
<div
|
<div
|
||||||
className="col-md-4"
|
className="col-md-4"
|
||||||
key={index}>
|
key={index}>
|
||||||
@@ -42,18 +43,21 @@ const Main = () => {
|
|||||||
data-aos-duration="1500">
|
data-aos-duration="1500">
|
||||||
<div className="story_img">
|
<div className="story_img">
|
||||||
<img
|
<img
|
||||||
src={item.meta_value}
|
src={data.meta_value}
|
||||||
alt="image"
|
alt="image"
|
||||||
/>
|
/>
|
||||||
<span>{new Date(item.post_date).toDateString()}</span>
|
<span>{new Date(data.post_date).toDateString()}</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="story_text">
|
<div className="story_text">
|
||||||
<h3>{item.post_title}</h3>
|
<h3>{data.post_title}</h3>
|
||||||
<div
|
<div
|
||||||
dangerouslySetInnerHTML={{
|
dangerouslySetInnerHTML={{
|
||||||
__html: item.post_content.substring(0, 100) + " . . .",
|
__html: data.post_content.substring(0, 100) + " . . .",
|
||||||
}}></div>
|
}}></div>
|
||||||
<Link to={`/blogdetails/${item.id}`}>READ MORE</Link>
|
<Link to={`/blogdetails/${data.id}`} state={{data, allData: blogData}}>
|
||||||
|
READ MORE
|
||||||
|
</Link>
|
||||||
|
{/* <Link to={`/blogdetails/${item.id}`}>READ MORE</Link> */}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import React , {useState} from 'react'
|
import React , {useState} from 'react'
|
||||||
import { Link } from 'react-router-dom'
|
import { Link } from 'react-router-dom'
|
||||||
import img from '../../../assets/images/download_app1.png'
|
import img from '../../../assets/images/appdownload.png'
|
||||||
import img1 from '../../../assets/images/create_account2.png'
|
import img1 from '../../../assets/images/create_account2.png'
|
||||||
import img2 from '../../../assets/images/enjoy_app01.png'
|
import img2 from '../../../assets/images/download_app1.png'
|
||||||
import line from '../../../assets/images/anim_line.png'
|
import line from '../../../assets/images/anim_line.png'
|
||||||
import banner from '../../../assets/images/banner-shape1.png'
|
import banner from '../../../assets/images/banner-shape1.png'
|
||||||
import banner1 from '../../../assets/images/banner-shape2.png'
|
import banner1 from '../../../assets/images/banner-shape2.png'
|
||||||
@@ -28,8 +28,8 @@ const Main = ({dark}) => {
|
|||||||
<div className="step_text" data-aos="fade-right" data-aos-duration="1500">
|
<div className="step_text" data-aos="fade-right" data-aos-duration="1500">
|
||||||
<h4>Download app</h4>
|
<h4>Download app</h4>
|
||||||
<div className="app_icon">
|
<div className="app_icon">
|
||||||
<Link to={process.env.REACT_APP_ANDROID_URL}><i className="icofont-brand-android-robot"></i></Link>
|
<a href={process.env.REACT_APP_ANDROID_URL}><i className="icofont-brand-android-robot"></i></a>
|
||||||
<Link to={process.env.REACT_APP_IOS_URL}><i className="icofont-brand-apple"></i></Link>
|
<a href={process.env.REACT_APP_IOS_URL}><i className="icofont-brand-apple"></i></a>
|
||||||
</div>
|
</div>
|
||||||
<p>Download App either for Mac or Android</p>
|
<p>Download App either for Mac or Android</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ const Main = ({navbar}) => {
|
|||||||
<Link smooth to="/#features" className="nav-link">Features</Link>
|
<Link smooth to="/#features" className="nav-link">Features</Link>
|
||||||
</li>
|
</li>
|
||||||
<li className="nav-item">
|
<li className="nav-item">
|
||||||
<Link smooth to="#how_it_work" className="nav-link">How it works</Link>
|
<Link smooth to="/#how_it_work" className="nav-link">How it works</Link>
|
||||||
</li>
|
</li>
|
||||||
<li className="nav-item" >
|
<li className="nav-item" >
|
||||||
<Link to="/blog" className="nav-link">Blog</Link>
|
<Link to="/blog" className="nav-link">Blog</Link>
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ import BGImg from "../../../assets/images/bread_crumb_bg.png"
|
|||||||
import BGImg1 from "../../../assets/images/bread_crumb_bg_one.png"
|
import BGImg1 from "../../../assets/images/bread_crumb_bg_one.png"
|
||||||
import BGImg2 from "../../../assets/images/bread_crumb_bg_two.png"
|
import BGImg2 from "../../../assets/images/bread_crumb_bg_two.png"
|
||||||
import Faq from '../../HomeMain/Faq/Main'
|
import Faq from '../../HomeMain/Faq/Main'
|
||||||
|
import screen from '../../../assets/images/download-screen01.png'
|
||||||
|
import screen1 from '../../../assets/images/download-screen02.png'
|
||||||
|
|
||||||
import SiteService from '../../../vendors/service/siteService'
|
import SiteService from '../../../vendors/service/siteService'
|
||||||
|
|
||||||
@@ -31,7 +33,7 @@ const Main = ({brdcum}) => {
|
|||||||
<Bredcrumb
|
<Bredcrumb
|
||||||
no={1}
|
no={1}
|
||||||
title="Have questions? look here"
|
title="Have questions? look here"
|
||||||
paragraph="Lorem Ipsum is simply dummy text of the printing and typesetting"
|
paragraph="Learn more about myFit through answers to frequently asked questions."
|
||||||
tag="Faq"
|
tag="Faq"
|
||||||
bgimg={BGImg}/>}
|
bgimg={BGImg}/>}
|
||||||
|
|
||||||
@@ -39,7 +41,7 @@ const Main = ({brdcum}) => {
|
|||||||
<Bredcrumb
|
<Bredcrumb
|
||||||
no={2}
|
no={2}
|
||||||
title="Have questions? look here"
|
title="Have questions? look here"
|
||||||
paragraph="Lorem Ipsum is simply dummy text of the printing and typesetting"
|
paragraph="Learn more about myFit through answers to frequently asked questions."
|
||||||
tag="Faq"
|
tag="Faq"
|
||||||
bgimg={BGImg1}/>}
|
bgimg={BGImg1}/>}
|
||||||
|
|
||||||
@@ -47,7 +49,7 @@ const Main = ({brdcum}) => {
|
|||||||
<Bredcrumb
|
<Bredcrumb
|
||||||
no={5}
|
no={5}
|
||||||
title="Have questions? look here"
|
title="Have questions? look here"
|
||||||
paragraph="Lorem Ipsum is simply dummy text of the printing and typesetting"
|
paragraph="Learn more about myFit through answers to frequently asked questions."
|
||||||
tag="Faq"
|
tag="Faq"
|
||||||
bgimg={BGImg}/>}
|
bgimg={BGImg}/>}
|
||||||
|
|
||||||
@@ -55,14 +57,14 @@ const Main = ({brdcum}) => {
|
|||||||
<Bredcrumb
|
<Bredcrumb
|
||||||
no={3}
|
no={3}
|
||||||
title="Have questions? look here"
|
title="Have questions? look here"
|
||||||
paragraph="Lorem Ipsum is simply dummy text of the printing and typesetting"
|
paragraph="Learn more about myFit through answers to frequently asked questions."
|
||||||
tag="Faq" />}
|
tag="Faq" />}
|
||||||
|
|
||||||
{brdcum.b4 &&
|
{brdcum.b4 &&
|
||||||
<Bredcrumb
|
<Bredcrumb
|
||||||
no={4}
|
no={4}
|
||||||
title="Have questions? look here"
|
title="Have questions? look here"
|
||||||
paragraph="Lorem Ipsum is simply dummy text of the printing and typesetting"
|
paragraph="Learn more about myFit through answers to frequently asked questions."
|
||||||
tag="Faq"
|
tag="Faq"
|
||||||
bgimg={BGImg2}/>}
|
bgimg={BGImg2}/>}
|
||||||
|
|
||||||
@@ -242,9 +244,13 @@ const Main = ({brdcum}) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="col-md-6">
|
<div className="col-md-6">
|
||||||
<div className="free_img">
|
{/* <div className="free_img">
|
||||||
<img src="assets/images/download-screen01.png" alt="image" />
|
<img src="assets/images/download-screen01.png" alt="image" />
|
||||||
<img className="mobile_mockup" src="assets/images/download-screen02.png" alt="image" />
|
<img className="mobile_mockup" src="assets/images/download-screen02.png" alt="image" />
|
||||||
|
</div> */}
|
||||||
|
<div className="free_img">
|
||||||
|
<img src={screen} alt="image" />
|
||||||
|
<img className="mobile_mockup" src={screen1} alt="image" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ import Bredcrumb from '../../Bredcrumb/Main'
|
|||||||
import BGImg from "../../../assets/images/bread_crumb_bg.png"
|
import BGImg from "../../../assets/images/bread_crumb_bg.png"
|
||||||
import BGImg1 from "../../../assets/images/bread_crumb_bg_one.png"
|
import BGImg1 from "../../../assets/images/bread_crumb_bg_one.png"
|
||||||
import BGImg2 from "../../../assets/images/bread_crumb_bg_two.png"
|
import BGImg2 from "../../../assets/images/bread_crumb_bg_two.png"
|
||||||
|
import screen from '../../../assets/images/download-screen01.png'
|
||||||
|
import screen1 from '../../../assets/images/download-screen02.png'
|
||||||
|
|
||||||
const Main = ({brdcum}) => {
|
const Main = ({brdcum}) => {
|
||||||
|
|
||||||
@@ -343,9 +345,13 @@ const Main = ({brdcum}) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="col-md-6">
|
<div className="col-md-6">
|
||||||
<div className="free_img">
|
{/* <div className="free_img">
|
||||||
<img src="assets/images/download-screen01.png" alt="image" />
|
<img src="assets/images/download-screen01.png" alt="image" />
|
||||||
<img className="mobile_mockup" src="assets/images/download-screen02.png" alt="image" />
|
<img className="mobile_mockup" src="assets/images/download-screen02.png" alt="image" />
|
||||||
|
</div> */}
|
||||||
|
<div className="free_img">
|
||||||
|
<img src={screen} alt="image" />
|
||||||
|
<img className="mobile_mockup" src={screen1} alt="image" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ import BGImg1 from "../../assets/images/bread_crumb_bg_one.png"
|
|||||||
import BGImg2 from "../../assets/images/bread_crumb_bg_two.png"
|
import BGImg2 from "../../assets/images/bread_crumb_bg_two.png"
|
||||||
import blueapp from "../../assets/images/appstore_blue.png";
|
import blueapp from "../../assets/images/appstore_blue.png";
|
||||||
import blue from "../../assets/images/googleplay_blue.png";
|
import blue from "../../assets/images/googleplay_blue.png";
|
||||||
|
import screen from '../../assets/images/download-screen01.png'
|
||||||
|
import screen1 from '../../assets/images/download-screen02.png'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const Main = ({brdcum}) => {
|
const Main = ({brdcum}) => {
|
||||||
@@ -229,9 +232,9 @@ const Main = ({brdcum}) => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="col-md-6">
|
<div className="col-md-6">
|
||||||
<div className="free_img">
|
<div className="free_img">
|
||||||
<img src="assets/images/download-screen01.png" alt="image" />
|
<img src={screen} alt="image" />
|
||||||
<img className="mobile_mockup" src="assets/images/download-screen02.png" alt="image" />
|
<img className="mobile_mockup" src={screen1} alt="image" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import { Route, Routes, useLocation } from "react-router-dom";
|
|||||||
import Navbar from "../component/Navbar/Main";
|
import Navbar from "../component/Navbar/Main";
|
||||||
import Footer from "../component/Footer/Main";
|
import Footer from "../component/Footer/Main";
|
||||||
import Home from "../component/Home/Main";
|
import Home from "../component/Home/Main";
|
||||||
import Work from "../component/HomeMain/Work/Main"
|
|
||||||
import AboutUs from "../component/AboutUs/Main";
|
import AboutUs from "../component/AboutUs/Main";
|
||||||
import Review from "../component/Pages/Review/Main";
|
import Review from "../component/Pages/Review/Main";
|
||||||
import Contact from "../component/Contact/Main";
|
import Contact from "../component/Contact/Main";
|
||||||
@@ -89,7 +88,6 @@ const Routing = () => {
|
|||||||
<Route path="/blogdetails/:id" element={<BlogSingle brdcum={brdcum} />} />
|
<Route path="/blogdetails/:id" element={<BlogSingle brdcum={brdcum} />} />
|
||||||
<Route path="/terms" element={<Terms brdcum={brdcum} />} />
|
<Route path="/terms" element={<Terms brdcum={brdcum} />} />
|
||||||
<Route path="/privacy" element={<Privacy brdcum={brdcum} />} />
|
<Route path="/privacy" element={<Privacy brdcum={brdcum} />} />
|
||||||
<Route path="/how_it_work" element={<Work brdcum={brdcum} />} />
|
|
||||||
|
|
||||||
</Routes>
|
</Routes>
|
||||||
{footerpage && <Footer footer={footer} />}
|
{footerpage && <Footer footer={footer} />}
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ class SiteService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Contact Data{POST}
|
// Contact Data{POST}
|
||||||
contactData() {
|
contactData(value) {
|
||||||
return this.postAuxEnd("/contact", null)
|
return this.postAuxEnd("/contact", value)
|
||||||
}
|
}
|
||||||
|
|
||||||
faqData() {
|
faqData() {
|
||||||
|
|||||||