← Back to projects
Local ServicesMarketing siteFeatured case study

JH Plumbing & Drainage

JH Plumbing & Drainage is a statically generated Next.js site for a local plumbing and drainage firm covering Southampton and Hampshire. Copy lives in Markdown and JSON under /content, validated with Zod at build time and rendered with MDX, so service pages, town pages, prices, reviews, and legal pages stay out of the components. The public site includes a symptom picker, service and coverage pages, before-and-after job sliders, Google reviews, FAQs, and a booking form. POST /api/booking is the only server route and sends requests through Resend. Search uses a Fuse.js index built at build time. SEO is handled with generateMetadata, JSON-LD, a sitemap, and robots.txt, with optional Google Tag Manager.

JH Plumbing & Drainage

Tech stack

Next.js (App Router)TypeScriptReactTailwind CSSshadcn/uiMDXZodReact Hook FormResendFuse.js

Challenges

  • •Covering many services and towns without hard-coding copy into page components
  • •Giving visitors a fast way to describe the job and request a visit
  • •Keeping local SEO, structured data, and on-site search in sync with the content

Solutions

  • •Stored page copy as Markdown and JSON, validated it with Zod during the build, and rendered it with MDX
  • •Built a booking form with React Hook Form and Zod, and emailed requests through a single Resend API route
  • •Generated metadata and JSON-LD from the same content, and rebuilt a Fuse.js search index before each build

Impact

✓

A static, content-driven site the business can update by editing content files

✓

Online booking alongside call and emergency paths

✓

Service and area coverage structured for local search

Screenshots

JH Plumbing & Drainage screenshot 1

Project details

Role
Full-Stack Developer
Category
Local Services
Scope
Marketing site