diff --git a/src/Routes.js b/src/Routes.js index 3e11ec3..8abded2 100644 --- a/src/Routes.js +++ b/src/Routes.js @@ -9,8 +9,8 @@ import ScrollToTop from './components/Helper/ScrollToTop'; // import HomeFive from './components/HomeFive'; // import HomeFour from './components/HomeFour'; import HomeOne from './components/HomeOne'; -// import HomeSeven from './components/HomeSeven'; -// import HomeSix from './components/HomeSix'; +import HomeSeven from './components/HomeSeven'; +import HomeSix from './components/HomeSix'; // import HomeThree from './components/HomeThree'; // import Hometwo from './components/HomeTwo'; import News from './components/News'; @@ -43,6 +43,8 @@ function Routes() { + {/**/} + diff --git a/src/assets/css/style.css b/src/assets/css/style.css index 60e1102..571c45a 100644 --- a/src/assets/css/style.css +++ b/src/assets/css/style.css @@ -5,6 +5,12 @@ justify-content: center; align-items: center; } +.title_hero{ + font-size: 20px !important; + color: black !important; + +} + .font_black{ color: black; } diff --git a/src/components/Contact/Forms.js b/src/components/Contact/Forms.js index 0aff5e7..309e6be 100644 --- a/src/components/Contact/Forms.js +++ b/src/components/Contact/Forms.js @@ -50,12 +50,12 @@ function Forms() {
Headquaters

- {process.env.REACT_APP_SUPPORT_US_ADDRESS} + {process.env.REACT_APP_SUPPORT_NG_ADDRESS}

- {process.env.REACT_APP_SUPPORT_NG_ADDRESS} + {process.env.REACT_APP_SUPPORT_US_ADDRESS}

@@ -63,9 +63,9 @@ function Forms() {
Phone

- {process.env.REACT_APP_SUPPORT_PHONE} + {process.env.REACT_APP_SUPPORT_PHONE_NG}
- {process.env.REACT_APP_SUPPORT_PHONE_NG} + {process.env.REACT_APP_SUPPORT_PHONE}

diff --git a/src/components/HomeOne/CurrentJobsHero.js b/src/components/HomeOne/CurrentJobsHero.js new file mode 100644 index 0000000..c254e19 --- /dev/null +++ b/src/components/HomeOne/CurrentJobsHero.js @@ -0,0 +1,133 @@ +import React, { Component } from 'react'; +import blogOne from '../../assets/images/blog-1.jpg'; +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 CurrentJobsHero extends Component { + + constructor() { + // debugger; + super(); + this.state = { jobsDataResults: [] }; + } + + async componentDidMount(){ + // debugger; + JobsData().then(res => { + this.setState({jobsDataResults:res.data.result_list}); + }).catch(err => { + console.log('startjoblist error', err) + }) + } + + titleLen(title){ + let maxl = 45; + title.replace('/', ' '); + title.replace('www.', ''); + title.replace('.com', ''); + title.replace('http//', ''); + + return (title.length > maxl)? title.substring(0,maxl-2)+'...': title; + } + // if (jobsDataResults ()== null){ + // return null; + // } + render() { + var site = getConfig()[0]; + if ( this.state.jobsDataResults== undefined ){ + return null; + } + var dashUrl = process.env.REACT_APP_DASH_URL; + + if (this.state.jobsDataResults.length == 0){ + return <>; + } + + return ( + <> +
+
+
+ + { + this.state.jobsDataResults.map(i => { + var options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }; + var postDt = new Date(i.expire).toLocaleDateString("en-US", options); + + return (
+ + +
) + + + }) + } + + + + +
+
+
+ + ); + } +} + +export default CurrentJobsHero; \ No newline at end of file diff --git a/src/components/HomeOne/HomeNigeria.js b/src/components/HomeOne/HomeNigeria.js new file mode 100644 index 0000000..9e5cc45 --- /dev/null +++ b/src/components/HomeOne/HomeNigeria.js @@ -0,0 +1,57 @@ +import React from 'react'; +import heroThumb from '../../assets/images/hero-thumb-7.png'; +import CurrentJobsHero from "./CurrentJobsHero"; + +function HomeNigeria() { + return ( + <> +
+
+
+
+ {/*
*/} + {/* */} + {/* */} + {/*
*/} + {/*
*/} + +
+
+
+ {/*Welcome To Creative App.*/} +

Pick any task and tart earning .

+

+ The Marketplace platform to earn money with your skills, find, buy and sell professional services. +

+ +
+
+
+
+ + + ); +} + +export default HomeNigeria; diff --git a/src/components/HomeOne/index.js b/src/components/HomeOne/index.js index 99a7ae8..1b9518f 100644 --- a/src/components/HomeOne/index.js +++ b/src/components/HomeOne/index.js @@ -17,6 +17,7 @@ import TestimonialHomeOne from './TestimonialHomeOne'; import TrafficHomeTwo from './TrafficHomeTwo'; import WrenchBoardHome from './WrenchBoardHome'; import RecentJobsOne from './RecentJobsOne'; +import HomeNigeria from "./HomeNigeria"; //import BlogData from './../../Services/BlogData'; function HomeOne() { @@ -27,7 +28,8 @@ function HomeOne() { <> - + + {/**/}