Compare commits
15 Commits
version_6
...
version_10
| Author | SHA1 | Date | |
|---|---|---|---|
| c65ad8518a | |||
| 0ea23c540d | |||
| 2f3838a075 | |||
| 7f881aa9f8 | |||
| 7f9538ca07 | |||
| ca7881078e | |||
| c7d6600b7c | |||
| 90d60d706e | |||
| 225326d9fd | |||
| e1b2d7f3bb | |||
| 7222df9aad | |||
| 574993f53b | |||
| 0a21bc8426 | |||
| 75a4fcaf51 | |||
| 9eceea60ef |
214
src/app/assessment/page.tsx
Normal file
214
src/app/assessment/page.tsx
Normal file
@@ -0,0 +1,214 @@
|
||||
"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 {
|
||||
// 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);
|
||||
|
||||
setSubmitted(true);
|
||||
|
||||
// Reset form after 3 seconds and redirect
|
||||
setTimeout(() => {
|
||||
router.push('/');
|
||||
}, 3000);
|
||||
} catch (error) {
|
||||
console.error('Error submitting form:', error);
|
||||
} 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" }
|
||||
]}
|
||||
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>
|
||||
|
||||
<button
|
||||
type="submit"
|
||||
disabled={loading}
|
||||
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"
|
||||
>
|
||||
{loading ? 'Submitting...' : 'Request Free Assessment'}
|
||||
</button>
|
||||
|
||||
<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>
|
||||
);
|
||||
}
|
||||
@@ -6,6 +6,7 @@ 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";
|
||||
|
||||
|
||||
|
||||
@@ -14,9 +15,10 @@ 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 interTight = Inter_Tight({
|
||||
variable: "--font-inter-tight", subsets: ["latin"],
|
||||
weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
|
||||
|
||||
const mulish = Mulish({
|
||||
variable: "--font-mulish",
|
||||
subsets: ["latin"],
|
||||
});
|
||||
|
||||
export default function RootLayout({
|
||||
@@ -27,7 +29,7 @@ export default function RootLayout({
|
||||
return (
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<ServiceWrapper>
|
||||
<body className={`${interTight.variable} antialiased`}>
|
||||
<body className={`${mulish.variable} antialiased`}>
|
||||
<Tag />
|
||||
{children}
|
||||
<script
|
||||
|
||||
@@ -9,8 +9,15 @@ import TestimonialAboutCard from '@/components/sections/about/TestimonialAboutCa
|
||||
import FeatureCardOne from '@/components/sections/feature/FeatureCardOne';
|
||||
import FooterCard from '@/components/sections/footer/FooterCard';
|
||||
import { Sparkles, Star, Heart, CheckCircle, Instagram, Phone, Users, ImageIcon } from 'lucide-react';
|
||||
import { useRouter } from 'next/navigation';
|
||||
|
||||
export default function LandingPage() {
|
||||
const router = useRouter();
|
||||
|
||||
const handleGetAssessment = () => {
|
||||
router.push('/assessment');
|
||||
};
|
||||
|
||||
return (
|
||||
<ThemeProvider
|
||||
defaultButtonVariant="hover-bubble"
|
||||
@@ -28,11 +35,9 @@ export default function LandingPage() {
|
||||
<NavbarStyleCentered
|
||||
brandName="Land Care 4 U"
|
||||
navItems={[
|
||||
{ name: "Our Work", id: "showcase" },
|
||||
{ name: "About", id: "about" },
|
||||
{ name: "Reviews", id: "testimonials" }
|
||||
{ name: "Our Work", id: "showcase" }
|
||||
]}
|
||||
button={{ text: "Get Free Quote", href: "#contact" }}
|
||||
button={{ text: "Get Free Quote", onClick: handleGetAssessment }}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -41,8 +46,7 @@ export default function LandingPage() {
|
||||
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."
|
||||
buttons={[
|
||||
{ text: "Get Your Free Yard Assessment", href: "#contact" },
|
||||
{ text: "View Our Work", href: "#showcase" }
|
||||
{ text: "Get Your Free Yard Assessment", onClick: handleGetAssessment }
|
||||
]}
|
||||
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" },
|
||||
@@ -118,23 +122,6 @@ 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"
|
||||
@@ -169,8 +156,7 @@ export default function LandingPage() {
|
||||
logoText="Land Care 4 U & Landscaping"
|
||||
copyrightText="© 2025 Land Care 4 U & Landscaping. All rights reserved."
|
||||
socialLinks={[
|
||||
{ icon: Instagram, href: "https://instagram.com/lawncare4ulandscaping", ariaLabel: "Instagram" },
|
||||
{ icon: Phone, href: "tel:+19515484002", ariaLabel: "Call us" }
|
||||
{ icon: Instagram, href: "https://www.instagram.com/lawncare4ulandscaping", ariaLabel: "Follow us on Instagram @lawncare4ulandscaping" }
|
||||
]}
|
||||
ariaLabel="Site footer"
|
||||
/>
|
||||
|
||||
@@ -11,7 +11,7 @@ html {
|
||||
body {
|
||||
background-color: var(--background);
|
||||
color: var(--foreground);
|
||||
font-family: var(--font-inter-tight), sans-serif;
|
||||
font-family: var(--font-mulish), sans-serif;
|
||||
position: relative;
|
||||
min-height: 100vh;
|
||||
overscroll-behavior: none;
|
||||
@@ -24,5 +24,5 @@ h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-family: var(--font-inter-tight), sans-serif;
|
||||
font-family: var(--font-mulish), sans-serif;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user