32 Commits

Author SHA1 Message Date
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
7222df9aad Update src/app/page.tsx 2026-03-20 14:23:16 +00:00
574993f53b Merge version_7 into main
Merge version_7 into main
2026-03-20 14:14:49 +00:00
0a21bc8426 Update src/app/page.tsx 2026-03-20 14:14:45 +00:00
75a4fcaf51 Add src/app/assessment/page.tsx 2026-03-20 14:14:45 +00:00
9eceea60ef Merge version_6 into main
Merge version_6 into main
2026-03-20 14:12:04 +00:00
081b7c73ba Update src/app/page.tsx 2026-03-20 14:12:00 +00:00
683e98ab18 Merge version_5 into main
Merge version_5 into main
2026-03-20 14:07:08 +00:00
655485f668 Update src/app/page.tsx 2026-03-20 14:06:58 +00:00
863ecaa262 Merge version_4 into main
Merge version_4 into main
2026-03-20 14:03:18 +00:00
c1e8273f9e Update src/app/page.tsx 2026-03-20 14:03:13 +00:00
50e17f8f33 Merge version_3 into main
Merge version_3 into main
2026-03-20 14:01:15 +00:00
2 changed files with 247 additions and 85 deletions

233
src/app/assessment/page.tsx Normal file
View File

