---
title: Build a local business website with Astro
description: "Plan service pages, choose Astro components and blocks, apply your brand palette, and prepare your business website for organic search."
seo:
    title: "Astro for local business websites"
sidebar:
    label: Business websites
related:
    - /blocks/services
    - /blocks/contact
    - /docs/installation
    - /themes
---

A local business website needs to explain the service, show evidence of the work,
and make the next step clear. Gnostic supplies editable Astro components and page
blocks for that structure. You supply the business details, content, images,
and services that receive forms or bookings.

## Why use Astro for a business website?

Service pages, location pages, and articles mainly present content. Astro renders
that content as HTML. Gnostic adds browser behavior where a control needs it,
such as a mobile menu, dialog, or image carousel. The components do not need React.

A React application can suit complex shared state and frequent interface updates.
A business website usually needs less browser code. Choose the tools for the
interaction you need. Images, fonts, third party scripts, and hosting still
affect speed; the framework alone does not guarantee performance.

## Plan pages around customer questions

Use a clear route structure with a specific purpose for each page:

| Page | What it should answer | Useful blocks |
| --- | --- | --- |
| Home | What do you do, where, and for whom? | [Hero](/blocks/hero), [services](/blocks/services), [reviews](/blocks/reviews) |
| Service | What does this service include, and how do I book? | [Content](/blocks/content), [FAQs](/blocks/faqs), [contact](/blocks/contact) |
| Service area | Do you serve this place, and what work have you done here? | [Content](/blocks/content), [gallery](/blocks/gallery), [contact](/blocks/contact) |
| About | Who will do the work, and why should I trust them? | [Content](/blocks/content), [reviews](/blocks/reviews) |
| Contact | How can I call, request a quote, or visit? | [Contact](/blocks/contact), [footer](/blocks/footer) |
| Advice | What should I know before I choose a service? | [Article](/blocks/article), [articles](/blocks/articles) |

Create a location page only when you can give useful information about that
location. Replacing a town name in otherwise identical text does not help a
customer. Use accurate service areas, real project details, and original images.

## Build with components and blocks

1. Follow the [Astro installation guide](/docs/installation) to configure the
   shadcn registry and shared source.
2. Choose a [hero block](/blocks/hero), a [services block](/blocks/services),
   and a [contact block](/blocks/contact). Inspect the example source for each
   layout before you install it.
3. Pass your content through Astro props and slots. Keep route data and content
   collections in your page or layout.
4. Use [buttons](/components/button) for actions and [links](/components/link)
   for destinations, phone numbers, and email addresses. Add a
   [navigation menu](/components/navigation-menu) that reaches the main pages.

The registry copies source into your project. You can edit it there. Review
the [project credits](/docs/credits) and the applicable source licenses.
Complete [Astro templates](/templates) are coming soon; the components and blocks
are available now.

## Apply your brand in one preset

Use the [theme generator](/themes) to choose a style, colors, font, and radius.
Check the example controls in light and dark mode. Use the resulting preset
for installation so the source uses the design you previewed.

Choose colors that keep text, controls, and focus states easy to see. A brand
color can suit an accent without working as small text. Read the
[theming guide](/docs/theming) for the preset model and supported options.

## Prepare each page for search

Use the search terms that accurately describe the page. For a real plumbing
business, a service title might be “Drain cleaning in [service area] | [business
name]”. Replace those fields with verified details. Give each page its own:

- **Title:** name the service or topic and the business. Include a location when
  it matters to that page.
- **H1:** state the main offer or question clearly. Use section headings for
  the details below it.
- **Description:** explain what the visitor can find and what they can do next.
  Avoid claims the page cannot support.
- **Content:** explain scope, process, limits, and common questions. Use real
  project evidence and reviews with permission.
- **Internal links:** connect related services, relevant advice, and the contact
  page with descriptive link text.
- **Images:** supply suitable dimensions and useful alt text. Do not put text
  that customers need only inside an image.

The optional `astro-site` integration supplies SEO tooling, a sitemap,
robots.txt, and favicon support. Set the production site URL and supply page
metadata. These tools do not write your content or guarantee rankings.
The [installation guide](/docs/installation) covers the available integration
recipes. This documentation site uses Blume to generate its own metadata and
search discovery files.

## Check before publication

Open the site at phone and desktop widths. Use the keyboard to reach navigation,
forms, and dialogs. Confirm that the page title, main heading, and contact details
match the visible content. Test links and the result of a form submission.

Contact blocks supply the interface. They do not create a message delivery
service. Connect the form to a server endpoint or form provider, validate input,
and show a clear success or error message. Keep private credentials on the server.

Start with [Astro page blocks](/blocks), or inspect individual
[Astro UI components](/components) before you build.
