22 Commits

Author SHA1 Message Date
d3039227c1 Merge version_12 into main
Merge version_12 into main
2026-03-20 18:10:46 +00:00
7bd909eb18 Update src/app/page.tsx 2026-03-20 18:10:42 +00:00
5d31d4af0e Update src/app/assessment/page.tsx 2026-03-20 18:10:41 +00:00
38ad5c9313 Merge version_11 into main
Merge version_11 into main
2026-03-20 15:21:00 +00:00
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 32 additions and 16 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" }
@@ -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.

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