HyperBuilder
Blocks

Hero block

22min

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.

Hero block - Page structure
Hero block - Page structure


Sample Hero block

Hero block - Preview
Hero block - Preview


Background

Banner height

There are 4 different sizes you can use

Hero block. Banner height setting.
Hero block. Banner height setting.

  • 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 mode

  1. Full : This will spread your background over the full width of your screen.
  2. Reduced : This will add spacing/padding to the left & right side of your screen.
Hero block. Reduced or full background setting
Hero block. Reduced or full background setting

Hero block. Full vs reduced background mode.
Hero block. Full vs reduced background mode.

Hero block. Full vs reduced background mode.
Hero block. Full vs reduced background mode.


There are 4 different types of backgrounds available for use:

  • Image (static)
  • Animated Images
  • Video
  • Solid
Hero Block - Background type setting
Hero Block - Background type setting


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:

Hero Block - Image animation setting
Hero Block - Image animation setting


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

Hero Block - Image animation example setting
Hero Block - Image animation example setting


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

Hero Block - Image animation loop setting
Hero Block - Image animation loop setting


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:

Hero Block - Background Video setting
Hero Block - Background Video setting


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.

Hero Block - Background Video autoplay setting
Hero Block - Background Video autoplay setting


Show Video controls

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

Hero Block - Background Video controls setting
Hero Block - Background Video controls setting

Hero block. Video controls example.
Hero block. Video controls example.


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.



Hero block. Background color picker
Hero block. Background 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.

Hero Block - Sticky animation setting
Hero Block - Sticky animation setting


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):

Hero Block - Sticky animation example
Hero Block - Sticky animation example


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%

Hero Block - Media overlay setting
Hero Block - Media overlay setting


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

50% black color overlay effect
50% black color overlay effect


Text

Hero Block - Text setting
Hero Block - Text setting

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

Buttons

Hero Block - Button setting
Hero Block - Button setting


You can add buttons at the bottom of the Hero block.

  1. Buttons align: Left, Center, Right
  2. 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.

Hero Block - Button style setting
Hero Block - Button style setting

Hero block. Buttons styling example
Hero block. Buttons styling example


Button text

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

Hero Block - Button text setting
Hero Block - Button text setting


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"

Hero Block - Button url setting
Hero Block - Button url setting


Color

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

Hero Block - Highlight color example
Hero Block - Highlight color example


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 block with Google Map
Hero block with Google Map




  • 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.
Hero Block with openinghours
Hero Block with openinghours




Updated 15 Oct 2024
Doc contributor
Did this page help you?