18 Commits

Author SHA1 Message Date
2748042244 Update src/app/assessment/page.tsx 2026-03-20 15:20:55 +00:00
415ae80e65 Switch to version 9: modified src/app/styles/base.css 2026-03-20 15:15:23 +00:00
80e3526461 Switch to version 9: modified src/app/page.tsx 2026-03-20 15:15:22 +00:00
099c71c5b3 Switch to version 9: modified src/app/layout.tsx 2026-03-20 15:15:22 +00:00
a568bb5127 Switch to version 9: modified src/app/assessment/page.tsx 2026-03-20 15:15:22 +00:00
b8f1829054 Merge version_10 into main
Merge version_10 into main
2026-03-20 15:15:11 +00:00
c65ad8518a Update theme fonts 2026-03-20 15:15:07 +00:00
0ea23c540d Update theme fonts 2026-03-20 15:15:07 +00:00
477951406e Merge version_10 into main
Merge version_10 into main
2026-03-20 15:09:24 +00:00
2f3838a075 Update src/app/page.tsx 2026-03-20 15:09:20 +00:00
7f881aa9f8 Update src/app/assessment/page.tsx 2026-03-20 15:09:19 +00:00
f0ccf48d0f Merge version_10 into main
Merge version_10 into main
2026-03-20 15:08:52 +00:00
7f9538ca07 Update src/app/page.tsx 2026-03-20 15:08:48 +00:00
ca7881078e Update src/app/assessment/page.tsx 2026-03-20 15:08:47 +00:00
c7d6600b7c Merge version_9 into main
Merge version_9 into main
2026-03-20 14:25:06 +00:00
90d60d706e Update src/app/page.tsx 2026-03-20 14:25:02 +00:00
225326d9fd Update src/app/assessment/page.tsx 2026-03-20 14:25:02 +00:00
e1b2d7f3bb Merge version_8 into main
Merge version_8 into main
2026-03-20 14:23:20 +00:00
2 changed files with 23 additions and 10 deletions

View File

@@ -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" }

View File

@@ -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" },