Compare commits

..

10 Commits

Author SHA1 Message Date
victorAnumudu 44d99f5e20 contact API added 2024-07-16 21:03:11 +01:00
CHIEFSOFT\ameye eb57654d59 No shared 2024-07-12 17:33:37 -04:00
CHIEFSOFT\ameye 0eae8c27a6 no collection 2024-07-12 17:28:14 -04:00
ameye ea33b404a2 Merge branch 'footer-logo-resize' of WrenchBoard/WrenchBoardMainSite into master 2024-06-25 14:39:49 +00:00
victorAnumudu 062f05d342 footer logo resize 2024-06-25 14:21:00 +01:00
ameye 1f1e5f75ca Merge branch 'text-case-adjust' of WrenchBoard/WrenchBoardMainSite into master 2024-06-24 17:35:12 +00:00
victorAnumudu db1576eee1 about revert 2024-06-24 18:11:36 +01:00
victorAnumudu 2e88132fbd Merge master into text-case-adjust 2024-06-24 15:32:06 +01:00
victorAnumudu 1fde70b4df initial commit 2024-06-24 15:25:52 +01:00
ameye 8c938728d7 Merge branch 'blog-item-adjust' of WrenchBoard/WrenchBoardMainSite into master 2024-06-24 13:37:44 +00:00
8 changed files with 99 additions and 47 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

