Sean L. YoungStudio tools
Step 2 · Build

Section Builder

Build the common parts of a website (header, hero banner, services, testimonials, pricing, contact form and footer) by filling in a few settings. Try them at phone size, then copy clean HTML and CSS, plus a ready-made PHP script that emails you what people send through the form.

What it's for

Most small-business sites are built from the same handful of parts. The Section Builder makes each part for you, already tested on phones, keyboards and screen readers, so you don't start from a blank file every time.

Use it when you need one or two pieces for a site: a new header with a phone menu, a contact form that actually sends email, a pricing table. To build a whole one-page site, use the Landing Page Builder, which uses the same sections and adds more.

Quick start

The builder opens with sample content for a made-up bakery. Replace it with your client's details.

  1. Set the look. On the Look tab, enter the business name and logo, and set the colours and fonts. Every section uses them.
  2. Pick a section. Click its tab, such as Header or Contact form, and fill in its settings.
  3. Check it. Try the preview at Phone size, and use the keyboard to tab through it.
  4. Copy the code. The code panel underneath shows that section's HTML, CSS and any JavaScript, with numbered steps for where each piece goes.

How the screen works

  • The tabs along the top: Look for the whole design, then one tab for each section.
  • The settings panel on the left shows the chosen tab's settings.
  • The preview on the right is the real code running, at Computer, Tablet or Phone width. On a section's tab it shows just that section, with stand-in content where the rest of the page would be. On the Look tab it shows all the sections together.
  • The code panel underneath shows the code for the chosen tab, with what to do with it.

Your settings are remembered in this browser until you change them.

The Look tab

Sections on the page

Tick the sections to include when you look at everything together, and in Download everything.

Business

The business name and logo. Drop a logo in or click to choose one; without one, the name is shown instead. Then set Logo file on the site (where you'll upload it, such as /images/logo.png), its height, and whether to show the name next to it.

Colours

Eight colours: Background, Panels, Text, Quiet text, Lines, Accent (buttons and links), Text on accent, and Dark band (for dark sections and footers).

Using the Colour Palette

Copy the CSS variables from the Colour Palette, open Use colours from the Colour Palette tool, paste them in and click Use these colours.

Type & shape

  • Text font and Heading font. "System" uses each device's own font and needs no download. "Use the site's font" fits the sections into a site that already has its own font. Inter and Fraunces only show if the site loads them.
  • Corner rounding, Pill-shaped buttons, and Content width (how wide the content can get on a big screen).

The sections

Lists are typed one item per line, with the parts separated by |. A menu link, for example, is About | /about.

Header

  • Layout: logo on the left, menu centred, or logo centred.
  • Colour: light, the dark band, or the accent colour. Choose whether it stays at the top while scrolling, and whether it has a soft shadow.
  • Menu links, and an optional button at the end, such as "Book now".
  • Top bar: a thin bar above the header for opening hours, a phone number or a short announcement.

On phones, the menu folds into a Menu button. It works with the keyboard and screen readers, and closes with Esc.

Hero banner

  • Layout: text beside a photo, centred text, or text over the photo. Height: regular or tall.
  • Words: a small line above the heading, the main heading, and supporting text. The main heading is the page's one H1, so say what the business does and where.
  • Buttons: a main button, and an optional second one.
  • Photo: drop one in, describe it for screen readers, set where it will go on the site, and darken it if text sits on top. Use a photo at least 1600 pixels wide.

Services

One service per line: Title | Short description | /link. The link is optional, and a "Learn more" link only shows for services that have one. Choose two, three or four columns, a marker (numbers, first letter or none), cards or plain, the background, and an optional button underneath.

Testimonials

One quote per line: Quote | Name | Detail | Stars, with stars from 1 to 5 (optional). Show them as cards or as one big quote, with or without star ratings.

Real reviews only

The sample quotes are placeholders. Use only real customers' words, with their permission, and only the star ratings they actually gave. Made-up reviews break consumer-protection rules in many countries.

Pricing

Leave a blank line between plans. For each plan:

  1. Name | Price | per…, such as Family | $45 | per week. Start the name with * to highlight it.
  2. A short description.
  3. Features, one per line, each starting with -.
  4. Button | /link on the last line.

Set the Highlight label (such as "Most popular") and any small print under the plans. Each button is read out with its plan's name, so screen-reader users know which plan it's for.

Footer

  • Layout: columns, simple, or with a call to action at the top. Colour: dark band, light panel or accent.
  • A short about line, two link columns (leave one empty to hide it), and contact details.
  • Social links (Name | full address) and small print links such as the privacy policy.

The footer shows the year. Update it each January, or, on a PHP site, replace it with <?= date('Y') ?> to keep it current automatically.

The contact form

  • Layout: the business's contact details beside the form, or the form on its own. Field style: outlined or softly filled boxes.
  • Heading and introduction.
  • Fields: tick Show and Needed for each, and change the labels.
  • Topic choices: one per line, for a "What's it about?" menu.
  • Button text and the thank-you message.
  • Where messages go: the client's inbox, a "send from" address, and the email subject.
Use the site's own domain for "Send from"

Create an address like website@theirbusiness.com in the hosting control panel (cPanel → Email Accounts). Mail "from" Gmail or another outside address usually lands in spam.

The form comes with contact.php, which emails each message to the client. It checks the fields, quietly drops spam from robots, allows one message every 30 seconds per visitor, and lets the client reply straight from the email. The form checks the fields in the browser first, and still works without JavaScript.

Testing the form

Mail can't be sent from the preview or from XAMPP on your own computer. Send yourself a test message once the site is live.

Using the code

One section

On a section's tab, the code panel shows that section's HTML, CSS, and JavaScript if it needs any (the header's phone menu and the contact form), plus contact.php for the form. Click Copy this to copy the piece you're looking at. The numbered steps under the code say where each piece goes, such as "Paste the HTML right after <body>".

The shared colours

Each section's CSS starts with the same :root block of colours and fonts. Include it once in the site's stylesheet, not once per section.

Everything together

On the Look tab, the code panel shows all the ticked sections together. Download everything (.zip) gives you:

FileWhat it is
index.htmlA demo page with all the ticked sections. Copy the ones you want into the site's pages: each starts with <header>, <section> or <footer>.
sections.cssAll the styles, with the colours at the top. The demo page's own styles are marked at the end, so you can remove them.
sections.jsThe phone menu and the contact form's checks.
contact.phpSends the form's messages. Check the email addresses at the top.
README.txtWhat each file is and how to use it.

Questions

Will the sections fit with a site's existing design?

Set the colours to match the site, and choose "Use the site's font" for the text. All the section styles and colour settings start with sb-, so they won't clash with the site's own styles.

Can I use more than one hero banner?

Use one per page. Its heading is the page's main H1, and a page should have only one.

My settings carried over to the Landing Page Builder.

That's on purpose. The first time you open the Landing Page Builder, it brings in your colours and wording from here, so you don't type them twice.

Is anything uploaded?

No. Your settings, logo and photos stay in this browser.