"Commit to the Lord whatever you do, and he will establish your plans." - Proverbs 16:3
Welcome to the official website for Cale's Lawncare, built by LokiSoft using their Business Portal Template. We are a dedicated lawn care service committed to transforming yards across Macomb, Rushville, and the surrounding countryside. This website serves as a digital hub for our services, customer inquiries, and showcasing our quality work.
This is a modern, responsive, and customizable website for a service-based business, built with Next.js and Tailwind CSS.
- Modern Design: Clean and professional design, optimized for user experience.
- Responsive: Fully responsive and mobile-first, ensuring a great look on any device.
- Comprehensive Services: Detailed sections for our range of lawn care services including mowing, fertilization, weed control, hedge trimming, and seasonal cleanups.
- Dedicated Pages: Includes ready-to-use pages for Services, Gallery, Pricing, FAQ, Privacy Policy, and Terms of Service.
- Contact Form: Integrated API route for sending quotes/messages directly to Cale's Lawncare.
- SEO Optimized: Built with Next.js App Router for optimal search engine performance and easy metadata management.
- Highly Customizable: Effortlessly change theme, content, and functionality to match Cale's Lawncare's brand.
- Framework: Next.js - A React framework for production.
- Styling: Tailwind CSS - A utility-first CSS framework for rapid UI development.
- UI Components: shadcn/ui - Reusable UI components built with Radix UI and Tailwind CSS.
- Animations: Framer Motion - A production-ready motion library for React.
- Email: Resend - For reliable transactional email sending.
- Icons: Lucide React - Beautiful, customizable icons.
- Analytics: Vercel Analytics - Optional, for performance monitoring and insights.
- Language: TypeScript - For type-safe code and improved developer experience.
To get a local copy up and running, follow these simple steps.
- Node.js (v20 or later)
- pnpm (recommended), npm, or yarn
-
Clone the repository:
git clone https://github.com/your_username/your_repository.git
-
Navigate to the project directory:
cd your_repository -
Install dependencies:
pnpm install
-
Set up your environment variables:
- Rename the
env.templatefile to.env.local. - Follow the instructions within
.env.localto add your Resend API Key and other necessary variables. - Important for deployment (e.g., Vercel): You will need to set these environment variables in your hosting provider's settings panel. For Vercel, this is done in Project Settings -> Environment Variables.
- Rename the
-
Run the development server:
pnpm dev
Open http://localhost:3000 with your browser to see the result.
This template is designed for easy customization. Here's where to find and change key elements:
All content for Cale's Lawncare's website, from company details to service descriptions and gallery items, is managed in the lib/data directory. We've adopted a modular approach for better organization:
lib/data/index.ts: This file acts as the central hub, re-exporting all data from the individual files below. Components import from@/lib/data, which automatically pulls from here. You generally won't need to edit this file directly.lib/data/global.ts: Contains site-wide configurations likecompanyInfo(name, address, contact),siteConfig(to enable/disable pages and sections, including individual social media toggles),headerContent,footerContent,callToActionSectionContent, andheroSectionContent.- Tip: Start here to quickly update Cale's Lawncare's core information and control global visibility of sections and social media links.
lib/data/about.ts: Content for the "About Us" section and page (aboutSectionContent). Includes customizable image settings (image.src,image.year,image.line1,image.line2) for the visual display.lib/data/services.ts: Defines yourServiceinterface, theservicesarray (details of each lawn care service), andservicesSectionContent.lib/data/testimonials.ts: Defines theTestimonialinterface, thetestimonialsarray, andtestimonialsSectionContent. Note: This section is currently disabled as per client request.lib/data/pricing.ts: Defines thePricingPlaninterface,pricingPlansarray,pricingPageContent, andindividualServicesPricingContent.lib/data/gallery.ts: Defines theGalleryIteminterface,galleryItemsarray (Cale's Lawncare's project portfolio),galleryPageContent, andshowcaseSectionContent.lib/data/faq.ts: Defines theFAQIteminterface,faqDataarray, andfaqPageContent.lib/data/contact.ts: ContainscontactSectionContent, including form labels, placeholders, and the criticalquoteEmailTemplate.
How to Edit Data:
Open the relevant .ts file in lib/data. Each file is heavily commented, guiding you on what each variable represents and how to modify it. Simply change the values of the exported constants to update Cale's Lawncare's website content.
To rebrand Cale's Lawncare's website, focus on app/globals.css:
- Color Palette: The primary colors are defined as CSS variables at the top of
app/globals.css. Look for variables like--primary,--secondary,--accent, etc. Adjust their HSL values to change the overall color scheme of your site. Tailwind CSS classes (e.g.,text-primary,bg-accent) will automatically pick up these changes. - Fonts: You can easily change the fonts by updating the
font-sansandfont-headingvariables, which use Google Fonts by default. - Tailwind CSS: For more granular styling, use Tailwind CSS utility classes directly in your components. This allows for rapid and consistent styling without writing custom CSS.
Next.js App Router provides powerful built-in SEO features.
Edit app/layout.tsx to customize your site's metadata:
metadataobject: This is where you define your site'stitle,description,keywords, andauthors.- Open Graph Image (
og:image): Essential for social media sharing. Update theurlproperty withinmetadata.openGraph.imagesto point to your branding image.- Recommended Dimensions: For optimal display across platforms, your Open Graph image should be a landscape image with an aspect ratio of 1.91:1 (e.g.,
1200x630pixels).
- Recommended Dimensions: For optimal display across platforms, your Open Graph image should be a landscape image with an aspect ratio of 1.91:1 (e.g.,
- Favicon: Replace
app/favicon.icowith your company's favicon. Ensure it's a.icofile for broad browser compatibility. - Robots.txt & Sitemap: Ensure
app/robots.txtandapp/sitemap.tsare configured correctly to guide search engine crawlers.
All static images are stored in the public directory. Replace the placeholder files with Cale's Lawncare's own branded assets.
The template includes SVG placeholder images. Replace these with Cale's Lawncare's own branded assets (PNG, JPG, or WebP recommended for photos).
| Placeholder | Replace With | Recommended Size | Description |
|---|---|---|---|
app/favicon.ico |
Your favicon | 32x32 or 48x48 | Browser tab icon. Use .ico format for compatibility. |
public/og-image.svg |
og-image.png |
1200x630 | Social media preview image (Facebook, LinkedIn, Twitter). |
public/about-image.svg |
about-image.png |
800x800 (1:1) | About section image. Set path in lib/data/about.ts (image.src). Set to null for animated visual. |
public/map-preview.svg |
map-preview.png |
640x360 (16:9) | Header location dropdown - Google Maps screenshot of Cale's Lawncare's business location. |
public/service-area.svg |
service-area.png |
640x360 (16:9) | Contact section - Google Maps screenshot of Cale's Lawncare's service coverage area. |
Note: After replacing SVG placeholders with PNG/JPG files, update the file references in:
lib/data/about.ts(about-image viaimage.src)components/header.tsx(map-preview)components/sections/contact.tsx(service-area)
Gallery images are stored in public/gallery/ and referenced in lib/data/gallery.ts.
| Placeholder Pattern | Replace With | Recommended Size | Aspect Ratio | Description |
|---|---|---|---|---|
project-1.svg through project-12.svg |
project-1.jpg etc. |
800x600 or larger | 4:3 | Cale's Lawncare project/portfolio images for gallery and showcase. |
To add gallery images:
- Place your images in the
public/gallery/directory (PNG, JPG, or WebP) - Update the
galleryItemsarray inlib/data/gallery.tswith:image: Path to the image (e.g.,"/gallery/my-project.jpg")title: Project titlecategory: Category for filtering (e.g.,"Residential","Commercial")description: Brief description
Example:
// lib/data/gallery.ts
export const galleryItems: GalleryItem[] = [
{
id: 1,
title: "Kitchen Renovation",
category: "Residential",
image: "/gallery/kitchen-renovation.jpg",
description: "Complete kitchen remodel with modern fixtures"
},
// ... more items
]- Go to Google Maps
- Search for Cale's Lawncare's business address (for
map-preview.png) or zoom out to show the service area (forservice-area.png) - Take a screenshot at the recommended aspect ratio (16:9)
- Save as PNG in the
publicdirectory
All images in public are automatically optimized by Next.js when using the next/image component. For best performance:
- Use JPG for photos, PNG for graphics with transparency, or WebP for best compression
- Keep file sizes under 500KB where possible
- Gallery images: 800x600 minimum, larger images will be automatically resized
- Ensure images match the recommended aspect ratios
We use Lucide React for customizable SVG icons. Due to Next.js tree-shaking, icons are managed through a centralized icon map.
- Using Icons: In data files (e.g.,
lib/data/services.ts), set theiconNameproperty to match an icon name in the icon map (e.g.,"Briefcase","Users","Lightbulb"). - Finding More Icons: Browse the full library on the Lucide website.
- Adding New Icons: To use an icon not already in the map:
- Open
lib/icon-map.ts - Find the icon in the commented list (organized by category) or add a new import
- Uncomment the icon in BOTH the
importstatement AND theiconMapobject - Use the icon name in your data files
- Open
Example: To add the Coffee icon:
// In lib/icon-map.ts
import {
// ... existing imports ...
Coffee, // Uncomment this
// ...
} from "lucide-react"
const iconMap: Record<string, LucideIcon> = {
// ... existing icons ...
Coffee, // Uncomment this
// ...
}Then use it in your data:
// In lib/data/services.ts
{
iconName: "Coffee", // Now available
// ...
}Performance Note: Only uncomment icons you actually use. Each icon adds ~1-2KB to the bundle.
The contact form uses the Resend API to send emails and Cloudflare Turnstile for bot protection.
- API Key: Ensure your
RESEND_API_KEYis correctly set in your.env.localfile (and on your hosting provider). - Email Template: The HTML structure of the email sent upon form submission is defined in
lib/data/contact.tswithin thequoteEmailTemplatestring. Customize this to match your branding and include all necessary information.- Important: Placeholders like
{{firstName}},{{email}}, etc., are used to dynamically insert form data. If you change your form fields, ensure these placeholders are updated accordingly in the template.
- Important: Placeholders like
The contact form includes Cloudflare Turnstile integration to protect against spam and bot submissions. Turnstile is a free, privacy-friendly alternative to CAPTCHA.
- Go to the Cloudflare Dashboard and navigate to Turnstile.
- Click Add widget and enter your site's domain.
- Choose a widget mode (Managed is recommended — it's invisible to most users).
- Copy the Site Key and Secret Key.
- Add them to your
.env.localfile:NEXT_PUBLIC_TURNSTILE_SITE_KEY="your_site_key" TURNSTILE_SECRET_KEY="your_secret_key" - For production (e.g., Vercel), add both environment variables in your hosting provider's settings.
- Client-side: When both keys are configured, the Turnstile widget renders in the contact form before the submit button. The form cannot be submitted until the challenge is passed.
- Server-side: The API route (
/api/send-quote) validates the Turnstile token with Cloudflare's verification endpoint before processing the form submission. - Graceful degradation: If the environment variables are not set (e.g., during local development), the form works normally without Turnstile verification.
The contact form includes multiple layers of protection:
- Cloudflare Turnstile — Bot and spam prevention
- Rate limiting — 5 requests per minute per IP address
- Origin validation — Only accepts requests from allowed domains
- Input validation — Length limits, email/phone format checks
- Input sanitization — HTML escaping on all user inputs
shadcn/ui makes it incredibly easy to add new, accessible, and customizable UI components.
- Browse Components: Visit the shadcn/ui documentation to explore available components (e.g.,
Accordion,Carousel,Data Table,Calendar). - Install a Component: To add a new component, for example, a
Calendar, run:This command will add the component's code to yourpnpm shadcn-ui add calendar
components/uidirectory, allowing you to fully customize it. - Integrate: Import the component into your desired React component and use it as needed. This approach provides maximum flexibility and ownership over your UI.
Once your website is live, consider these crucial steps:
- Verify SEO Setup: Use Google Search Console to submit your sitemap (
/sitemap.xml) and monitor your site's performance in search results. Address any crawling or indexing issues. - Google Business Profile: Register and verify your business with Google Business Profile. This is essential for local SEO and appearing in Google Maps.
- Google Analytics: Implement Google Analytics (or another analytics tool) to track website traffic, user behavior, and conversion rates.
- Social Media Integration: Ensure all social media links in your
lib/data/global.tsare active and point to your official profiles. - Legal Pages: Double-check your Privacy Policy and Terms of Service (
app/privacy-policy/page.tsx,app/terms-of-service/page.tsx) to ensure they comply with relevant regulations (e.g., GDPR, CCPA). - Regular Content Updates: Keep your website content fresh and relevant. Regularly update service descriptions, gallery items, testimonials, and FAQ answers in the
lib/datadirectory. - Performance Monitoring: Continuously monitor your website's performance using tools like Google PageSpeed Insights or Vercel Analytics to ensure a fast and smooth user experience.
LokiSoft is a software company dedicated to providing high-quality, open-source tools for developers and businesses. Our work is guided by our Christian faith, and we strive to create products that are not only functional but also built with integrity and a spirit of generosity. We believe in the power of technology to connect people and create opportunities, and we are excited to be a part of your journey.
May the Lord bless you and keep you in all your endeavors. May He grant you wisdom in your decisions, strength in your challenges, and success in your work. May your business be a source of blessing to you and to others, and may you always walk in His grace. Amen.
Distributed under the MIT License. See LICENSE for more information.