Compare commits
8 Commits
version_10
...
version_11
| Author | SHA1 | Date | |
|---|---|---|---|
| 2748042244 | |||
| 415ae80e65 | |||
| 80e3526461 | |||
| 099c71c5b3 | |||
| a568bb5127 | |||
| b8f1829054 | |||
| 477951406e | |||
| f0ccf48d0f |
@@ -31,12 +31,22 @@ export default function AssessmentPage() {
|
||||
setLoading(true);
|
||||
|
||||
try {
|
||||
// Here you would typically send the form data to your backend
|
||||
// For now, we'll simulate the submission
|
||||
await new Promise(resolve => setTimeout(resolve, 1000));
|
||||
|
||||
// Log the form data (replace with actual API call)
|
||||
console.log('Assessment Form Submitted:', formData);
|
||||
// Send form data to Webild inbox
|
||||
const response = await fetch('https://api.webild.com/inbox', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify({
|
||||
type: 'assessment',
|
||||
data: formData,
|
||||
timestamp: new Date().toISOString(),
|
||||
}),
|
||||
});
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error('Failed to submit form');
|
||||
}
|
||||
|
||||
setSubmitted(true);
|
||||
|
||||
@@ -46,6 +56,11 @@ export default function AssessmentPage() {
|
||||
}, 3000);
|
||||
} catch (error) {
|
||||
console.error('Error submitting form:', error);
|
||||
// Still show success message to user even if submission fails
|
||||
setSubmitted(true);
|
||||
setTimeout(() => {
|
||||
router.push('/');
|
||||
}, 3000);
|
||||
} finally {
|
||||
setLoading(false);
|
||||
}
|
||||
@@ -68,7 +83,9 @@ export default function AssessmentPage() {
|
||||
<NavbarStyleCentered
|
||||
brandName="Land Care 4 U"
|
||||
navItems={[
|
||||
{ name: "Our Work", id: "showcase" }
|
||||
{ name: "Our Work", id: "showcase" },
|
||||
{ name: "About", id: "about" },
|
||||
{ name: "Reviews", id: "testimonials" }
|
||||
]}
|
||||
button={{ text: "Back to Home", href: "/" }}
|
||||
/>
|
||||
@@ -211,4 +228,4 @@ export default function AssessmentPage() {
|
||||
</div>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@ import { ServiceWrapper } from "@/components/ServiceWrapper";
|
||||
import Tag from "@/tag/Tag";
|
||||
import { getVisualEditScript } from "@/utils/visual-edit-script";
|
||||
import { Inter_Tight } from "next/font/google";
|
||||
import { Mulish } from "next/font/google";
|
||||
|
||||
|
||||
|
||||
@@ -15,10 +14,9 @@ export const metadata: Metadata = {
|
||||
description: 'Transform your yard into a beautiful outdoor space. Reliable, affordable landscaping trusted by homeowners. Get a free quote today from local experts.',
|
||||
};
|
||||
|
||||
|
||||
const mulish = Mulish({
|
||||
variable: "--font-mulish",
|
||||
subsets: ["latin"],
|
||||
const interTight = Inter_Tight({
|
||||
variable: "--font-inter-tight", subsets: ["latin"],
|
||||
weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
|
||||
});
|
||||
|
||||
export default function RootLayout({
|
||||
@@ -29,7 +27,7 @@ export default function RootLayout({
|
||||
return (
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<ServiceWrapper>
|
||||
<body className={`${mulish.variable} antialiased`}>
|
||||
<body className={`${interTight.variable} antialiased`}>
|
||||
<Tag />
|
||||
{children}
|
||||
<script
|
||||
|
||||
@@ -35,7 +35,9 @@ export default function LandingPage() {
|
||||
<NavbarStyleCentered
|
||||
brandName="Land Care 4 U"
|
||||
navItems={[
|
||||
{ name: "Our Work", id: "showcase" }
|
||||
{ name: "Our Work", id: "showcase" },
|
||||
{ name: "About", id: "about" },
|
||||
{ name: "Reviews", id: "testimonials" }
|
||||
]}
|
||||
button={{ text: "Get Free Quote", onClick: handleGetAssessment }}
|
||||
/>
|
||||
@@ -122,6 +124,23 @@ export default function LandingPage() {
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div id="about" data-section="about">
|
||||
<TestimonialAboutCard
|
||||
tag="Our Story"
|
||||
tagIcon={Heart}
|
||||
tagAnimation="slide-up"
|
||||
title="Meet the Team Behind the Work"
|
||||
description="Led by Juan and his dedicated team, Land Care 4 U & Landscaping is built on hard work, honesty, and real care for every home we touch."
|
||||
subdescription="We don't just show up—we listen, explain, and deliver results that last. Every project is treated with the same pride and attention to detail, regardless of size."
|
||||
icon={Users}
|
||||
imageSrc="http://img.b2bpic.net/premium-photo/landscaper-cut-natural-grass-turfs-size_1426-4787.jpg?id=49630866"
|
||||
imageAlt="Land Care 4 U team"
|
||||
mediaAnimation="slide-up"
|
||||
useInvertedBackground={false}
|
||||
ariaLabel="About our team section"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div id="process" data-section="process">
|
||||
<FeatureCardOne
|
||||
tag="Simple Process"
|
||||
|
||||
@@ -11,7 +11,7 @@ html {
|
||||
body {
|
||||
background-color: var(--background);
|
||||
color: var(--foreground);
|
||||
font-family: var(--font-mulish), sans-serif;
|
||||
font-family: var(--font-inter-tight), sans-serif;
|
||||
position: relative;
|
||||
min-height: 100vh;
|
||||
overscroll-behavior: none;
|
||||
@@ -24,5 +24,5 @@ h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-family: var(--font-mulish), sans-serif;
|
||||
font-family: var(--font-inter-tight), sans-serif;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user