current job list overflow fixed and count down added

This commit was merged in pull request #10.
This commit is contained in:
victorAnumudu
2023-06-27 23:40:32 +01:00
parent 752500547f
commit 1617c549f1
4 changed files with 100 additions and 30 deletions
+24 -27
View File
@@ -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>)