---
# System prepended metadata

title: Text Only Hero
tags: [Hero]

---

---
title: Text Only Hero
tags: Hero
---

# Hero: Text Only Hero
###### **Control Code:** `H.TO`
<!--
![](https://via.placeholder.com/1600x900/D3D3D3/000000/?text=Splash%20Placeholder%20Image)
-->
## About This Component

The design system allows for a variety of hero component configurations. These configurations allow images at varying widths across the page with optional text content and CTAs. Other configurations allow content editors to include videos or text-only approaches with customizable background colors. 
<!--
### Usage Guidelines

:::info
*TODO: Novartis to write.*
:::

General guidelines for using this component. Include any information the user will need to know but that may not fit into the below annotated breakdown of the individual requirements for the component.

### Related Components

:::info
*TODO: Novartis to write.*
:::

A list of other components that are related. Consider what other components may be useful based on the structure or format of information and if there are any specific limitations that can be overcome by using a different component.

- **[Component Name](/url-of-component):** Why it is related, or why we would recommend it instead of this one.
- **[Component Name](/url-of-component):** Why it is related, or why we would recommend it instead of this one.

### Accessibility

:::info
*TODO: Novartis to write.*
:::

Specific accessibility considerations and recommendations for this component.
-->
## Primary Configurations

| **Extra Large Breakpoint (Desktop)** |
| -------- |
| ![](https://hackmd.io/_uploads/r1ABTohX9.png) |

| **Medium Breakpoint (Tablet)** | **Extra Small Breakpoint (Mobile)** |
| -------- | -------- |
| ![](https://hackmd.io/_uploads/Hk5U6o27q.png) | ![](https://hackmd.io/_uploads/rySw6oh75.png) |

| **Key** |
| ------- |
| ![](https://hackmd.io/_uploads/S1-x39hQc.png) |

### 1. Background Color

- **Required:** Must be included
- **Color:** GRADIENT_PRIMARY_01 (Gradient Brand Primary), changeable within site color palette

### 2. Title

- **Optional:** Can be excluded, component collapses to hide unused space
- **Type Style:** Title 1
- **Color:** NEUTRAL_0 (White), changeable within site color palette
- **SEO HTML Tag:** Default H1, changeable within H1 to H6

### 3. Under-Title Decoration Line

This line provides a break between the primary title text and other body text. It can be optionally removed, however if either the title or the body is not included then the line should also not be included.

- **Optional:** Can be excluded, component collapses to hide unused space
- **Color:** NEUTRAL_0 (White), changeable within site color palette

### 4. Body Text

- **Optional:** Can be excluded, component collapses to hide unused space
- **Type Style:** Paragraph 1
- **Color:** NEUTRAL_0 (White), changeable within site color palette

### 5. CTA Buttons

- **Optional:** Can be excluded, component collapses to hide unused space
- **Number of Buttons:** 0-2, if there is only 1 button it will always be the left-most button

The CTA Buttons for this component follows the standard requirements outlined in the [CTA Buttons](/cta-buttons) page of this documentation. Please refer to that page for full details on its configurations and options.

### 6. FUSE Code

- **Optional:** Can be excluded, component collapses to hide unused space

The FUSE code for this component follows the standard requirements outlined in the [FUSE Code](/cU84_lreQY2OTQupfjeaTg) page of this documentation. Please refer to that page for full details on its configurations and options.

## Additional Configurations

### Content Alignment

Content within the hero by default is all left aligned, but can be set to all be center aligned.

- **Content Alignment:** Default left, can be center

Below is an example of the hero when set to center aligned.

| **Extra Large Breakpoint (Desktop)** |
| -------- |
| ![](https://hackmd.io/_uploads/BJ3bb23Qc.png) |

| **Medium Breakpoint (Tablet)** | **Extra Small Breakpoint (Mobile)** |
| -------- | -------- |
| ![](https://hackmd.io/_uploads/ryQzb23Q9.png) | ![](https://hackmd.io/_uploads/Hkvz-n2m5.png) |

### Content Width

Content by default spans a wide area that fills most of the hero horizontally, however it can be set to be more narrow to tighten up the content to a smaller width.

- **Optional:** Default wide, can be narrow

Below is an example of the hero when the content is wide and narrow.

#### Extra Large Breakpoint (Desktop)

| Wide (Default) | Narrow |
| ---------- | --------- |
| ![](https://hackmd.io/_uploads/Bk-jTsh79.png) | ![](https://hackmd.io/_uploads/rk_s6inQc.png) |

#### Medium Breakpoint (Tablet)

| Wide (Default) | Narrow |
| ---------- | --------- |
| ![](https://hackmd.io/_uploads/HyV2ps3Q5.png) | ![](https://hackmd.io/_uploads/Sytn6snmc.png) |

#### Extra Small Breakpoint (Mobile)

At the Extra Small Breakpoint this configuration has no effect, as the content will always go to the wide width to provide more visual room on mobile.

| Wide (Default) | Narrow |
| ---------- | --------- |
| ![](https://hackmd.io/_uploads/HkNa6inQq.png) | ![](https://hackmd.io/_uploads/BJ36Ton7q.png) |

## Resources

### CMS Instructions

#### Hero Text Configuration

While creating or editing content, site administrators and content editors can add a **Hero text** content block as follows:

**Step 1:** Navigate to the **Content** menu and either click **Add content** to create a new content or click the **Edit** button under Operations for the content you wish to edit:

![Content](https://hackmd.io/_uploads/Sk-bQliX9.png)

On the **Layout** tab, click **Add block** at the section you want to add a hero text content block. You may need to add a section before adding a block.

![Content Layout](https://hackmd.io/_uploads/SJhf7gimq.png)

In the side panel on the right-hand side of the window click **Create custom block**.

![Custom Block](https://hackmd.io/_uploads/SkjNmxiX5.png)

Select **Hero - text** from the list of available custom blocks.

![Create Hero Text](https://hackmd.io/_uploads/SJ7Hx_3Q5.png)

**Step 2:** Displayed is the window with the hero properties:

![Hero Text](https://hackmd.io/_uploads/SyPQl_27q.png)

The Primary Text Section is expandable: 

![Primary Text](https://hackmd.io/_uploads/rJRLld2mq.png)

Mandatory entries include:

- **Title** - The title of the block as shown to the user.
- **Display title** - checkbox
- **Primary Text Section** 
    - **Component size** - 8 columns (default) or 6 columns
    - **Component Alignment** - Left (default) or Right

Optional entries include:

- **Primary Text Section** 
    - **Title** - text with formatting with text limit 200. Either Title or Body should not be empty. 
    - **HTML tag** – H1 to H6. This field only changes the wrapping HTML of this element. It does not change the style (appearance). 
    - **Under title** - checkbox 
    - **Body** - text with formatting with text limit 700. Either Title or Body should not be empty. 
    - **Background color** 
    - **CTA buttons** - refer to the [CTA buttons CMS instructions](/H3_6iYFmQ_-AbCD8m_APXQ#CMS-Instructions) for details. Up to two CTA buttons are allowed.
- **FUSE Code** - see [FUSE code CMS instructions](/cU84_lreQY2OTQupfjeaTg#CMS-Instructions) for details
- **Vertical spacing** - see [dynamic vertical spacing CMS instructions](/azdwOTghR8uWkILRsGkvwA?both#CMS-Instructions) for details.
- **Reusable** - checkbox. Would you like to be able to reuse this block? This option can not be changed after saving. If this option is selected, the you will be able to select this block from the list (see **Step 1**).

<!--The entries are represented in the free form content block as follows:

![Hero Text Details](https://hackmd.io/_uploads/rka_ldhXq.png)-->

**Step 3:** Fill in the fields as required. For example:

- **Title** - "Hero text".
- **Display title** - check
- **Primary Text Section** 
    - **Component size** - 8 columns 
    - **Component Alignment** - Left 
    - **Title** - "Sample hero text". 
    - **HTML tag** – H1 
    - **Under title** - check 
    - **Body** - "This is a sample hero text body".

**Step 4:** Be sure to click the **Add block** button to ensure that your changes are updated.

![Add Block Button](https://hackmd.io/_uploads/SySoXeiX9.png)

**Step 5:** The layout tab displays the parameters of the added block. Click the edit icon the edit the block layout.

![Edit Block](https://hackmd.io/_uploads/rk22e_279.png)

**Step 6:** Click the **Save layout** button

![Save Layout](https://hackmd.io/_uploads/r1A0mxo79.png)

On the **Edit** tab for the content, make sure that the **Published** checkbox is selected and click **Save**.

![Publish Layout](https://hackmd.io/_uploads/Hy8e4loQ5.png)

**Step 7:** Open the content page using the **URL alias** for the page. URL alias is displayed on the **Edit** tab for the content, refer to the [flexible template CMS instructions](/k-R9oJNzSJG_F4x3P7gIug#CMS-Instructions) for details.

![URL Alias](https://hackmd.io/_uploads/BkrrNlo7c.png)

View the updates:

![Updated Hero Text](https://hackmd.io/_uploads/S1SMWunm9.png)

