Skip to main content

Hero

JSThis component requires JavaScript.
With high visual emphasis, a Hero displays content and an action about a single subject.

A Hero is often used at the top of a Landing page layout, such as a homepage, campaign page or section index page.

A Hero does have the capability of carouseling multiple slide. However, analytics have shown that engagement significantly decreases after the first slide, so only carousel if necessary.

Examples​

Default​

<section class="bux-hero bux-hero--card-left bux-hero--3x2">
<div class="bux-hero__items">
<div
id="bux-hero__carousel-1399966637-tab-1"
class="bux-hero__container bux-hero__container--showing"
>
<div class="bux-hero__image-container">
<figure class="bux-image">
<img
class="bux-image--3x2"
src="/images/placeholders/osu-bux-5.jpg"
alt="Graduates performing the O-H-I-O pose"
height=""
width=""
/>
</figure>
</div>

<div class="bux-hero-text-content">
<h2 class="bux-heading bux-hero__header">Headline lorem ipsum</h2>

<div class="bux-hero__subheader">
<span>Subhead lorem ipsum dolor met</span>
</div>

<a class="bux-button bux-button--alt" href="#" rel="noopener">
<span class="bux-button__text bux-button--alt__text">
Call to Action
</span>
</a>
</div>
</div>
</div>
</section>

Scarlet Left 3:2​

<section class="bux-hero bux-hero--scarlet bux-hero--card-left bux-hero--3x2">
<div class="bux-hero__items">
<div
id="bux-hero__carousel-312728168-tab-1"
class="bux-hero__container bux-hero__container--showing"
>
<div class="bux-hero__image-container">
<figure class="bux-image">
<img
class="bux-image--3x2"
src="/images/placeholders/osu-bux-5.jpg"
alt="Graduates performing the O-H-I-O pose"
height=""
width=""
/>
</figure>
</div>

<div class="bux-hero-text-content">
<h2 class="bux-heading bux-hero__header">Headline lorem ipsum</h2>

<div class="bux-hero__subheader">
<span>Subhead lorem ipsum dolor met</span>
</div>

<a class="bux-button bux-button--alt" href="#" rel="noopener">
<span class="bux-button__text bux-button--alt__text">
Call to Action
</span>
</a>
</div>
</div>
</div>
</section>

Scarlet Right 3:2​

<section class="bux-hero bux-hero--scarlet bux-hero--card-right bux-hero--3x2">
<div class="bux-hero__items">
<div
id="bux-hero__carousel-613486924-tab-1"
class="bux-hero__container bux-hero__container--showing"
>
<div class="bux-hero__image-container">
<figure class="bux-image">
<img
class="bux-image--3x2"
src="/images/placeholders/osu-bux-5.jpg"
alt="Graduates performing the O-H-I-O pose"
height=""
width=""
/>
</figure>
</div>

<div class="bux-hero-text-content">
<h2 class="bux-heading bux-hero__header">Headline lorem ipsum</h2>

<div class="bux-hero__subheader">
<span>Subhead lorem ipsum dolor met</span>
</div>

<a class="bux-button bux-button--alt" href="#" rel="noopener">
<span class="bux-button__text bux-button--alt__text">
Call to Action
</span>
</a>
</div>
</div>
</div>
</section>

Gray Left 3:2​

<section class="bux-hero bux-hero--card-left bux-hero--3x2">
<div class="bux-hero__items">
<div
id="bux-hero__carousel-271986773-tab-1"
class="bux-hero__container bux-hero__container--showing"
>
<div class="bux-hero__image-container">
<figure class="bux-image">
<img
class="bux-image--3x2"
src="/images/placeholders/osu-bux-5.jpg"
alt="Graduates performing the O-H-I-O pose"
height=""
width=""
/>
</figure>
</div>

<div class="bux-hero-text-content">
<h2 class="bux-heading bux-hero__header">Headline lorem ipsum</h2>

<div class="bux-hero__subheader">
<span>Subhead lorem ipsum dolor met</span>
</div>

<a class="bux-button bux-button--alt" href="#" rel="noopener">
<span class="bux-button__text bux-button--alt__text">
Call to Action
</span>
</a>
</div>
</div>
</div>
</section>

Gray Right 3:2​