@@ -0,0 +1,233 @@
"use client";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import { useState } from 'react';
import { useRouter } from 'next/navigation';
export default function AssessmentPage() {
const router = useRouter();
const [formData, setFormData] = useState({
name: '',
email: '',
phone: '',
address: '',
yardSize: '',
description: ''
});
const [submitted, setSubmitted] = useState(false);
const [loading, setLoading] = useState(false);
const handleChange = (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => {
const { name, value } = e.target;
setFormData(prev => ({
...prev,
[name]: value
}));
};
const handleSubmit = async (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault();
setLoading(true);
try {
// 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);
// Reset form after 3 seconds and redirect
setTimeout(() => {
router.push('/');
}, 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);
}
};
return (
<ThemeProvider
defaultButtonVariant="hover-bubble"
defaultTextAnimation="entrance-slide"
borderRadius="pill"
contentWidth="mediumSmall"
sizing="largeSmall"
background="noise"
cardStyle="inset"
primaryButtonStyle="flat"
secondaryButtonStyle="radial-glow"
headingFontWeight="bold"
>
<div id="nav" data-section="nav">
<NavbarStyleCentered
brandName="Land Care 4 U"
navItems={[
{ name: "Our Work", id: "showcase" },
{ name: "About", id: "about" },
{ name: "Reviews", id: "testimonials" }
]}
button={{ text: "Back to Home", href: "/" }}
/>
</div>
<div className="min-h-screen bg-gradient-to-b from-background to-card py-12 px-4 md:px-8">
<div className="max-w-2xl mx-auto">
{submitted ? (
<div className="text-center py-12">
<h2 className="text-3xl md:text-4xl font-bold text-foreground mb-4">Thank You!</h2>
<p className="text-lg text-foreground/70 mb-4">
We've received your yard assessment request. Our team will contact you shortly at {formData.phone}.
</p>
<p className="text-sm text-foreground/50">Redirecting to home...</p>
</div>
) : (
<div className="bg-card rounded-lg p-8 md:p-12 shadow-lg">
<h1 className="text-3xl md:text-4xl font-bold text-foreground mb-2">Free Yard Assessment</h1>
<p className="text-foreground/70 mb-8">
Tell us about your yard and we'll contact you to schedule your free assessment.
</p>
<form onSubmit={handleSubmit} className="space-y-6">
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label htmlFor="name" className="block text-sm font-medium text-foreground mb-2">
Full Name *
</label>
<input
type="text"
id="name"
name="name"
value={formData.name}
onChange={handleChange}
required
className="w-full px-4 py-3 rounded-lg border border-accent bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary-cta"
placeholder="John Doe"
/>
</div>
<div>
<label htmlFor="email" className="block text-sm font-medium text-foreground mb-2">
Email Address *
</label>
<input
type="email"
id="email"
name="email"
value={formData.email}
onChange={handleChange}
required
className="w-full px-4 py-3 rounded-lg border border-accent bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary-cta"
placeholder="john@example.com"
/>
</div>
</div>
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
<div>
<label htmlFor="phone" className="block text-sm font-medium text-foreground mb-2">
Phone Number *
</label>
<input
type="tel"
id="phone"
name="phone"
value={formData.phone}
onChange={handleChange}
required
className="w-full px-4 py-3 rounded-lg border border-accent bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary-cta"
placeholder="(555) 123-4567"
/>
</div>
<div>
<label htmlFor="address" className="block text-sm font-medium text-foreground mb-2">
Address *
</label>
<input
type="text"
id="address"
name="address"
value={formData.address}
onChange={handleChange}
required
className="w-full px-4 py-3 rounded-lg border border-accent bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary-cta"
placeholder="123 Main St, City, State"
/>
</div>
</div>
<div>
<label htmlFor="yardSize" className="block text-sm font-medium text-foreground mb-2">
Approximate Yard Size
</label>
<select
id="yardSize"
name="yardSize"
value={formData.yardSize}
onChange={handleChange}
className="w-full px-4 py-3 rounded-lg border border-accent bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary-cta"
>
<option value="">Select yard size...</option>
<option value="small">Small (Under 1/4 acre)</option>
<option value="medium">Medium (1/4 - 1/2 acre)</option>
<option value="large">Large (1/2 - 1 acre)</option>
<option value="xlarge">Extra Large (Over 1 acre)</option>
</select>
</div>
<div>
<label htmlFor="description" className="block text-sm font-medium text-foreground mb-2">
Tell us about your yard and what you'd like to improve *
</label>
<textarea
id="description"
name="description"
value={formData.description}
onChange={handleChange}
required
rows={5}
className="w-full px-4 py-3 rounded-lg border border-accent bg-background text-foreground focus:outline-none focus:ring-2 focus:ring-primary-cta"
placeholder="Describe any issues, your vision for your yard, budget concerns, timeline, etc."
/>
</div>
<div className="flex justify-center">
<button
type="submit"
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>
</div>
<p className="text-xs text-foreground/50 text-center">
We'll call you within 24 hours to schedule your free yard assessment.
</p>
</form>
</div>
)}
</div>
</div>
</ThemeProvider>
);
}

View File

@@ -3,15 +3,21 @@
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered'; import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroCarouselLogo from '@/components/sections/hero/heroCarouselLogo/HeroCarouselLogo'; import HeroCarouselLogo from '@/components/sections/hero/heroCarouselLogo/HeroCarouselLogo';
import FeatureCardOne from '@/components/sections/feature/FeatureCardOne';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import MetricCardEleven from '@/components/sections/metrics/MetricCardEleven'; import MetricCardEleven from '@/components/sections/metrics/MetricCardEleven';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne'; import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import TestimonialAboutCard from '@/components/sections/about/TestimonialAboutCard'; import TestimonialAboutCard from '@/components/sections/about/TestimonialAboutCard';
import FeatureCardOne from '@/components/sections/feature/FeatureCardOne';
import FooterCard from '@/components/sections/footer/FooterCard'; import FooterCard from '@/components/sections/footer/FooterCard';
import { Sparkles, Leaf, ImageIcon, Star, Heart, CheckCircle, Facebook, Instagram, Phone, Users } from 'lucide-react'; import { Sparkles, Star, Heart, CheckCircle, Instagram, Phone, Users, ImageIcon } from 'lucide-react';
import { useRouter } from 'next/navigation';
export default function LandingPage() { export default function LandingPage() {
const router = useRouter();
const handleGetAssessment = () => {
router.push('/assessment');
};
return ( return (
<ThemeProvider <ThemeProvider
defaultButtonVariant="hover-bubble" defaultButtonVariant="hover-bubble"
@@ -29,12 +35,11 @@ export default function LandingPage() {
<NavbarStyleCentered <NavbarStyleCentered
brandName="Land Care 4 U" brandName="Land Care 4 U"
navItems={[ navItems={[
{ name: "Services", id: "services" },
{ 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" }
]} ]}
button={{ text: "Get Free Quote", href: "#contact" }} button={{ text: "Get Free Quote", onClick: handleGetAssessment }}
/> />
</div> </div>
@@ -43,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 a Free Quote", href: "#contact" }, { 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" },
@@ -54,80 +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 id="why-choose-us" data-section="why-choose-us">
<FeatureCardOne
tag="Why Choose Us"
tagIcon={Sparkles}
tagAnimation="slide-up"
title="Landscaping Done With Care, Precision, and Pride"
description="We transform outdoor spaces with expertise, honesty, and genuine care. Every project reflects our commitment to excellence and customer satisfaction."
features={[
{
title: "Complete Transformations", description: "From dirt and weeds to lush, healthy lawns. We handle projects of any size with professionalism and attention to detail.", imageSrc: "http://img.b2bpic.net/free-vector/landscape-gardens-design-infographics-report_1284-5947.jpg?_wi=1", imageAlt: "Beautiful professional garden landscape design"
},
{
title: "Fast & Reliable Service", description: "Next-day or same-week availability. We respect your time and deliver results when we promise them.", imageSrc: "http://img.b2bpic.net/free-photo/close-up-strong-man-gloves-cutting-leaves-his-garden-farmer-spending-summer-morning-working-garden-near-countryside-house_176420-19902.jpg?id=9696898", imageAlt: "Professional landscaper maintaining green lawn"
},
{
title: "Honest & Transparent", description: "We walk you through everything before we start. No surprises, no hidden costs—just straightforward, quality work.", imageSrc: "http://img.b2bpic.net/free-photo/view-water-tank-storage_23-2151748218.jpg?_wi=1", imageAlt: "Professional irrigation system installation"
},
{
title: "Above & Beyond Care", description: "We don't just finish the job—we make sure it lasts. Your satisfaction is our priority.", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-shot-empty-park-with-blooming-green-trees-walls_181624-19632.jpg?_wi=1", imageAlt: "Professional hardscape and patio installation"
},
{
title: "Affordable, Fair Pricing", description: "Premium results without overpriced quotes. We believe great landscaping should be accessible.", imageSrc: "http://img.b2bpic.net/premium-photo/price-symbol-price-concept-price-wording-increasing-wooden-block-coins-stacking_184421-3960.jpg?id=388981837", imageAlt: "Professional landscaping service"
},
{
title: "Versatile Services", description: "From lawn care to gutters, roses, and hardscaping. Your trusted partner for all outdoor needs.", imageSrc: "http://img.b2bpic.net/free-vector/landscape-gardens-design-infographics-report_1284-5947.jpg?_wi=2", imageAlt: "Comprehensive landscaping services"
}
]}
gridVariant="three-columns-all-equal-width"
animationType="slide-up"
textboxLayout="default"
useInvertedBackground={false}
buttons={[{ text: "Request Your Custom Plan", href: "#contact" }]}
buttonAnimation="slide-up"
ariaLabel="Why choose us feature section"
/>
</div>
<div id="services" data-section="services">
<ProductCardThree
title="Everything Your Yard Needs — Done Right"
description="Complete landscaping solutions tailored to your property and lifestyle. From routine maintenance to complete transformations."
tag="Our Services"
tagIcon={Leaf}
tagAnimation="slide-up"
gridVariant="three-columns-all-equal-width"
animationType="slide-up"
textboxLayout="default"
useInvertedBackground={false}
products={[
{
id: "lawn-care", name: "Lawn & Yard Services", price: "Weekly or Bi-Weekly", imageSrc: "http://img.b2bpic.net/free-photo/male-hands-cutting-bushes-with-big-scissors_651396-1549.jpg?id=26767874", imageAlt: "Professional lawn maintenance service"
},
{
id: "irrigation", name: "Irrigation & Lawn Health", price: "Custom Quotes", imageSrc: "http://img.b2bpic.net/free-photo/view-water-tank-storage_23-2151748218.jpg?_wi=2", imageAlt: "Professional irrigation system installation"
},
{
id: "landscaping", name: "Landscaping & Design", price: "Project-Based", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-shot-empty-park-with-blooming-green-trees-walls_181624-19632.jpg?_wi=2", imageAlt: "Professional hardscape and garden design"
},
{
id: "specialty", name: "Specialty Services", price: "On Request", imageSrc: "http://img.b2bpic.net/free-photo/worker-is-cutting-grass-with-hose_7502-9835.jpg?id=66860580", imageAlt: "Specialty landscaping services"
},
{
id: "maintenance", name: "Ongoing Maintenance", price: "Seasonal Plans", imageSrc: "http://img.b2bpic.net/free-photo/close-up-picture-hand-holding-wooden-tray-which-full-pots-plants_1150-26606.jpg?id=10401277", imageAlt: "Ongoing yard maintenance service"
},
{
id: "consultation", name: "Consultation & Planning", price: "Free Assessment", imageSrc: "http://img.b2bpic.net/free-photo/quality-control-inspector-worker-talking-while-going-through-list-plants-greenhouse_637285-1670.jpg?id=25624237", imageAlt: "Free landscaping consultation and planning"
}
]}
buttons={[{ text: "Request Your Custom Plan", href: "#contact" }]}
buttonAnimation="slide-up"
ariaLabel="Services and products section"
/> />
</div> </div>
@@ -245,9 +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: Facebook, href: "https://facebook.com", ariaLabel: "Facebook" }, { icon: Instagram, href: "https://www.instagram.com/lawncare4ulandscaping", ariaLabel: "Follow us on Instagram @lawncare4ulandscaping" }
{ icon: Instagram, href: "https://instagram.com", ariaLabel: "Instagram" },
{ icon: Phone, href: "tel:+1234567890", ariaLabel: "Call us" }
]} ]}
ariaLabel="Site footer" ariaLabel="Site footer"
/> />