This is an advanced component reserved for use by the UCS Web Team and AEM authors who have taken hero training.
Hero component
The hero component is a flexible but advanced component that can combine images, colours, text, links and calls to action. Used for splashy home page banners, the hero can be used to separate sections on landing pages, or for temporary or promotional content.
![](/content/concordia/en/web/design/components/hero/_jcr_content/content-main/grid_container_1238716276/grid-container-parsys/box/box-parsys/textimage/image.img.png/1634570637584.png)
Component(s) you might want to use with this one:
- Breadcrumb
- Grid container
- Box
- Column control
- Carousel Multi items
There are several hero size and text options available. Enter all your content before choosing settings for your hero.
Hero size options
- Tall (60vh) - Top hero on home pages (ex. https://www.concordia.ca/finearts.html)
- Medium (45vh) and Short (35 vh) - Top hero on first level landing page (ex. https://www.concordia.ca/students/services.html)
- Mini (19vh)
- Square - this option, if selected, is for use in a column control
- Flexible - commonly used for heros that use a background colour instead of an image
- Full height - reserved for use by the Concordia Web Team
Field name | Description |
---|---|
Overall height | Vertical height (vh) = the percentage of the browser window that the hero occupies
|
Main text | |
Title | |
Subtitle | |
Category | |
Category name | Adds a hyperlink above the Title |
Link to | |
Call to action |
|
Button1 | |
Button text | |
Link to | |
Open new tab | Check this when linking to an external website or PDF |
Button style |
|
Large button | |
Button2 | |
Button text | |
Link to | |
Open new tab | Check this when linking to an external website |
Button style |
|
Large button | |
Place below | Stacks the two buttons. Leave this option unchecked by default; TBD by UCS Web Team in design review. |
Field name | Description |
---|---|
Design settings | |
Heading level |
|
Font family |
|
Font size |
|
Title colour |
|
Subtitle colour |
|
Contrast |
|
Desktop settings | |
Align (horizontal) |
|
Align (vertical) |
|
Mobile settings | |
Align (horizontal) |
|
Align (vertical) |
|
Text area settings | |
Text area grid |
|
Text area width | A percentage of the width of the selected text area grid.
|
Additional padding | Only use with the "Flexible" hero Ex: 60px 0 60px 0 (top right bottom left) |
Field name | Description |
---|---|
Background colour | |
Colour | Background image will take precedence over background colour
|
Background image | |
Horizontal position |
|
Vertical position |
|
Background overlay | |
Overlay shade |
|
Top opacity |
|
Bottom opacity |
|
Photo credit | |
Name | Appears in white text in the bottom right hand corner |
Background video | Use only with permission from UCS Web Team |
MP4 | The location of the video file* |
Image | The location of a static image (still) file* |
Loop video | Checked by default |
Show Pause/Play | Unchecked by default If a video is longer than 5 seconds, it is recommended to enable the pause/play button |
*Both MP4 and images files are necessary for a video background to work properly |
Field name | Description |
---|---|
Crop |
|
Clear | To remove the photo from the component
|
! | Shows the location of the image in the DAM |
Field name | Description |
---|---|
Other colours | Web colour palette |
Title colour | ![]()
|
Subtitle colour | ![]()
|
Button (1) colour | ![]()
|
Button (2) colour | ![]()
|
Overlay colour | ![]()
|
Other vertical align settings | |
Desktop |
|
Mobile |
|
Additional info | |
CSS class |
|
UTM source | |
High quality | Force the quality of the background image to be set to high. This is not recommended because it will slow down the page load. |
Deprecated title style |
|
Script tab DO NOT USE - reserved for the UCS Web Team
Guidelines
- Ensure you select the correct heading level for the title (H1 or H2)
- Chose photos that have a strong point of focus.
- Always check the mobile display of your hero. This can be done by shrinking your browser window.
- If the text is hard to read, either change to a less busy image, add text contrast or add an overlay.
Accessibility
Headings
It is important to set the correct Heading level for the Title field (found in the Text settings tab). The default is H1, the other option is H2.
- H1
- for a hero at the top of the page directly beneath the Concordia header
- only one H1 per page
- H2
- for a hero that is not at the top of a page
- can have more than one H2 on a page
Buttons and hyperlinks
- Write descriptive calls to action.
Colour combinations
- When using a solid background CUBE colour use white text.
- When using a solid background CUBE tint use black text.
Images
- Hero images are decorative background images and do not use alt text.
Video
- If a background video is on a loop, or is longer than 5 seconds, enable the pause/play button
A cube colour uses white text
A cube tint uses black text
Dos
- Use BoldCondensed all caps for the top hero H1
- Set the image position before you crop
- Adjust the text area width if your text wraps strangely
- Check your page for mobile display
- Work with your comms advisor (and web team) to determine best approach for sharing timely information
Dos for selecting images
Key elements:
- Simplicity
- A centred composition
- Symmetry
- The rule of thirds
- Hero overlaid text will be legible
- The eye is drawn to one point of focus in the photo
Don't
- Stack heroes
- Use multiple heroes to visually break up the page
- Use heroes for announcements across multiple pages
- Use call to actions in a top hero that divert people from reading important information on the page
- Have more than one H1 on the page
- Add line breaks to your text if it wraps strangely; adjust the text area width instead
- Use the hero to layout a page of body text
Don'ts for selecting images
Key elements:
- Images are so busy that the overlaid text is difficult to read
- The eye jumps all over different parts of the photo without being able to settle on one element
- Image is cropped too close to the subjects face and there is no room for text
Training
Heros are covered in the Heroes and Cards training sessions. This training is reserved for units whose websites use this component.
Need support?
The Web Team is here to help.