<section class="bux-hero bux-hero--card-right bux-hero--3x2">
<div class="bux-hero__items">
<div
id="bux-hero__carousel-915313785-tab-1"
class="bux-hero__container bux-hero__container--showing"
>
<div class="bux-hero__image-container">
<figure class="bux-image">
<img
class="bux-image--3x2"
src="/images/placeholders/osu-bux-5.jpg"
alt="Graduates performing the O-H-I-O pose"
height=""
width=""
/>
</figure>
</div>

<div class="bux-hero-text-content">
<h2 class="bux-heading bux-hero__header">Headline lorem ipsum</h2>

<div class="bux-hero__subheader">
<span>Subhead lorem ipsum dolor met</span>
</div>

<a class="bux-button bux-button--alt" href="#" rel="noopener">
<span class="bux-button__text bux-button--alt__text">
Call to Action
</span>
</a>
</div>
</div>
</div>
</section>

Scarlet Left 16:9​

<section class="bux-hero bux-hero--scarlet bux-hero--card-left bux-hero--16x9">
<div class="bux-hero__items">
<div
id="bux-hero__carousel-1386469300-tab-1"
class="bux-hero__container bux-hero__container--showing"
>
<div class="bux-hero__image-container">
<figure class="bux-image">
<img
class="bux-image--16x9"
src="/images/placeholders/osu-bux-5.jpg"
alt="Graduates performing the O-H-I-O pose"
height=""
width=""
/>
</figure>
</div>

<div class="bux-hero-text-content">
<h2 class="bux-heading bux-hero__header">Headline lorem ipsum</h2>

<div class="bux-hero__subheader">
<span>Subhead lorem ipsum dolor met</span>
</div>

<a class="bux-button bux-button--alt" href="#" rel="noopener">
<span class="bux-button__text bux-button--alt__text">
Call to Action
</span>
</a>
</div>
</div>
</div>
</section>

Scarlet Right 16:9​

<section class="bux-hero bux-hero--scarlet bux-hero--card-right bux-hero--16x9">
<div class="bux-hero__items">
<div
id="bux-hero__carousel-1992861975-tab-1"
class="bux-hero__container bux-hero__container--showing"
>
<div class="bux-hero__image-container">
<figure class="bux-image">
<img
class="bux-image--16x9"
src="/images/placeholders/osu-bux-5.jpg"
alt="Graduates performing the O-H-I-O pose"
height=""
width=""
/>
</figure>
</div>

<div class="bux-hero-text-content">
<h2 class="bux-heading bux-hero__header">Headline lorem ipsum</h2>

<div class="bux-hero__subheader">
<span>Subhead lorem ipsum dolor met</span>
</div>

<a class="bux-button bux-button--alt" href="#" rel="noopener">
<span class="bux-button__text bux-button--alt__text">
Call to Action
</span>
</a>
</div>
</div>
</div>
</section>

Gray Left 16:9​

<section class="bux-hero bux-hero--card-left bux-hero--16x9">
<div class="bux-hero__items">
<div
id="bux-hero__carousel-656967714-tab-1"
class="bux-hero__container bux-hero__container--showing"
>
<div class="bux-hero__image-container">
<figure class="bux-image">
<img
class="bux-image--16x9"
src="/images/placeholders/osu-bux-5.jpg"
alt="Graduates performing the O-H-I-O pose"
height=""
width=""
/>
</figure>
</div>

<div class="bux-hero-text-content">
<h2 class="bux-heading bux-hero__header">Headline lorem ipsum</h2>

<div class="bux-hero__subheader">
<span>Subhead lorem ipsum dolor met</span>
</div>

<a class="bux-button bux-button--alt" href="#" rel="noopener">
<span class="bux-button__text bux-button--alt__text">
Call to Action
</span>
</a>
</div>
</div>
</div>
</section>

Gray Right 16:9​

<section class="bux-hero bux-hero--card-right bux-hero--16x9">
<div class="bux-hero__items">
<div
id="bux-hero__carousel-800433496-tab-1"
class="bux-hero__container bux-hero__container--showing"
>
<div class="bux-hero__image-container">
<figure class="bux-image">
<img
class="bux-image--16x9"
src="/images/placeholders/osu-bux-5.jpg"
alt="Graduates performing the O-H-I-O pose"
height=""
width=""
/>
</figure>
</div>

