Skip to content

Hero

Edit on GitHub

Full-width hero blocks for prominent page-level messaging with text and media layouts.

@volvo-cars/css v3.3.1

Use one hero at the top of the page as the entry point.

Keep the title short, clear, and focused on one message. Aim for 1–2 lines. Move supporting explanation into the body rather than extending the title.

Keep body copy concise. Avoid long paragraphs or multiple text blocks competing for attention.

When the body contains a short message such as a price, pair it with an action.

volvocars.com
Show codeHide code
<section class="media-hero">
<h1 slot="title">The new EX60 is here</h1>
<div slot="body">
<p>Recommended price from 689 000 kr</p>
</div>
<div slot="action">
<a href="#" class="link-underlined">Shop today</a>
</div>
<img slot="media" src="/images/decorative/ex60-road.avif" alt="" />
</section>

Use short, specific action labels that describe the next step. Give the main action clear priority over secondary actions.

Keep important subjects visible as media crops across screen sizes. Avoid placing them close to the edges, and check the crop on both small and large screens.