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.
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: -1puts the photo before the text on wide screens,--mac-hero-2-columnssets the two columns' widths, and--mac-hero-2-image-ratiothe photo's shape. For a portrait,4 / 5with columns of3fr 2frkeeps the hero shorter.
Reference
Read from the component's JSON, so it's always current.
Loading the reference