<div class="bux-hero-text-content">
<h2 class="bux-heading bux-hero__header">Headline lorem ipsum</h2>

<div class="bux-hero__subheader">
<span>Subhead lorem ipsum dolor met</span>
</div>

<a class="bux-button bux-button--alt" href="#" rel="noopener">
<span class="bux-button__text bux-button--alt__text">
Call to Action
</span>
</a>
</div>
</div>
</div>
</section>

If necessary, the hero component can display multiple slides as a carousel.

Statistic at Start​

A statistic Hero leads with a large number, followed by the text that gives it context. Add bux-hero-text-content--statistic to the text content and wrap the number in header__statistic, with the supporting copy in header__text-after-stat. In Twig, set hero_text_variant to statistic and supply a statistic_text object.

<section class="bux-hero bux-hero--gray bux-hero--card-left bux-hero--3x2">
<div class="bux-hero__items">
<div
id="bux-hero__carousel-1069769561-tab-1"
class="bux-hero__container bux-hero__container--showing"
>
<div class="bux-hero__image-container">
<figure class="bux-image">
<img
class="bux-image--3x2"
src="/images/placeholders/osu-bux-5.jpg"
alt="Graduates performing the O-H-I-O pose"
height=""
width=""
/>
</figure>
</div>

<div class="bux-hero-text-content bux-hero-text-content--statistic">
<h2 class="bux-heading bux-hero__header">
<span class="header__statistic">50%</span>

<span class="header__text-after-stat">
of students graduate with no debt.
</span>
</h2>

<div class="bux-hero__subheader">
<span></span>
</div>

<a class="bux-button bux-button--alt" href="#" rel="noopener">
<span class="bux-button__text bux-button--alt__text">
Call to Action
</span>
</a>
</div>
</div>
</div>
</section>

Statistic in Middle​

The statistic can also sit between two pieces of copy. Add the leading text in header__text-before-stat and the rest in header__text-after-stat. Keep the statistic short so the headline stays readable at mobile widths.

<section class="bux-hero bux-hero--gray bux-hero--card-left bux-hero--3x2">
<div class="bux-hero__items">
<div
id="bux-hero__carousel-1047578846-tab-1"
class="bux-hero__container bux-hero__container--showing"
>
<div class="bux-hero__image-container">
<figure class="bux-image">
<img
class="bux-image--3x2"
src="/images/placeholders/osu-bux-5.jpg"
alt="Graduates performing the O-H-I-O pose"
height=""
width=""
/>
</figure>
</div>

<div class="bux-hero-text-content bux-hero-text-content--statistic">
<h2 class="bux-heading bux-hero__header">
<span class="header__text-before-stat">Ohio State is the</span>

<span class="header__statistic">#15</span>

<span class="header__text-after-stat">
public research university.
</span>
</h2>

<div class="bux-hero__subheader">
<span></span>
</div>

<a class="bux-button bux-button--alt" href="#" rel="noopener">
<span class="bux-button__text bux-button--alt__text">
Call to Action
</span>
</a>
</div>
</div>
</div>
</section>

Image with Gray Text Box​

<section class="bux-hero bux-hero--gray bux-hero--card-full bux-hero--16x9">
<div class="bux-hero__items">
<div
id="bux-hero__carousel-809205362-tab-1"
class="bux-hero__container bux-hero__container--showing"
>
<div class="bux-hero__image-container">
<figure class="bux-image">
<img
class="bux-image--16x9"
src="/images/placeholders/osu-bux-5.jpg"
alt="Graduates performing the O-H-I-O pose"
height=""
width=""
/>
</figure>
</div>

<div class="bux-hero-text-content">
<h2 class="bux-heading bux-hero__header">Headline lorem ipsum</h2>

<a class="bux-hero__subheader bux-text-link" href="#" rel="noopener">
<span class="bux-hero__subheader__text bux-text-link__text">
Subhead lorem ipsum dolor met
</span>
</a>
</div>
</div>
</div>
</section>

Image with White Text Box​

