Compare commits
12 Commits
env-variables
...
faq-fix
| Author | SHA1 | Date | |
|---|---|---|---|
| dae969adf3 | |||
| 0e6a4f00b9 | |||
| ded83ed1bb | |||
| 70185d8069 | |||
| 9fba8adc43 | |||
| 2985d27c43 | |||
| 1478578a2e | |||
| b5b97fb04f | |||
| 1617c549f1 | |||
| 752500547f | |||
| 8b9c3fe768 | |||
| f845bcb7aa |
+2
-2
@@ -1,7 +1,7 @@
|
||||
ESLINT_NO_DEV_ERRORS=true
|
||||
|
||||
REACT_APP_AUX_ENDPOINT="https://apigate.lotus.g1.wrenchboard.com/en/wrench/api/v1"
|
||||
REACT_APP_USERS_ENDPOINT="https://apigate.lotus.g1.wrenchboard.com/en/wrench/api/v1"
|
||||
REACT_APP_AUX_ENDPOINT="https://apigate.orion.g1.wrenchboard.com/en/wrench/api/v1"
|
||||
REACT_APP_USERS_ENDPOINT="https://apigate.orion.g1.wrenchboard.com/en/wrench/api/v1"
|
||||
|
||||
REACT_APP_SITE_NAME='WrenchBoard'
|
||||
REACT_APP_DASH_URL='https://users.wrenchboard.com'
|
||||
|
||||
@@ -16,8 +16,8 @@ async function JobsData() {
|
||||
});
|
||||
}
|
||||
*/
|
||||
let response = await Axios.post(process.env.REACT_APP_AUX_ENDPOINT + "/startjoblist", callData);
|
||||
return response.data.result_list;
|
||||
let response = await Axios.post(process.env.REACT_APP_AUX_ENDPOINT+'/startjoblist', callData);
|
||||
return await response;
|
||||
}
|
||||
|
||||
export default JobsData;
|
||||
|
||||
+18
-11
@@ -174,34 +174,36 @@ p {
|
||||
.appie-section-title .appie-title {
|
||||
font-size: 44px;
|
||||
line-height: 54px;
|
||||
color: #08538d;
|
||||
/* color: #08538d; */
|
||||
letter-spacing: 2px;
|
||||
text-shadow: 0px 4px 10px rgba(0,0,0,0.3);
|
||||
}
|
||||
@media only screen and (min-width: 992px) and (max-width: 1200px) {
|
||||
.appie-section-title .appie-title {
|
||||
font-size: 36px;
|
||||
line-height: 46px;
|
||||
color: #08538d;
|
||||
/* color: #08538d; */
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 768px) and (max-width: 991px) {
|
||||
.appie-section-title .appie-title {
|
||||
font-size: 36px;
|
||||
line-height: 46px;
|
||||
color: #08538d;
|
||||
/* color: #08538d; */
|
||||
}
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
.appie-section-title .appie-title {
|
||||
font-size: 26px;
|
||||
line-height: 36px;
|
||||
color: #08538d;
|
||||
/* color: #08538d; */
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 576px) and (max-width: 767px) {
|
||||
.appie-section-title .appie-title {
|
||||
font-size: 36px;
|
||||
line-height: 46px;
|
||||
color: #08538d;
|
||||
/* color: #08538d; */
|
||||
}
|
||||
}
|
||||
.appie-section-title p {
|
||||
@@ -1430,6 +1432,8 @@ p {
|
||||
line-height: 80px;
|
||||
padding: 0 80px;
|
||||
color: #08538d;
|
||||
letter-spacing: 2px;
|
||||
text-shadow: 0px 4px 10px rgba(0,0,0,0.3);
|
||||
}
|
||||
@media only screen and (min-width: 992px) and (max-width: 1200px) {
|
||||
.appie-hero-area.appie-hero-3-area .appie-hero-content .appie-title {
|
||||
@@ -1735,6 +1739,8 @@ p {
|
||||
line-height: 70px;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 22px;
|
||||
letter-spacing: 4.6px;
|
||||
text-shadow: 0px 4px 10px rgba(0,0,0,0.3);
|
||||
}
|
||||
@media only screen and (min-width: 992px) and (max-width: 1200px) {
|
||||
.appie-hero-content .appie-title {
|
||||
@@ -2313,7 +2319,7 @@ p {
|
||||
4.APPIE SERVOCE css
|
||||
===========================*/
|
||||
.appie-service-area {
|
||||
background: #eef1f6;
|
||||
background: #fbf4fe;
|
||||
position: relative;
|
||||
background-position: 92% 100%;
|
||||
background-repeat: no-repeat;
|
||||
@@ -2468,7 +2474,7 @@ p {
|
||||
.appie-single-service-2 {
|
||||
border: 1px solid #eef0f4;
|
||||
border-radius: 10px;
|
||||
padding: 48px;
|
||||
padding: 40px;
|
||||
-webkit-transition: all 0.3s ease-out 0s;
|
||||
-moz-transition: all 0.3s ease-out 0s;
|
||||
-ms-transition: all 0.3s ease-out 0s;
|
||||
@@ -2547,19 +2553,19 @@ p {
|
||||
}
|
||||
.appie-single-service-2.appie-single-service-about {
|
||||
border-radius: 0;
|
||||
padding: 0 90px 30px 0;
|
||||
/* padding: 0 30px 30px 0; */
|
||||
border: 0;
|
||||
transition: all linear 0.3s;
|
||||
}
|
||||
@media only screen and (min-width: 992px) and (max-width: 1200px) {
|
||||
.appie-single-service-2.appie-single-service-about {
|
||||
padding-right: 30px;
|
||||
/* padding-right: 30px; */
|
||||
}
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
.appie-single-service-2.appie-single-service-about {
|
||||
padding-right: 50px;
|
||||
padding-left: 50px;
|
||||
/* padding-right: 50px;
|
||||
padding-left: 50px; */
|
||||
}
|
||||
}
|
||||
.appie-single-service-2.appie-single-service-about .icon i {
|
||||
@@ -3002,6 +3008,7 @@ p {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
z-index: 15;
|
||||
background-color: #fbf4fe;
|
||||
}
|
||||
.appie-traffic-area .traffic-thumb {
|
||||
position: absolute;
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 142 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 58 KiB |
@@ -0,0 +1,72 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
|
||||
const CountDownTimer = ({ targetDate, aboutToExpire=false }) => {
|
||||
const calculateTimeLeft = () => {
|
||||
const difference = +new Date(targetDate) - +new Date();
|
||||
let timeLeft = {};
|
||||
|
||||
if (difference > 0) {
|
||||
timeLeft = {
|
||||
days: Math.floor(difference / (1000 * 60 * 60 * 24)),
|
||||
hours: Math.floor((difference / (1000 * 60 * 60)) % 24),
|
||||
minutes: Math.floor((difference / 1000 / 60) % 60),
|
||||
seconds: Math.floor((difference / 1000) % 60)
|
||||
};
|
||||
}
|
||||
return timeLeft;
|
||||
};
|
||||
|
||||
const [timeLeft, setTimeLeft] = useState(calculateTimeLeft());
|
||||
|
||||
useEffect(() => {
|
||||
const timer = setInterval(() => {
|
||||
setTimeLeft(calculateTimeLeft());
|
||||
}, 1000);
|
||||
|
||||
return () => clearTimeout(timer);
|
||||
},[]);
|
||||
|
||||
const formatTime = (value) => {
|
||||
return value.toString().padStart(2, '0');
|
||||
};
|
||||
|
||||
const { days, hours, minutes, seconds } = timeLeft;
|
||||
|
||||
const newHours = hours+days*24
|
||||
|
||||
if (!days && !hours && !minutes && !seconds) {
|
||||
return <span>{targetDate}</span>;
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div>{formatTime(newHours)} : {formatTime(minutes)} : {formatTime(seconds)}</div>
|
||||
<div>Hrs Min Sec</div>
|
||||
{/* <span className='d-flex flex-column count-timer'>
|
||||
<span>{formatTime(days)}</span>
|
||||
<span>day(s)</span>
|
||||
</span> */}
|
||||
{/* <span className='d-flex flex-column count-timer'>
|
||||
<span>{formatTime(newHours)}</span>
|
||||
<span>hr(s)</span>
|
||||
</span>
|
||||
<span className='p-3'>:</span>
|
||||
<span className='d-flex flex-column count-timer'>
|
||||
<span>{formatTime(minutes)}</span>
|
||||
<span>min(s)</span>
|
||||
</span>
|
||||
<span className='p-3'>:</span>
|
||||
<span className='d-flex flex-column count-timer'>
|
||||
<span>{formatTime(seconds)}</span>
|
||||
<span>sec(s)</span>
|
||||
</span> */}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default CountDownTimer;
|
||||
|
||||
{/* <span>{days && <span>{formatTime(days)} days </span>}</span> */}
|
||||
{/* <span>{hours && <span>{formatTime(hours)} hours </span>}</span> */}
|
||||
{/* <span>{minutes && <span>{formatTime(minutes)} minutes </span>}</span> */}
|
||||
{/* <span>{seconds && <span>{formatTime(seconds)} seconds </span>}</span> */}
|
||||
@@ -4,6 +4,7 @@ import blogTwo from '../../assets/images/blog-2.jpg';
|
||||
import blogThree from '../../assets/images/blog-3.jpg';
|
||||
import JobsData from '../../Services/JobsData';
|
||||
import getConfig from './../../Config/config'
|
||||
import CountDownTimer from '../Helper/CountDownTimer';
|
||||
|
||||
class RecentJobsOne extends Component {
|
||||
|
||||
@@ -15,12 +16,15 @@ class RecentJobsOne extends Component {
|
||||
|
||||
async componentDidMount(){
|
||||
// debugger;
|
||||
const response = await JobsData();
|
||||
this.setState({jobsDataResults:response});
|
||||
JobsData().then(res => {
|
||||
this.setState({jobsDataResults:res.data.result_list});
|
||||
}).catch(err => {
|
||||
console.log('startjoblist error', err)
|
||||
})
|
||||
}
|
||||
|
||||
titleLen(title){
|
||||
let maxl = 58;
|
||||
let maxl = 45;
|
||||
title.replace('/', ' ');
|
||||
title.replace('www.', '');
|
||||
title.replace('.com', '');
|
||||
@@ -62,12 +66,11 @@ titleLen(title){
|
||||
|
||||
return (<div className="col-lg-3 col-md-6">
|
||||
<div
|
||||
className="appie-single-service mt-30 wow animated fadeInUp boxBorder"
|
||||
className="appie-single-service mt-30 wow animated fadeInUp boxBorder d-flex align-items-center"
|
||||
data-wow-duration="3000ms"
|
||||
data-wow-delay="200ms"
|
||||
>
|
||||
|
||||
<div className="content">
|
||||
<div className="content d-flex flex-column justify-content-between align-items-center" style={{height: '260px'}}>
|
||||
<div className="titleBox">
|
||||
<h3 className="title">
|
||||
<a href={dashUrl}>
|
||||
@@ -75,31 +78,25 @@ titleLen(title){
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
|
||||
<div><hr /></div>
|
||||
<div className="blog-meta">
|
||||
<ul>
|
||||
<li className="expire">
|
||||
<a href={dashUrl}><span className='font_red'> Expires : {postDt} </span></a>
|
||||
</li>
|
||||
</ul>
|
||||
<div className='p-0 container-fluid'>
|
||||
<div><hr /></div>
|
||||
<div className="blog-meta">
|
||||
<ul>
|
||||
<li className="expire">
|
||||
{/* <a href={dashUrl}><span className='font_red'> Expires : {postDt} </span></a> */}
|
||||
<a href={dashUrl}><span className='font_red'> Expires : <CountDownTimer targetDate={postDt}/> </span></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div className='lmoreTxt'>
|
||||
<a href={dashUrl}>
|
||||
Learn More <i className="fal fa-arrow-right" />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div className='lmoreTxt'>
|
||||
<a href={dashUrl}>
|
||||
Learn More <i className="fal fa-arrow-right" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>)
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import thumb from '../../assets/images/PerformingTask.jpg';
|
||||
import thumb from '../../assets/images/PerformingTaskNew.png';
|
||||
import getConfig from './../../Config/config'
|
||||
|
||||
function TrafficHomeOne() {
|
||||
|
||||
@@ -41,7 +41,7 @@ function FAQService() {
|
||||
<div className='row'>
|
||||
<div class="col-12 col-lg-6 accordion" id="accordionExample">
|
||||
{faq.map((item, index)=>{
|
||||
if(index%2 == 0){
|
||||
if(index%2 == 0 && item.public != 0){
|
||||
return(
|
||||
<div key={index} className='my-3'>
|
||||
<Accordion name={`faq${index}`} datas={item} accordionHandler={accordionHandler} isOpen={isOpen} />
|
||||
@@ -52,7 +52,7 @@ function FAQService() {
|
||||
</div>
|
||||
<div class="col-12 col-lg-6 accordion" id="accordionExample">
|
||||
{faq.map((item, index)=>{
|
||||
if(index%2 != 0){
|
||||
if(index%2 != 0 && item.public != 0){
|
||||
return(
|
||||
<div key={index} className='my-3'>
|
||||
<Accordion name={`faq${index}`} datas={item} accordionHandler={accordionHandler} isOpen={isOpen} />
|
||||
|
||||
@@ -8,6 +8,7 @@ import Drawer from '../Mobile/Drawer';
|
||||
import DetailsService from './DetailsService';
|
||||
import HeaderService from './HeaderService';
|
||||
import HeroService from './HeroService';
|
||||
import HeroNews from '../News/HeroNews';
|
||||
|
||||
function Service() {
|
||||
useEffect(() => {
|
||||
@@ -18,7 +19,14 @@ function Service() {
|
||||
<>
|
||||
<Drawer drawer={drawer} action={drawerAction.toggle} />
|
||||
<HeaderService action={drawerAction.toggle} />
|
||||
<HeroService title="Our Service to you" />
|
||||
{/* <HeroService title="Our Service to you" /> */}
|
||||
<HeroNews
|
||||
title="Services"
|
||||
breadcrumb={[
|
||||
{ link: '/', title: 'home' },
|
||||
{ link: '/service', title: 'Service' },
|
||||
]}
|
||||
/>
|
||||
<DetailsService />
|
||||
{/*<ProjectHomeOne />*/}
|
||||
<FooterHomeOne />
|
||||
|
||||
Reference in New Issue
Block a user