From 4d63d335859207d48ecc1afd4e07a1fbb813bd66 Mon Sep 17 00:00:00 2001 From: dev-chiefworks Date: Sat, 25 Jun 2022 17:41:35 -0400 Subject: [PATCH] Fix home strings --- src/Services/ContactData.js | 3 ++- src/assets/css/main.css | 4 +-- src/components/Contact/Forms.js | 36 ++++++++++++++++++------- src/components/HomeOne/FooterHomeOne.js | 2 +- src/components/HomeOne/RecentJobsOne.js | 11 +++++++- 5 files changed, 41 insertions(+), 15 deletions(-) diff --git a/src/Services/ContactData.js b/src/Services/ContactData.js index 5d07526..7e68b8b 100644 --- a/src/Services/ContactData.js +++ b/src/Services/ContactData.js @@ -2,9 +2,10 @@ import Axios from 'axios'; import getConfig from './../Config/config' async function ContactData(callData) { + // debugger; var site = getConfig()[0]; let response = await Axios.post(site.user_service_endpoint + "/sitecontact", callData); - return response.data.result_list; + return response.data.result; } export default ContactData; \ No newline at end of file diff --git a/src/assets/css/main.css b/src/assets/css/main.css index 0dbe738..053d61e 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -2199,7 +2199,7 @@ p { } .appie-page-title-area { - height: 450px; + height: 400px; background-image: url(../images/service-back.jpg); background-size: cover; background-position: center; @@ -2208,7 +2208,7 @@ p { align-items: center; } .appie-page-title-area.appie-page-service-title-area { - height: 450px; + height: 400px; background-image: url(../images/service-back.jpg); } @media only screen and (min-width: 768px) and (max-width: 991px) { diff --git a/src/components/Contact/Forms.js b/src/components/Contact/Forms.js index 0638084..328a965 100644 --- a/src/components/Contact/Forms.js +++ b/src/components/Contact/Forms.js @@ -1,5 +1,7 @@ import React from 'react'; import getConfig from './../../Config/config' +import ContactData from '../../Services/ContactData'; + function Forms() { @@ -7,18 +9,30 @@ function Forms() { function handleSubmit(e) { e.preventDefault(); - console.log('You clicked submit.'); - console.log(e); - debugger; + // console.log('You clicked submit.'); + // console.log(e); + // debugger; const firstname = e.target['f-name'].value; const lastname = e.target['l-name'].value; const email = e.target['email'].value; - const phone = e.target['phone'].value; const subject = e.target['subject'].value; const message = e.target['message'].value; const terms = e.target['terms-conditions'].checked; -alert(terms); +//alert(terms); + + var callData = [{ + "firstname": firstname, + "lastname": lastname, + "email": email, + "phone": phone, + "subject": subject, + "message": message, + "channel": 'WEB' + }]; + + const callRet = ContactData(callData); + console.log('You clicked submit========> '+ callRet); } @@ -84,27 +98,29 @@ alert(terms);

Let’s Connect

- +
- +
- +