Skip to main content

HeroMedia

The opening section of your website providing a key piece of information and a video background. Commonly known as a "hero" section.

Loading...

Expected content and relative order

RoleElementLayoutAlignmentDescription
backgroundimageThe optional background image.
pretitleH2A phrase that precedes the main headline.
titleH1The main headline.
subtitleH2A phrase that follows the main headline.
textparagraphThe body text.
linklinkOne or more links that attach to the hero section.
mediaimage
video
The image or video of the hero section.

Expected child content and relative order

Component properties

NameTypeEnumDefaultDescription
min_heightstring100vh
80vh
60vh
40vh
100vhThe minimum height of the section, it grows if the content is larger.
show_back_dropbooleanfalseWhether or not the text will have a backdrop.
show_gradientbooleanfalseWeather or not the background will have a gradient.
gradient_from_posstringtop
bottom
bottomThe position of the gradient from.
horizontal_alignmentstringleft
center
right
The horizontal alignment of the text content or the media content, in case both exist, it is the horizontal alignment of the text content.
vertical_alignmentstringtop
center
bottom
centerThe vertical alignment of the content.
media_as_bgbooleanfalseWeather or not the media will be used as a background, the facade will be ignored.