Hero block
Overview
Hero block is a prominent and visually striking section of a website, typically located at the top of the homepage or a landing page. It serves as the first point of interaction for the visitors and is designed to capture their attention immediately.

Sample Hero block

Background
Banner height Desktop & Mobile
There are 5 different sizes you can use

- Small : this will use 1/4 of your screen
- Medium : this will use half of your screen
- Large : this will use 3/4 of your screen
- Full height : this will use the full height of your screen
- Fit content: automatically stretches banner height in order to fit background media or text block height.
Background type

- Image (static) : Use a single image as background.
- Image Animation : Show multiple images with transition animation
- Video : Play video in the background
- Solid : Use a solid background color
Image
Upload a single large image to be used as the Hero background, this will show as a still background image without animation.
Animated Images
With this feature, you can animate multiple images that will be overlapped and displayed in a sequence with a delay. For this, you will need to:
1. Choose the 'Image animation' background type to enable the corresponding fields:

2. Upload several images to the 'Animated images section' in the order they're expected to appear:

3. You can select "Loop animation" if you like to keep this animation running multiple times instead of once.

Background video
For the video to appear on the background of your website page, make sure to switch the background type to 'Video' and upload the video file from your media library:

Video autoplay
Set this to "On" to start playing your background video automatically when someone visits your page. When set to "Off" a play button will be displayed on top of the Hero block, visitors can start the video by clicking the button.

Show Video controls
Set to "On" or "Off" to show or hide video play/pause controls.


Solid Background color
If you want to focus the attention of the view entirely on the textual message, you can set a background color instead of an image. You can work with a predefined color palette or a free color picker.

Sticky animation
The sticky animation will appear in the block when you start scrolling down. The elements transition smoothly from their original position to the sticky position, creating a parallax effect for a seamless user experience.
First, you need to open the media library to choose/add the picture for your background. Then click the corresponding toggle to enable the sticky animation feature.

You can add several 'Hero' blocks for the sticky animation, simply add a new block by clicking the '+' on the page structure on the left, or clone the current one (see below):

Media overlay
When activating this setting a dark shade will be used to cover your background image. This can be useful when you have a distractive background that makes it hard to read the text. Set overlay at : 0%, 30% or 50%

The following image shows the difference in the Hero block with 0% and 50% black color overlay.

Background mode

- Full : This will spread your background over the full width of your screen.
- Reduced : This will add spacing/padding to the left & right side of your screen.


Text

- Prefix : This will add a medium size text at the top of your Hero content
- Title : This is the main title in large text size
- Subtitle : This will be printed below the title in small text size
- Content width : Use 30%, 40%, 50% or 100% of the available block to display your content
- Horizontal content align : Choose Left, Center or Right
- Vertical content align : Choose Top, Center or Bottom
- Text color : Click the rectangular button to set your text color
Buttons

You can add buttons at the bottom of the Hero block.
- Buttons align: Left, Center, Right
- Buttons align direction: Horizontal or Vertical
Cards are used to fill out the display, content, and link of each button. Click the + Add button to add more buttons.
Button style
Choose between 6 different button styles. Depending on the chosen style you will have to change the text color to make the button text visible on your screen/button.


Button text
This is the text displayed on the button, when using multi-languages make sure to also enter the translations.

Button url :
First, use the dropdown and select "internal" or "URL". When using internal links make sure to make those relative. When using "URL" add the full URL to the website you want to link, so "https://your-website.com"

Color
Text highlight color : This is the color used on your website to highlight specific titles.

Supplements
Use the supplements tab to activate more features

Animation images :
Add x amount of images, they will be displayed one by one with animation in between transitions.

Conditional media :
Use this when you want to show different images for different retailer locations.

.
- Url parameter name : add parameter name here, for example 'retailerId'
- Url parameter value : Add the parameter value here, for example 'FZKTA'
- Display media : Select images from Media Library or upload new images
Click "+ Add" to add multiple conditional images to this page.
Custom Hero block modifications
Depending on the concrete use case, there also exist custom-modified versions of the 'Hero' block, designed to fulfill a certain business purpose.
Hero with Google Maps - Custom version of the Hero block, connected to the Google Maps API. Designed to display map location on the landing page

- Hero with Opening Hours - Custom version of the Hero block, connected to the HyperPortal CMS. It automatically pulls up the opening hours schedule for the selected physical location.
