A hero promotes a key page or encourages a user to take an action.
Where it displays: Homepage, at the top of the page
Required or optional: Required
Use: For news or announcements
Don’t use: On internal landing pages
Fields
Name of Field | Required/Optional | Case | Character Count | Number (min/max) | Size | Details |
---|---|---|---|---|---|---|
Title |
Required |
Title Case |
Maximum 40 |
1 |
|
|
Subtitle |
Optional |
Sentence Case | Maximum 95 |
0-1 |
|
|
Button |
Optional |
Sentence Case |
Maximum 20 |
0-1 |
|
|
Image |
Required | 1 | 2000x800 | focus just right of center - edges will be cut off at different widths |
Example
Wide Screen
![An example of a Hero component. It has a box with a title, subtitle, and button. To the right of the box is an image of a smiling person holding a baby.](/sites/default/files/hrsa/design-system/hero-wide-screen.jpg)
![Hero Image Guidance Desktop](/sites/default/files/hrsa/design-system/hero-image-guidance-desktop.jpg)
Medium Screen
![An example of a Hero component. It’s the same as the previous example, but narrower, and the image is only of a baby.](/sites/default/files/hrsa/design-system/hero-medium-screen.jpg)
![Hero Image Guidance Tablet](/sites/default/files/hrsa/design-system/hero-image-guidance-tablet.jpg)
Narrow Screen
![An example of a Hero component for a narrow screen. It has a title, subtitle, and button in a box, but with no image.](/sites/default/files/hrsa/design-system/hero-narrow-screen.jpg)
![Hero Image Guidance Mobile](/sites/default/files/hrsa/design-system/hero-image-guidance-mobile.jpg)
Live examples
Blood Stem Cell - Title and subtitle
![An example of a Hero component on a page. This component has a title, subtitle, and image, but no button.](/sites/default/files/hrsa/design-system/live-example-bsc.jpg)
Newborn Screening - Title only
![An example of a Hero component on a page. This component has a title and image, but no subtitle or button.](/sites/default/files/hrsa/design-system/live-example-newborn-screening.jpg)