<section class="bux-hero bux-hero--white bux-hero--card-full bux-hero--16x9">
<div class="bux-hero__items">
<div
id="bux-hero__carousel-1882170495-tab-1"
class="bux-hero__container bux-hero__container--showing"
>
<div class="bux-hero__image-container">
<figure class="bux-image">
<img
class="bux-image--16x9"
src="/images/placeholders/osu-bux-5.jpg"
alt="Graduates performing the O-H-I-O pose"
height=""
width=""
/>
</figure>
</div>

<div class="bux-hero-text-content">
<h2 class="bux-heading bux-hero__header">Headline lorem ipsum</h2>

<a class="bux-hero__subheader bux-text-link" href="#" rel="noopener">
<span class="bux-hero__subheader__text bux-text-link__text">
Subhead lorem ipsum dolor met
</span>
</a>
</div>
</div>
</div>
</section>

Video with Gray Text Box​

<section class="bux-hero bux-hero--gray bux-hero--card-full bux-hero--16x9">
<div class="bux-hero__items">
<div
id="bux-hero__carousel-2083251832-tab-1"
class="bux-hero__container bux-hero__container--showing"
>
<div class="bux-hero__image-container">
<div class="bux-hero__image">
<video
aria-label="Background Video"
tabindex="-1"
loop
autoplay
playsinline
muted
class="bux-hero__video"
>
<source
src="/images/placeholders/hero-video-clip.mp4"
type="video/mp4"
/>
</video>
<button type="button" class="bux-hero__video-button">
<span class="visually-hidden">Pause video</span>
<div
class="bux-hero__video-button-icon bux-hero__video-button-icon--play"
aria-hidden="true"
>
<span class="bux-icon icon-play-fill" aria-hidden="true"></span>
</div>
<div
class="bux-hero__video-button-icon bux-hero__video-button-icon--pause"
aria-hidden="true"
>
<span class="bux-icon icon-pause-fill" aria-hidden="true"></span>
</div>
</button>
</div>
</div>

<div class="bux-hero-text-content">
<h2 class="bux-heading bux-hero__header">Headline lorem ipsum</h2>

<a class="bux-hero__subheader bux-text-link" rel="noopener">
<span class="bux-hero__subheader__text bux-text-link__text">
Subhead lorem ipsum dolor met
</span>
</a>
</div>
</div>
</div>
</section>

Video with White Text Box​

<section class="bux-hero bux-hero--white bux-hero--card-full bux-hero--16x9">
<div class="bux-hero__items">
<div
id="bux-hero__carousel-761585474-tab-1"
class="bux-hero__container bux-hero__container--showing"
>
<div class="bux-hero__image-container">
<div class="bux-hero__image">
<video
aria-label="Background Video"
tabindex="-1"
loop
autoplay
playsinline
muted
class="bux-hero__video"
>
<source
src="/images/placeholders/hero-video-clip.mp4"
type="video/mp4"
/>
</video>
<button type="button" class="bux-hero__video-button">
<span class="visually-hidden">Pause video</span>
<div
class="bux-hero__video-button-icon bux-hero__video-button-icon--play"
aria-hidden="true"
>
<span class="bux-icon icon-play-fill" aria-hidden="true"></span>
</div>
<div
class="bux-hero__video-button-icon bux-hero__video-button-icon--pause"
aria-hidden="true"
>
<span class="bux-icon icon-pause-fill" aria-hidden="true"></span>
</div>
</button>
</div>
</div>

<div class="bux-hero-text-content">
<h2 class="bux-heading bux-hero__header">Headline lorem ipsum</h2>

<a class="bux-hero__subheader bux-text-link" rel="noopener">
<span class="bux-hero__subheader__text bux-text-link__text">
Subhead lorem ipsum dolor met
</span>
</a>
</div>
</div>
</div>
</section>

Usage​

Dos​

  • Use to call attention to the highest-priority among all content, such as a campaign, story or other call-to-action
  • Limit to one per page
  • Include a high-quality image
  • Strongly consider using the included Button as a call-to-action
  • Use the variant with scarlet background to convey a bold and energetic feel for a less formal audience
  • Use the variant with image on the right if the subject of the image faces left
  • Use the variant with image on the left if the subject of the image faces right

Don’ts​

  • Don’t autoplay the slides when using a Carousel
  • Don’t use a Hero on a page that is not the homepage; If a high visual emphasis is needed, consider a Featured Card instead

Accessibility​

Back to top