Split Hero
Description
A hero is a prominent content block normally placed at the top of a page. It introduces the purpose of the page and the main reason for the user to engage with it.
A split hero component contains:
- a heading
- an image
- body copy
- a CTA
Split hero is the default primary and secondary hero component.
When to use
Use a primary split hero for a landing page. The H1 text replaces the page title, so make sure it reflects the page purpose.
Use a secondary split hero for an important but secondary journey on the page. For example the Shelter Homepage. Or to highlight a secondary action on the page.
- text based articles where the heading and introductory text are enough and an image/CTA would not add to the page
- search results pages - the search interface should be the focus
- simple transactional pages where users need to get straight to the task
- detailed guidance pages where visual treatment adds little
- pages where the hero would simply repeat information already obvious from navigation or the page title
Component style variants
Interactive example
- Primary
- Secondary
Guidelines for use
- name - provide an internal name for your hero
- title text - the heading you want to appear on your hero
- body text - add any subtext copy you want to appear on your hero
- image - use a square crop using the image editor if needed
- CTA - add a CTA component if required - a primary (red) CTA for a primary hero, and a secondary CTA (black) for a secondary hero
- background colour - white for a primary hero, grey for a secondary hero
- overlay padding bottom - if you select yes, the next component below will overlay
- primary brand hero - select yes if this is a hero image for the top of a page
- remove margin bottom - select yes to remove the margin below the block
- publish your image and CTA, if necessary, then publish your hero
For implementation guidance in Contentful, see [Confluence page link].
Accessibility
All hero components are designed to meet WCAG 2.1 Level AA standards. This includes appropriate colour contrast ratios, keyboard navigation support, screen reader compatibility, and minimum touch target sizes. It is designed to meet a minimum target size of 44px by 44px and includes a focus state.
For detailed information about our accessibility standards, see our Accessibility Statement.