Start here · Lesson 1 of 22 · 5 min

Welcome. Here's the plan.

What you'll build, how the lessons work, and why Astro is a good pick for content sites.

You’re going to build a real website for Sunday Supper Co., a small catering business. By the last lesson it will be live on the internet with its own URL.

What the finished site has

  • A header with the business name and a navigation bar that highlights the page you’re on
  • A homepage with a hero, a services section, and the latest blog posts
  • Service cards that come from a JSON file, so you edit data, not HTML
  • An About page written in plain Markdown
  • A blog with a list page and one page per post, built from Markdown files
  • A custom 404 page
  • Deployed on Vercel, with every git push updating the live site

Why Astro

Astro builds websites out of components, like React does, but it ships plain HTML and CSS to the browser by default. No JavaScript unless you ask for it. That makes it fast and simple for sites that are mostly content: business sites, portfolios, blogs, docs.

The mental model is short:

  1. You write .astro components (HTML with a little JavaScript at the top).
  2. Files in src/pages/ become URLs.
  3. npm run build turns everything into static HTML files in dist/.
  4. You upload dist/ anywhere. Vercel does it for you.

How each lesson works

Every lesson is small and builds on the last one. You’ll see three kinds of boxes:

Code blocks show the file they belong in, like this:

src/pages/index.astro

<h1>Hello</h1>

Make it yours

Sunday Supper is a stand-in. Once you’ve finished, swap in your own business name, services, and posts. The structure works for almost any small business site.