Hero Centered

hero_centered renders a focused hero with announcement, heading, description, actions, and caption.

When to Use

Use it when the page needs a clean, direct opening without a visual panel. It is best for simple product pages, docs home pages, and compact launch pages.

Usage

{{ hero_centered(
title="Build faster with VaraPress",
description="Compose landing pages directly in Markdown.",
action_1_text="Get started",
action_1_url="/docs"
) }}

Live Example

Shortcodes included

Build faster with VaraPress

Compose landing pages directly in Markdown.

Parameters

ParameterDescription
containerInner content width for the hero.
titleMain hero heading. Supports HTML.
descriptionSupporting hero copy. Supports HTML.
announcementOptional pill link text above the heading.
announcement_urlURL for the announcement link.
action_1_textPrimary action label.
action_1_urlPrimary action URL.
action_1_variantPrimary action style.
action_1_colorPrimary action color token.
action_2_textOptional secondary action label.
action_2_urlOptional secondary action URL.
action_2_variantSecondary action style.
action_2_colorSecondary action color token.
captionSmall note below the actions.
bgFull-width section background token.
classAdditional CSS classes on the outer section.