Etch component

Hero 2

A page's first section with its photo beside the text. The text sits on the section's ground, and on phones the photo comes under it.

Hero 2

Copy Hero 2

Configurator settings

Change a setting in the configurator to include it.

Optional. Copies the component under its own name, such as News Card Alpha for a site.

Documentation

A page's first section with its photo beside the text. The text sits on the section's ground, and on phones the photo comes under it.

How to use it

  • Pick an Image: its alt comes from the media library.
  • Edit the MAC Intro 1 in Content: its headline is the page's h1.

Good to know

  • The photo loads at once, without waiting for the page to scroll, since it's the first thing visitors see.
  • --mac-hero-2-image-order: -1 puts the photo before the text on wide screens, --mac-hero-2-columns sets the two columns' widths, and --mac-hero-2-image-ratio the photo's shape. For a portrait, 4 / 5 with columns of 3fr 2fr keeps the hero shorter.

Reference

Read from the component's JSON, so it's always current.

Loading the reference