🔥 All-Access Pass — $199 USD (Regular $499) · Unlock all 2,836 Astro themes ➔
komal.nakrani
Get All-Access Pass ($199)
ThemesCategoriesDocsBlogTips & TricksPricingGet All-Access Pass ($199)
Astro Themes••By Komal Nakrani

Landing Page Sections: The 10 Every Site Needs

The landing page sections every site needs, in order: hero, social proof, problem, features, how it works, pricing, FAQ and CTA, with Astro component code.

#Astro#Landing Page Sections#Landing Pages#Conversion#Components

The landing page sections nearly every site needs are a hero with one clear call to action, social proof, the problem you solve, features framed as benefits, how it works, pricing, objection handling, an FAQ and a closing call to action. Each section answers one question a visitor has before they act, so the order matters as much as the content.

This guide walks through those sections top to bottom: what each one has to do, what to put in it, and how to build it as a small Astro component that ships as static HTML.

Key Takeaways

  • Build the page around one goal and one primary call to action, repeated in the hero, the middle and the end.
  • Order sections by the visitor’s questions: what is this, can I trust it, does it fit me, what does it cost, what if.
  • Keep each section a separate Astro component fed from one data file, so you can reorder and test sections without rewriting markup.
  • Most sections need no JavaScript; an FAQ works with <details> and a pricing toggle needs a few lines of script.
  • Put the FAQ in a real ## FAQ-style structure so it can also produce FAQ structured data.

Why the order of landing page sections matters

A visitor arriving from an ad or a search result decides in seconds whether to stay. The first screen has to say what you offer and who it’s for. Further down, the page answers the doubts that would stop someone from clicking: whether others trust you, whether it does what they need, what it costs, and what happens if it doesn’t work out.

That’s why most high-performing landing pages share a similar skeleton. The exact sections change with the product, but the sequence of questions doesn’t. Treat the list below as a default to adjust, not a fixed template.

In an Astro project, it helps to make each section its own component and assemble them in one page file:

---
// src/pages/index.astro
import Base from '../layouts/Base.astro';
import Hero from '../components/sections/Hero.astro';
import Logos from '../components/sections/Logos.astro';
import Problem from '../components/sections/Problem.astro';
import Features from '../components/sections/Features.astro';
import HowItWorks from '../components/sections/HowItWorks.astro';
import Testimonials from '../components/sections/Testimonials.astro';
import Pricing from '../components/sections/Pricing.astro';
import Faq from '../components/sections/Faq.astro';
import FinalCta from '../components/sections/FinalCta.astro';
import { page } from '../data/landing';
---
<Base title={page.meta.title} description={page.meta.description}>
  <Hero {...page.hero} />
  <Logos logos={page.logos} />
  <Problem {...page.problem} />
  <Features items={page.features} />
  <HowItWorks steps={page.steps} />
  <Testimonials items={page.testimonials} />
  <Pricing plans={page.plans} />
  <Faq items={page.faq} />
  <FinalCta {...page.cta} />
</Base>

Reordering the page is now a matter of moving one line. The landing page tutorial builds this structure step by step.

1. Hero section

Job: say what it is, who it’s for, and what to do next, all above the fold.

Include: a headline that states the outcome, one supporting sentence, a primary call to action button, an optional secondary link, and a product image or screenshot.

---
// src/components/sections/Hero.astro
import { Image } from 'astro:assets';
import type { ImageMetadata } from 'astro';

interface Props {
  headline: string;
  subhead: string;
  cta: { label: string; href: string };
  secondary?: { label: string; href: string };
  image: ImageMetadata;
  imageAlt: string;
}
const { headline, subhead, cta, secondary, image, imageAlt } = Astro.props;
---
<section class="hero">
  <h1>{headline}</h1>
  <p>{subhead}</p>
  <div class="actions">
    <a class="button" href={cta.href}>{cta.label}</a>
    {secondary && <a href={secondary.href}>{secondary.label}</a>}
  </div>
  <Image src={image} alt={imageAlt} loading="eager" fetchpriority="high" widths={[640, 1280]} sizes="(min-width: 1024px) 50vw, 100vw" />
</section>

The hero image is usually the Largest Contentful Paint element, so load it eagerly with high fetch priority and let astro:assets size it. The LCP guide explains why.

2. Social proof strip

Job: answer “is this legitimate?” right after the hero.

Include: logos of real customers or publications, a count you can verify, or a short rating summary. Only show proof that’s true and that you have permission to use. A row of grayscale logos with real alt text is enough here; full testimonials come later.

3. Problem section

Job: show the visitor you understand their situation before you pitch the fix.

Include: two to four short statements of the pain in the reader’s words, ideally taken from customer conversations or support tickets. Keep it brief. The point is recognition, not a long story.

4. Features as benefits

Job: explain what the product does and why each part matters.

Include: three to six features, each with a short heading that names the benefit, one or two sentences, and an icon or small image. “Invoices sent automatically on the 1st” beats “Automation engine”.

---
// src/components/sections/Features.astro
interface Props {
  items: { title: string; body: string; icon: string }[];
}
const { items } = Astro.props;
---
<section aria-labelledby="features-title">
  <h2 id="features-title">What you get</h2>
  <ul class="grid">
    {items.map((item) => (
      <li>
        <img src={item.icon} alt="" width="32" height="32" />
        <h3>{item.title}</h3>
        <p>{item.body}</p>
      </li>
    ))}
  </ul>
</section>

The icons are decorative, so they take an empty alt. Setting width and height prevents layout shift as they load.

5. How it works

Job: make getting started feel small.

Include: three steps, numbered, with a verb at the start of each: “Sign up”, “Connect your account”, “Send your first invoice”. Use an ordered list (<ol>) so the sequence is clear to screen readers too. If setup takes minutes, say how many, but only if it’s true.

