What are the basic hero banners?
The basic hero banners are a set of banners designed by the NSW Digital Design System team to create a standardised approach to adding a styled H1 heading to a page. These hero banners are used to introduce and give context to the product or service, communicate and drive users to a specific call to action and/or to present an overview of the page’s most important content or primary message.
How to add and configure a hero banner
To add a hero banner:
- Create a new node or click Edit from an existing node to view the edit node form
- Expand the 'Top section' accordion
- Click 'Add component'
- Click 'Add' on the 'Hero banner' tile
- Select the desired 'Hero type' from the dropdown list - a thumbnail image will provide a preview of each option
- Complete the required fields by adding your content - see specific fields for each banner below
- Click Save at the bottom of the page
Primary message banner
The Primary message banner is a text-only banner with a title and optional subtitle and Call-To-Action button. Text will wrap at approximately 60% to allow users to quickly scan the content.
After adding the banner to the Top section, editors can fill out the following fields:
- Title - the title of the page which will be displayed as a H1 on the page
- Subtitle - an optional subtitle field which will be displayed in the 'Intro text' style under the title
- Theme - a dropdown to select the colour of the banner. If '- None -' is selected, the banner will default to a white background.
- Link
- URL - the page you would like the Call-To-Action button to be linked to
- Link text - the label of the Call-To-Action button
Want to go full width?
If you'd like the banner copy to use the full width of the content canvas, there is a 'Full width banner' available as an alternative to the 'Primary message banner'.
Supporting image banner
The Supporting image banner is a text and image banner with a title, supporting image and optional subtitle and Call-To-Action button.
After adding the banner to the Top section, editors can fill out the following fields:
- Title - the title of the page which will be displayed as a H1 on the page
- Subtitle - an optional subtitle field which will be displayed in the 'Intro text' style under the title
- Theme - a dropdown to select the colour of the banner. If '- None -' is selected, the banner will default to a white background.
- Link
- URL - the page you would like the Call-To-Action button to be linked to
- Link text - the label of the Call-To-Action button
- Image - browse the Media Library for an image or upload a new image
- Show camera icon - a checkbox to show a camera icon on the banner with an image credit and image description. Note, for the camera icon to show, an image credit and description must be added to the metadata of the image in the Media Library.
Supporting content banner
The supporting content banner is a text banner with a title, supporting links to related content and optional subtitle and Call-To-Action button.
After adding the banner to the Top section, editors can fill out the following fields:
- Title - the title of the page which will be displayed as a H1 on the page
- Subtitle - an optional subtitle field which will be displayed in the 'Intro text' style under the title
- Theme - a dropdown to select the colour of the banner. If '- None -' is selected, the banner will default to a white background
- Links sub heading - subheading to show above the links on the right
- Link (it is not recommended to implement a CTA button on this hero)
- URL - the page you would like the Call-To-Action button to be linked to
- Link text - the label of the Call-To-Action button
- Links (these links will display on the right of the banner title and subtitle fields)
- URL - the page you would like the Call-To-Action button to be linked to
- Link text - the label of the Call-To-Action button
- Add another item - this will generate another 'URL' and 'Link text' field group to add more links