How to Build a Landing Page for a Local Business with Claude Code and a Reusable Template
On this page
The short answer
The fastest way I know to build a landing page for a local business is to reuse a template that has no build step and keep all the business-specific content in one config file. Then you ask Claude Code to fill in the config, test the page in your browser and publish it.
I built a fictional car wash page from my template to show the process. Everything below, including the screenshots, comes from that demo.
Why a template with a config file
My template is plain HTML, CSS and JavaScript. There is no build tool, no database and no backend. That means:
- there is little to break,
- any hosting that serves files can publish it,
- every new client starts from the same working base.
The structure is small:
index.html page skeleton
css/style.css styles, shared by every client
js/config.js the file I edit for each business
js/main.js reads config.js and fills the page
For each new client I copy the folder, edit config.js and leave the rest alone.
Step 1: Gather the facts
Before opening any code, I collect the basics from the business: name, what they offer, prices, opening hours, address, WhatsApp number and a few photos if they have them.
I keep these in a short briefing checklist. Writing the answers down first stops me from inventing details the AI would then have to guess.
Step 2: Fill the config file
Here is the config for the demo car wash. It is plain data:
window.SITE = {
name: "Sparkle Car Wash",
tagline: "A spotless car, without the waiting",
cta: "Book on WhatsApp",
hours: "Mon-Sat 8:00-18:00",
whatsapp: "15555550100",
whatsappMessage: "Hi! I would like to book a wash.",
services: [
{ name: "Express wash", description: "Exterior hand wash and dry.", price: "$15" },
{ name: "Full wash", description: "Exterior, interior vacuum and windows.", price: "$30" }
]
};
This is where Claude Code helps. I give it the briefing and ask it to write the config, keeping the text short and plain, and not to add services or claims I did not give it.
Step 3: Check the result in your browser
You can open index.html directly, or run a small local server in the folder:
npx serve .
Here is how the demo looks on a desktop screen:

And on a narrow, phone-sized screen:

Step 4: Check the details the AI cannot know
I read the page line by line against the briefing. I look for:
- wrong prices or hours,
- services that the business does not actually offer,
- a WhatsApp number in the wrong format (it must be digits only, with the country code),
- text that sounds too good to be true.
AI writes confidently, even when it is guessing. This step is where I catch those guesses.
Step 5: Publish
Because the site is just files, publishing is simple. I cover one way in my article on putting a site online with Vercel. Check the hosting terms before you use a free plan for client work, because some free plans are limited to personal use.
What the template does not do
It does not rank on Google by itself. In my template the text is written into the page by JavaScript, which is fine for a link shared on Instagram or WhatsApp but weaker for search. If a business needs strong search visibility, I would put the text directly into the HTML instead.
It also has no booking system. The button opens a WhatsApp chat, and the owner answers by hand.
Tips from using this approach
- Keep the template boring. The less it does, the less can go wrong.
- Never reuse a client’s text. Start every config from the briefing, not from the last client’s file.
- Put the sharing tags in the HTML. Preview bots used by messaging apps do not run JavaScript, so the page title and description must be written in the HTML head.
- Test on a phone. Most visitors to a local business page will arrive on one.
When the page looks broken
A page that fills itself from a config file has one weak spot: if the config has a typo, nothing appears. These are the checks I run first:
- Blank page or missing text. Open the browser’s developer tools with F12 and look at the console. A missing comma or quote in
config.jsshows up there as an error with a line number. - Text appears but a section is empty. Check that the names in the config match the names the script expects.
- The WhatsApp button does nothing. Look at the link it generated. The number should be digits only.
- Old content still showing. Your browser may be showing a saved copy. Do a hard refresh with Ctrl + F5.
Fixing these takes minutes once you know where to look, and Claude Code is good at explaining an error message if you paste it in.
Frequently asked questions
Do I need to know how to code? It helps, but Claude Code can write most of it. You still have to read the result and test it.
Why not use a website builder? Builders are fine. I prefer a few files I fully understand and can host anywhere.
How long does a page take? It depends on how quickly the business sends its information. The coding itself is the short part.
Is the demo a real business? No. It is fictional, and I say so on the page and in this article.