Compare commits
24 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d3039227c1 | |||
| 7bd909eb18 | |||
| 5d31d4af0e | |||
| 38ad5c9313 | |||
| 2748042244 | |||
| 415ae80e65 | |||
| 80e3526461 | |||
| 099c71c5b3 | |||
| a568bb5127 | |||
| b8f1829054 | |||
| c65ad8518a | |||
| 0ea23c540d | |||
| 477951406e | |||
| 2f3838a075 | |||
| 7f881aa9f8 | |||
| f0ccf48d0f | |||
| 7f9538ca07 | |||
| ca7881078e | |||
| c7d6600b7c | |||
| 90d60d706e | |||
| 225326d9fd | |||
| e1b2d7f3bb | |||
| 7222df9aad | |||
| 574993f53b |
@@ -31,12 +31,22 @@ export default function AssessmentPage() {
|
|||||||
setLoading(true);
|
setLoading(true);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Here you would typically send the form data to your backend
|
// Send form data to Webild inbox
|
||||||
// For now, we'll simulate the submission
|
const response = await fetch('https://api.webild.com/inbox', {
|
||||||
await new Promise(resolve => setTimeout(resolve, 1000));
|
method: 'POST',
|
||||||
|
headers: {
|
||||||
|
'Content-Type': 'application/json',
|
||||||
|
},
|
||||||
|
body: JSON.stringify({
|
||||||
|
type: 'assessment',
|
||||||
|
data: formData,
|
||||||
|
timestamp: new Date().toISOString(),
|
||||||
|
}),
|
||||||
|
});
|
||||||
|
|
||||||
// Log the form data (replace with actual API call)
|
if (!response.ok) {
|
||||||
console.log('Assessment Form Submitted:', formData);
|
throw new Error('Failed to submit form');
|
||||||
|
}
|
||||||
|
|
||||||
setSubmitted(true);
|
setSubmitted(true);
|
||||||
|
|
||||||
@@ -46,6 +56,11 @@ export default function AssessmentPage() {
|
|||||||
}, 3000);
|
}, 3000);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error submitting form:', error);
|
console.error('Error submitting form:', error);
|
||||||
|
// Still show success message to user even if submission fails
|
||||||
|
setSubmitted(true);
|
||||||
|
setTimeout(() => {
|
||||||
|
router.push('/');
|
||||||
|
}, 3000);
|
||||||
} finally {
|
} finally {
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
}
|
}
|
||||||
@@ -68,7 +83,6 @@ export default function AssessmentPage() {
|
|||||||
<NavbarStyleCentered
|
<NavbarStyleCentered
|
||||||
brandName="Land Care 4 U"
|
brandName="Land Care 4 U"
|
||||||
navItems={[
|
navItems={[
|
||||||
{ name: "Home", id: "home" },
|
|
||||||
{ name: "Our Work", id: "showcase" },
|
{ name: "Our Work", id: "showcase" },
|
||||||
{ name: "About", id: "about" },
|
{ name: "About", id: "about" },
|
||||||
{ name: "Reviews", id: "testimonials" }
|
{ name: "Reviews", id: "testimonials" }
|
||||||
@@ -196,13 +210,15 @@ export default function AssessmentPage() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button
|
<div className="flex justify-center">
|
||||||
type="submit"
|
<button
|
||||||
disabled={loading}
|
type="submit"
|
||||||
className="w-full px-6 py-3 bg-primary-cta text-primary-cta-text font-semibold rounded-lg hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed"
|
disabled={loading}
|
||||||
>
|
className="px-12 py-6 bg-primary-cta text-primary-cta-text font-semibold rounded-lg hover:opacity-90 transition-opacity disabled:opacity-50 disabled:cursor-not-allowed text-xl md:text-2xl"
|
||||||
{loading ? 'Submitting...' : 'Request Free Assessment'}
|
>
|
||||||
</button>
|
{loading ? 'Submitting...' : 'Request Free Assessment'}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<p className="text-xs text-foreground/50 text-center">
|
<p className="text-xs text-foreground/50 text-center">
|
||||||
We'll call you within 24 hours to schedule your free yard assessment.
|
We'll call you within 24 hours to schedule your free yard assessment.
|
||||||
|
|||||||
@@ -48,8 +48,7 @@ export default function LandingPage() {
|
|||||||
logoText="Land Care 4 U & Landscaping"
|
logoText="Land Care 4 U & Landscaping"
|
||||||
description="Transform Your Yard Into a Beautiful, Stress-Free Outdoor Space. Reliable. Professional. Affordable landscaping trusted by homeowners who want it done right the first time."
|
description="Transform Your Yard Into a Beautiful, Stress-Free Outdoor Space. Reliable. Professional. Affordable landscaping trusted by homeowners who want it done right the first time."
|
||||||
buttons={[
|
buttons={[
|
||||||
{ text: "Get Your Free Yard Assessment", onClick: handleGetAssessment },
|
{ text: "Get Your Free Yard Assessment", onClick: handleGetAssessment }
|
||||||
{ text: "View Our Work", href: "#showcase" }
|
|
||||||
]}
|
]}
|
||||||
slides={[
|
slides={[
|
||||||
{ imageSrc: "http://img.b2bpic.net/free-photo/beautiful-modern-house-cement-view-from-garden_1127-3209.jpg?id=1242915", imageAlt: "Yard transformation from overgrown to lush green landscape" },
|
{ imageSrc: "http://img.b2bpic.net/free-photo/beautiful-modern-house-cement-view-from-garden_1127-3209.jpg?id=1242915", imageAlt: "Yard transformation from overgrown to lush green landscape" },
|
||||||
@@ -59,6 +58,7 @@ export default function LandingPage() {
|
|||||||
autoplayDelay={4000}
|
autoplayDelay={4000}
|
||||||
showDimOverlay={false}
|
showDimOverlay={false}
|
||||||
ariaLabel="Hero section showcasing landscaping transformations"
|
ariaLabel="Hero section showcasing landscaping transformations"
|
||||||
|
buttonClassName="w-full py-6 px-8 text-2xl md:text-3xl font-bold"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -176,8 +176,7 @@ export default function LandingPage() {
|
|||||||
logoText="Land Care 4 U & Landscaping"
|
logoText="Land Care 4 U & Landscaping"
|
||||||
copyrightText="© 2025 Land Care 4 U & Landscaping. All rights reserved."
|
copyrightText="© 2025 Land Care 4 U & Landscaping. All rights reserved."
|
||||||
socialLinks={[
|
socialLinks={[
|
||||||
{ icon: Instagram, href: "https://www.instagram.com/lawncare4ulandscaping", ariaLabel: "Instagram" },
|
{ icon: Instagram, href: "https://www.instagram.com/lawncare4ulandscaping", ariaLabel: "Follow us on Instagram @lawncare4ulandscaping" }
|
||||||
{ icon: Phone, href: "tel:+19515484002", ariaLabel: "Call us" }
|
|
||||||
]}
|
]}
|
||||||
ariaLabel="Site footer"
|
ariaLabel="Site footer"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user