+8 -7
View File
@@ -1,11 +1,12 @@
import Axios from 'axios';
import getConfig from './../Config/config'
import axios from 'axios';
async function ContactData(callData) {
// debugger;
var site = getConfig()[0];
let response = await Axios.post(`${process.env.REACT_APP_AUX_ENDPOINT}/sitecontact`, callData);
return response.data.result;
async function ContactData(reqData) {
let formData = new FormData()
for (let value in reqData) {
formData.append(value, reqData[value]);
}
let response = await axios.post(`${process.env.REACT_APP_AUX_ENDPOINT}/sitecontact`, reqData);
return response;
}
export default ContactData;
+5 -5
View File
@@ -6657,13 +6657,13 @@ blockquote cite {
left: 0;
top: -710px;
height: 645px;
width: 100%;
width: 80vw;
background-image: url(../images/about-us-main.jpg);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
/* @media only screen and (min-width: 992px) and (max-width: 1200px) {
@media only screen and (min-width: 992px) and (max-width: 1200px) {
.appie-about-page-content::before {
width: 94vw;
}
@@ -6672,19 +6672,19 @@ blockquote cite {
.appie-about-page-content::before {
width: 100%;
}
} */
}
@media (max-width: 767px) {
.appie-about-page-content::before {
display: none;
}
}
/* @media only screen and (min-width: 576px) and (max-width: 767px) {
@media only screen and (min-width: 576px) and (max-width: 767px) {
.appie-about-page-content::before {
width: 100%;
height: 400px;
display: block;
}
} */
}
.appie-how-it-work-content > .title {
font-size: 44px;
+1 -1
View File
@@ -5,7 +5,7 @@ function HeroAbout() {
<div className="appie-about-top-title-area">
<div className="container">
<div className="row">
<div className="col-12">
<div className="col-lg-7">
<div className="appie-about-top-title">
<h2 className="title">Plan and reward accomplishment with ease.</h2>
</div>
+83 -32
View File
@@ -1,4 +1,4 @@
import React from 'react';
import React, {useState} from 'react';
import getConfig from './../../Config/config'
import ContactData from '../../Services/ContactData';
@@ -7,34 +7,69 @@ function Forms() {
var site = getConfig()[0];
const [formDetails, setFormDetails] = useState({
first_name: '',
last_name: '',
email: '',
subject: '',
phone_number: '',
action: 1001,
message: '',
channel: 'WEB',
terms_conditions: false
})
const validForm = formDetails.first_name && formDetails.last_name && formDetails.email && formDetails.phone_number && formDetails.subject && formDetails.message
const handleChange = ({target:{name, value}}) => {
setFormDetails(prev => ({...prev, [name]:value}))
}
const [requestStatus, setRequestStatus] = useState({loading:false, status:false, msg:''})
function handleSubmit(e) {
e.preventDefault();
// 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);
e.preventDefault()
setRequestStatus({loading:true, status:false, msg:''})
if(!validForm){
setRequestStatus({loading:false, status:false, msg:'please, fill all fields'})
setTimeout(()=>{
setRequestStatus({loading:false, status:false, msg:''})
},3000)
return
}
var callData = [{
"firstname": firstname,
"lastname": lastname,
"email": email,
"phone": phone,
"subject": subject,
"message": message,
"channel": 'WEB'
}];
delete formDetails.terms_conditions
const callRet = ContactData(callData);
console.log('You clicked submit========> '+ callRet);
}
ContactData(formDetails).then(res =>{
if(res?.data?.result != '100'){
setRequestStatus({loading:false, status:false, msg:'failed to send message'})
setTimeout(()=>{
setRequestStatus({loading:false, status:false, msg:''})
},3000)
return
}
setRequestStatus({loading:false, status:true, msg:'message Sent'})
setTimeout(()=>{
setRequestStatus({loading:false, status:false, msg:''})
setFormDetails({
first_name: '',
last_name: '',
email: '',
subject: '',
phone_number: '',
action: 1001,
message: '',
channel: 'WEB',
terms_conditions: false
})
},3000)
}).catch(err => {
setRequestStatus({loading:false, status:false, msg:'failed something went wrong'})
setTimeout(()=>{
setRequestStatus({loading:false, status:false, msg:''})
},3000)
});
}
return (
@@ -99,10 +134,10 @@ function Forms() {
<h4>Lets Connect</h4>
<form onSubmit={handleSubmit} className="row">
<div className="col-md-6">
<input type="text" name="f-name" placeholder="First Name" maxLength={15} />
<input type="text" name="first_name" placeholder="First Name" maxLength={15} onChange={handleChange} value={formDetails.first_name} />
</div>
<div className="col-md-6">
<input type="text" name="l-name" placeholder="Last Name" maxLength={15} />
<input type="text" name="last_name" placeholder="Last Name" maxLength={15} onChange={handleChange} value={formDetails.last_name} />
</div>
<div className="col-md-6">
<input
@@ -110,36 +145,52 @@ function Forms() {
name="email"
placeholder="Email Address"
maxLength={35}
onChange={handleChange}
value={formDetails.email}
/>
</div>
<div className="col-md-6">
<input
type="number"
name="phone"
name="phone_number"
placeholder="Phone Number"
maxLength={15}
onChange={handleChange}
value={formDetails.phone_number}
/>
</div>
<div className="col-md-12">
<input type="text" name="subject" placeholder="Subject" maxLength={35} />
<input type="text" name="subject" placeholder="Subject" maxLength={35} value={formDetails.subject} onChange={handleChange} />
</div>
<div className="col-md-12">
<textarea
name="message"
placeholder="How can we help?"
onChange={handleChange}
value={formDetails.message}
></textarea>
</div>
<div className="col-md-6">
<div className="condition-check">
<input id="terms-conditions" name="terms-conditions" type="checkbox" />
<input id="terms-conditions" name="terms_conditions" type="checkbox" value={formDetails.terms_conditions} onChange={handleChange} />
<label htmlFor="terms-conditions">
I agree to the <a href="#">Terms & Conditions</a>
</label>
</div>
</div>
<div className="col-md-6 text-right">
<input type="submit" name="submit" value="Send Message" />
<input
type="submit"
value={ requestStatus.loading ? 'Sending...' : 'Send Message'}
disabled={requestStatus.loading}
className={`${!validForm ? 'opacity-25' : 'opacity-100'}`}
/>
</div>
{/* <div className="p-2 col-12">
{requestStatus.msg &&
}
</div> */}
<p className={`p-1 w-100 text-center ${requestStatus.status ? 'text-success' : 'text-danger'}`}>{requestStatus.msg}</p>
</form>
</div>
</div>
+1 -1
View File
@@ -16,7 +16,7 @@ function FooterHomeOne({ className }) {
<div className="footer-about-widget">
<div className="logo">
<a href="#">
<img src={logo} alt="WrenchBoard" loading='eager' width={300} height={65} />
<img src={logo} alt="WrenchBoard" loading='eager' width={175} height={38} />
</a>
</div>
<p>
+1 -1
View File
@@ -13,7 +13,7 @@ export default function Right() {
{/* <div className='px-2 w-100 mb-2'>  */}
<div className='color-purple text-center mb-2'>
{/* <h3 className='color-purple font-25 mb-10'>Ask our <span>&#x275B;&#x275B;<span className='color-blue italic'>wrench</span>Agent&#x275C;&#x275C;</span> Generative AI to assist</h3> */}
<h3 className='color-purple font-25 mb-10'>Ask our &#x275B;&#x275B;<span className='color-blue italic'>Wrench</span><span className='color-purple'>Agent</span>&#x275C;&#x275C; Generative AI to assist</h3>
<h3 className='color-purple font-25 mb-10'>Ask our &#x275B;&#x275B;<span className='color-blue italic'>wrench</span><span className='color-purple'>Agent</span>&#x275C;&#x275C; Generative AI to assist</h3>
<h3 className='font_black font-20 mb-10'>&#x275B;&#x275B;Recommend 4 summer chores for a 12 years old&#x275C;&#x275C;</h3>
</div>
{/* </div> */}