Page Blocks
Ready-made sections to build your home page and any other public page.
Inertia Start ships the sections a marketing page is made of as ordinary Vue components, in resources/js/components/blocks: a hero, feature lists, bento cards, text next to a screenshot, steps, an FAQ, an offer and a call to action. With SiteHeader and SiteFooter around them, they build the home page, and they fit just as well on a pricing page, a features page or a page of your app.
The blocks take their content as props, arrays of plain objects and slots, so you write a page with them the way you write any other page: no content format, no configuration. They are built on the shadcn-vue components and the theme's tokens, so they follow your colors, fonts, corner radius and light or dark mode. Each file starts with a usage example.
Building a page
Import the blocks you need, put them in a <main> between the header and the footer, and pass your texts, links and icons (Lucide) as props:
<script setup lang="ts">
import { Gauge, Rocket, ShieldCheck, Zap } from '@lucide/vue'
import ActionButton from '@/components/blocks/ActionButton.vue'
import CallToAction from '@/components/blocks/CallToAction.vue'
import Faq from '@/components/blocks/Faq.vue'
import FeatureList from '@/components/blocks/FeatureList.vue'
import Hero from '@/components/blocks/Hero.vue'
import PageSection from '@/components/blocks/PageSection.vue'
import TextHighlight from '@/components/blocks/TextHighlight.vue'
import SiteFooter from '@/components/SiteFooter.vue'
import SiteHeader from '@/components/SiteHeader.vue'
const features = [
{ icon: Zap, title: 'Fast', description: 'Pages load in an instant.' },
{ icon: ShieldCheck, title: 'Secure', description: 'Two-factor authentication for every account.' },
{ icon: Gauge, title: 'Measured', description: 'See what your customers use the most.' },
]
</script>
<template>
<SiteHeader
:menus="[{ label: 'Features', href: '#features' }, { label: 'FAQ', href: '#faq' }]"
:action="{ label: 'Get started', href: route('register'), icon: Rocket }"
/>
<main>
<!-- The top padding leaves room for the header, which floats over the page -->
<Hero class="pt-14" description="Everything your team needs, in one place.">
<template #title>Ship your product <TextHighlight>in days</TextHighlight></template>
<template #actions>
<ActionButton :href="route('register')" :icon="Rocket">Get started</ActionButton>
</template>
</Hero>
<PageSection id="features" muted eyebrow="Features" title="Built for busy teams">
<FeatureList :features="features" :columns="3" />
</PageSection>
<PageSection id="faq" title="Frequently asked questions" width="narrow">
<Faq :questions="[{ question: 'Is there a free trial?', answer: 'Yes, for 14 days.' }]" />
</PageSection>
<PageSection>
<CallToAction title="Ready to start?" variant="bold">
<template #actions>
<ActionButton :href="route('register')" :icon="Rocket" variant="secondary">
Get started
</ActionButton>
</template>
</CallToAction>
</PageSection>
</main>
<SiteFooter
description="Everything your team needs, in one place."
:columns="[{ title: 'Legal', links: [{ label: 'Terms of Service', href: route('terms.show') }] }]"
copyright="© 2026 Acme"
/>
</template>- One band per section:
PageSectionandSplitSectiondraw a full-width band with generous spacing. Alternatemutedbands to set neighbors apart. - Links to sections: give a section an
id, then link to it with#idfrom the header or a button. - Texts in every language: for a localized application, keep the texts in a translation file and read them with
__()fromuseTrans(), as the home page does withlang/{locale}/landing.php.
Blocks
Page structure
PageSection
A full-width band with its content centered: a heading when it has a title, then the default slot. Wrap most blocks in one.
<PageSection id="faq" title="Frequently asked questions" width="narrow" muted>
<Faq :questions="questions" />
</PageSection>| Prop | Type | Default | Description |
|---|---|---|---|
eyebrow | string | Short label above the title | |
title | string | The heading of the section | |
description | string | The text under the title | |
muted | boolean | false | Draws the band on the muted background |
width | 'default' | 'narrow' | 'default' | narrow suits text, such as questions and answers; default suits grids |
SectionHeading
The heading PageSection draws: an eyebrow, a title and a description, centered on large screens. Use it on its own when a section needs a layout of its own. It takes eyebrow, title (required) and description.
SplitSection
A band with text on one side and a media on the other (a screenshot, a video, a CodeWindow), side by side on wide screens. The default slot follows the description, for details or actions, and the media slot holds the media. Alternate reverse from one section to the next for a zigzag.
<SplitSection id="reports" title="Reports" description="See your numbers at a glance." muted>
<FeatureList :features="details" class="mt-10" />
<template #media>
<BrowserFrame><img src="/reports.png" alt="A report" class="w-full" /></BrowserFrame>
</template>
</SplitSection>It takes eyebrow, title (required), description and muted like PageSection, and reverse (false by default) to put the media on the left.
Page opening
Hero
The opening of a page: a large title and a short description, centered, then the actions and an image below. Give the title as a prop, or in the title slot to highlight some of its words.
<Hero eyebrow="For freelancers" description="One or two sentences that expand on the title.">
<template #announcement>
<AnnouncementLink href="/changelog" action="Read more">Version 2 is out.</AnnouncementLink>
</template>
<template #title>Launch your app <TextHighlight>in days</TextHighlight></template>
<template #actions>
<ActionButton :href="route('register')" :icon="Rocket">Get started</ActionButton>
</template>
<template #media>
<BrowserFrame><img src="/screenshot.png" alt="The dashboard" class="w-full" /></BrowserFrame>
</template>
</Hero>| Prop or slot | Description |
|---|---|
eyebrow | Short label above the title, such as who the product is for |
title | The title, or the title slot for richer markup |
description | The text under the title |
announcement slot | A link above the title, such as an AnnouncementLink |
actions slot | The buttons under the description |
media slot | An image under the actions, such as a BrowserFrame |
background slot | A decoration behind the hero, such as a pattern or a gradient |
The hero has no top padding of its own for the header: add class="pt-14" when SiteHeader floats over it.
AnnouncementLink
A small rounded link that announces something, such as a new feature, with its call to action after the text. It takes href, action (the call to action, such as "Read more") and external to open the link in a new tab.
TextHighlight
Highlights a few words of a title on a slanted band of color. It takes a color (see Colors), accent by default.
<h1>Launch your app <TextHighlight>in days</TextHighlight></h1>ActionButton
A link drawn as a button that grows slightly on hover, with an icon after its label that rises to the right, as if taking off. Use it for the main actions of a page, such as signing up.
<ActionButton :href="route('register')" :icon="Rocket">Get started</ActionButton>It takes href, icon (a Lucide icon), variant (any button variant, default by default) and external to open the link in a new tab. For a secondary action next to it, a plain Button with as="a" reads better than a second ActionButton.
Media
BrowserFrame
A browser window around a screenshot, a video or a MediaPlaceholder, with your application's name in its address bar. Change the address with the address prop, and the width with a class.
<BrowserFrame class="max-w-5xl">
<img src="/screenshot.png" alt="The dashboard" width="1600" height="1000" class="w-full" />
</BrowserFrame>MediaPlaceholder
Stands for an image or a video that is not ready yet, with a label saying what will go there. Change its shape with an aspect ratio class: aspect-[16/10] by default.
<BrowserFrame><MediaPlaceholder label="Screenshot of the dashboard" /></BrowserFrame>CodeWindow
A snippet of code in a window, with its file name in the title bar, such as an API call or a command. It takes filename, code, and a label that tells screen readers what the code shows. Long lines scroll, with the keyboard too.
<CodeWindow filename="terminal" label="Creating a project with the API" :code="code" />Content
FeatureList
Features with a title, a description and an icon (a check mark by default), in one to three columns (one by default). In a SplitSection, a single column lists the details of a feature.
<FeatureList
:columns="3"
:features="[{ icon: Zap, title: 'Fast', description: 'Pages load in an instant.' }]"
/>BentoGrid and BentoCard
Tinted cards of different sizes, in three columns from medium screens: a few differentiators, one of them leading. A card with an href is a link.
<BentoGrid>
<BentoCard size="large" color="accent" :icon="Rocket" title="Main reason" description="..." />
<BentoCard color="sky" :icon="Gauge" title="Speed" description="..." />
<BentoCard color="emerald" :icon="ShieldCheck" title="Reliability" description="..." />
</BentoGrid>| Prop | Type | Default | Description |
|---|---|---|---|
title | string | The title of the card | |
description | string | The text of the card | |
icon | LucideIcon | Drawn next to the title and large in the background | |
color | HighlightColor | 'neutral' | The tint of the card (see Colors) |
size | 'default' | 'large' | 'wide' | 'full' | 'default' | One cell, two columns and two rows (large), two columns (wide) or the whole row (full) |
href | string | Turns the card into a link |
Steps
Numbered steps side by side, joined by a line, such as how to get started. Two to four steps read best.
<Steps :steps="[{ title: 'Sign up', description: '...' }, { title: 'Invite your team', description: '...' }]" />Faq
Questions and their answers in an accordion, one open at a time. Put it in a narrow PageSection.
<Faq :questions="[{ question: 'Is there a free trial?', answer: 'Yes, for 14 days.' }]" />OfferCard
A single offer: its name, description and what it includes, next to its price and the action to buy it, in the action slot.
<OfferCard
name="Lifetime"
description="Every feature, forever."
features-label="What's included"
:features="['Unlimited projects', 'Priority support']"
price="$99"
regular-price="$149"
price-label="Launch offer"
badge="$50 off"
note="Pay once, with an invoice for your records."
>
<template #action>
<ActionButton href="/buy" :icon="ShoppingCart">Buy now</ActionButton>
</template>
</OfferCard>The prices are formatted strings. regularPrice, priceLabel, badge and note are optional: the regular price is struck through next to a discounted one.
Several plans?
OfferCard presents one offer. To let customers choose between plans, use the billing components, which read your plans and prices from Stripe or Paddle and start the checkout.
CallToAction
A panel that invites to act, with a title, a description and the actions slot, centered. The variant is subtle (the muted background, by default) or bold (the primary color): use the secondary button variant for the main action of a bold panel. A background slot takes a decoration.
<PageSection>
<CallToAction title="Ready to start?" description="Try it free for 14 days.">
<template #actions>
<ActionButton :href="route('register')" :icon="Rocket">Get started</ActionButton>
</template>
</CallToAction>
</PageSection>Site header and footer
SiteHeader and SiteFooter, in resources/js/components, frame public pages.
SiteHeader
The logo, menus with dropdowns, then the login or dashboard button and an optional main action. It floats over the top of the page and gets a background once the page scrolls. On small screens, the menus open in a side sheet with the language and theme switchers.
<SiteHeader
:menus="[
{
label: 'Product',
items: [
{ label: 'Reports', description: 'See your numbers at a glance', href: '#reports', icon: BarChart3 },
{ label: 'Documentation', href: 'https://docs.example.com', icon: BookOpenText, external: true },
],
},
{ label: 'Pricing', href: '#pricing' },
]"
:action="{ label: 'Get started', href: route('register'), icon: Rocket }"
/>Each menu (SiteMenu) is a plain link when it has an href, or a dropdown of items, each with a label, an href and an optional description, icon and external. Give a dropdown a featured card (title, description and links) to show it as a wide panel next to the items.
SiteFooter
The logo and a description, an optional tagline under it, columns of links, then the copyright, the socials links and the language switcher.
<SiteFooter
description="What the product does, in one line."
:columns="[{ title: 'Legal', links: [{ label: 'Terms of Service', href: route('terms.show') }] }]"
:socials="[{ network: 'github', href: 'https://github.com/acme' }]"
copyright="© 2026 Acme"
/>The social networks are x, github, youtube, instagram and linkedin. The links of both components (SiteLink) take external to open in a new tab, and the types are exported from @/types.
Colors
TextHighlight and BentoCard take a color, typed HighlightColor:
accent,primaryandneutralfollow your theme: let them carry the page.red,amber,emerald,skyandvioletare fixed colors for supporting items, when your brand's palette welcomes them.
Text drawn in the accent or primary color is decorative and carries data-decorative, so accessibility checks leave it out of the contrast rule: don't rely on that color alone to say something the text doesn't.
Styling with your brand
The blocks are files of your project: change them as you need. To keep updates easy to merge, prefer restyling them from your own stylesheet. Every block carries a data-slot attribute (hero, page-section, split-section, bento-card, offer-card, call-to-action…), and the colored ones a data-color, so a stylesheet imported last in resources/css/theme.css can change their borders, shadows, corners or backgrounds:
[data-slot='bento-card'] {
border-width: 2px;
box-shadow: 4px 4px 0 var(--foreground);
}
[data-slot='text-highlight'][data-color='accent'] {
text-decoration: underline;
}For a different layout, add a prop to the block rather than copying it, the way CallToAction has its variant. When no block fits, such as for a comparison table or customer testimonials, create a component in resources/js/components/blocks like the others: built from the resources/js/components/ui components and the theme's tokens, with a usage example at the top, props and slots for its content, and a data-slot attribute on its root.
The home page
The home page (resources/js/pages/Welcome.vue, on the home route) is an example landing page built with the blocks: a header with menus, a hero framing a screenshot, a feature list, bento cards, four feature sections, steps, an offer, an FAQ, a call to action and a footer. Keep, remove, reorder or add blocks in it like in any page.
- Texts: they live in
lang/{locale}/landing.phpin English, French and Spanish, under plain keys (hero.title,faq.items.trial.question…), the same in every locale. Replace them in every language you support, and add the keys of a block you add. - Props:
WelcomeControllerpassescanRegister(whether visitors can sign up) andplaceholder. While sign-ups are closed (I_S_ENABLE_ACCOUNTS), the example's actions lead to the login page instead of the registration page. - The example flag: while the page still shows the starter kit's example,
landing_placeholderinconfig/inertia-start.phpstaystrue: search engines are asked not to index the page, and signed-in admins see a reminder on it. Set it tofalseonce the page is your own.
You can also ask your coding agent to build the page with you: the building-landing-page AI skill asks about your product, reads your brand, designs the page's story with the blocks (and new blocks when none fits), writes its texts in every enabled language, uses your billing plans for pricing, then removes the example and turns the flag off.
To drop the landing page, point the home route to your own page, then delete WelcomeController, Welcome.vue and lang/*/landing.php.
Coming from v2.8 or v2.9?
Before v2.10.0, the home page rendered the content of lang/{locale}/landing.php with the components of resources/js/components/landing. The v2.10.0 upgrade guide says how to move a page you wrote in that format to the blocks.