6. Testimonials and case studies

Job: let customers make the argument for you.

Include: two or three specific quotes with a real name, role and photo, each tied to a result or a feature. A short case study link (“How a four-person studio cut onboarding time”) works for higher-priced products. Never invent quotes or reviews; a page with no testimonials is better than a page with fake ones.

7. Pricing section

Job: answer “what does it cost?” without making people email you.

Include: two or three plans, the recommended plan highlighted, what each includes, and the call to action on every card. If you have monthly and yearly prices, a toggle helps, and it needs only a few lines of script:

---
// src/components/sections/Pricing.astro
interface Props {
  plans: { name: string; monthly: number; yearly: number; features: string[]; href: string }[];
}
const { plans } = Astro.props;
---
<section aria-labelledby="pricing-title">
  <h2 id="pricing-title">Pricing</h2>
  <label><input type="checkbox" data-billing-toggle /> Pay yearly</label>
  <div class="plans">
    {plans.map((plan) => (
      <article>
        <h3>{plan.name}</h3>
        <p class="price" data-monthly={`$${plan.monthly}/mo`} data-yearly={`$${plan.yearly}/yr`}>
          ${plan.monthly}/mo
        </p>
        <ul>{plan.features.map((f) => <li>{f}</li>)}</ul>
        <a class="button" href={plan.href}>Choose {plan.name}</a>
      </article>
    ))}
  </div>
</section>

<script>
  const toggle = document.querySelector<HTMLInputElement>('[data-billing-toggle]');
  toggle?.addEventListener('change', () => {
    document.querySelectorAll<HTMLElement>('.price').forEach((el) => {
      el.textContent = (toggle.checked ? el.dataset.yearly : el.dataset.monthly) ?? '';
    });
  });
</script>

The monthly price is in the HTML, so the section works before the script runs. The pricing table component has a fuller version with styling.

8. Objection handling

Job: remove the last reasons not to act.

Include: a short block addressing the common worries: refunds or trials, data security, contract length, switching cost, support. This can be a few icons with one line each, placed near pricing, where doubts peak.

9. FAQ section

Job: answer specific questions that didn’t fit elsewhere, and give search engines and AI assistants clear question-and-answer text.

Include: five to eight real questions from sales calls or support. Native <details> elements give you an accordion with no JavaScript:

---
// src/components/sections/Faq.astro
interface Props {
  items: { q: string; a: string }[];
}
const { items } = Astro.props;
---
<section aria-labelledby="faq-title">
  <h2 id="faq-title">Frequently asked questions</h2>
  {items.map(({ q, a }) => (
    <details>
      <summary>{q}</summary>
      <p>{a}</p>
    </details>
  ))}
</section>

Generate FAQPage structured data from the same items array so the markup and the schema never drift apart. The FAQ section with schema guide shows the JSON-LD.

10. Final call to action

Job: give the visitor who scrolled to the bottom one more clear next step.

Include: a restated headline, the same primary call to action as the hero, and a reassurance line (“No credit card required”, “Cancel anytime”) if it’s true. Don’t introduce a new offer here; repeat the one you’ve been making.

Below it, a slim footer with legal links, contact details and a few navigation links is enough. On a dedicated ad landing page, keep the header and footer navigation minimal so the page has one exit that counts.

Optional landing page sections

Depending on the product, these earn a place:

Section Add it when
Demo video The product is easier to show than describe
Comparison table Visitors are weighing you against a known alternative
Integrations Buyers need to know it works with their tools
Use cases or audiences You serve distinct segments with different needs
Signup or waitlist form The goal is an email address, not a purchase
Stats or results You have measured outcomes you can stand behind

A signup form doesn’t need a server on a static site. Post it to a form backend or your email provider’s endpoint; the form backends roundup lists options.

Building landing pages faster in Astro

Two habits keep landing pages easy to change. First, keep all copy in one data file (src/data/landing.ts) so marketers can edit text without touching markup. Second, give every section the same props pattern, so a new page is a new data file plus a list of components.

If you’d rather start from a finished layout, landing-style themes in the technology category include most of the sections above. Campaign, for example, ships three home variants plus Pricing and Why Choose Us pages, which covers the pricing and objection sections out of the box. Free options worth a look include AstroWind, which has a widget-based landing page with hero, features, pricing and FAQ blocks, and the landing themes listed on astro.build/themes. The best Astro landing page templates roundup compares more.

For checking that your page actually performs, web.dev’s Core Web Vitals overview explains the metrics that matter most for a landing page’s first screen.

FAQ

What sections should a landing page have?

Most landing pages need a hero with a call to action, social proof, a problem statement, features as benefits, how it works, testimonials, pricing, objection handling, an FAQ and a final call to action. Remove any that don’t help your visitor decide, and add a demo, comparison or integrations section when your audience needs it.

What is the most important section of a landing page?

The hero. It decides whether visitors keep reading, so it must state what you offer, who it’s for and what to do next within the first screen. A clear headline and a single primary call to action matter more than design details.

How long should a landing page be?

As long as it takes to answer the visitor’s questions. Simple, low-cost offers can convert with a hero, proof and a form. Higher-priced or unfamiliar products usually need more sections, such as features, pricing, testimonials and an FAQ, before people are ready to act.

How many calls to action should a landing page have?

One primary action, repeated several times: in the hero, after features or pricing, and at the end. A secondary link such as “See how it works” is fine, but competing offers on the same page usually lower conversions.

Can I build a landing page with Astro without JavaScript?

Yes. Hero, features, testimonials, pricing cards and an FAQ built with <details> all render as static HTML. You only need a small script for things like a monthly or yearly pricing toggle, and forms can post to a form backend with no client code.