@hero([
"video" => true,
"image" => "https://picsum.photos/id/1026/1500/1000",
"size" => "small",
"overlay" => "neutral",
"title" => "Donec ullamcorper nulla non.",
"paragraph" => "Aenean lacinia bibendum nulla sed consectetur, egestas eget quam."
])
@endhero
Normal hero
Renders a normal hero area.
Donec ullamcorper nulla non metus auctor fringilla.
This is a byline
Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras justo odio, dapibus ac facilisis in, egestas eget quam.
<section class="c-hero c-hero--image c-hero--default c-hero--normal c-hero--apply-rounded-corners c-hero--apply-shadows c-hero--overlay" aria-label="Hero" data-component="hero">
<div class="c-hero__image" data-js-toggle-item="toggle-animation" data-js-toggle-class="u-animation--pause">
<!-- image.blade.php -->
<figure class="c-image c-image--cover" data-component="image">
<div class="c-image__image-wrapper">
<img class="c-image__image" src="https://picsum.photos/id/1026/1500/1000" alt="" loading="eager" fetchpriority="high" sizes="100vw" />
</div>
</figure>
</div>
<div class="c-hero__overlay"></div>
<div class="o-container c-hero__container">
<div class="c-hero__content" style="">
<!-- typography.blade.php (hasSeenH1) original: h1 -->
<h2 class="c-typography c-hero__title c-typography__variant--h1" data-component="typography">
Donec ullamcorper nulla non metus auctor fringilla.
</h2><!-- typography.blade.php (hasSeenH1) original: span -->
<span class="c-typography c-hero__byline c-typography__variant--h2" data-component="typography">This is a byline</span> <!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-hero__body c-typography__variant--p" data-component="typography">
Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla. Fusce dapibus, tellus ac cursus commodo,
tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras justo odio, dapibus ac facilisis in, egestas eget
quam.
</p>
</div>
</div>
</section>
@hero([
"image" => "https://picsum.photos/id/1026/1500/1000",
"size" => "normal",
"overlay" => "neutral",
"title" => "Donec ullamcorper nulla non metus auctor fringilla.",
"byline" => "This is a byline",
"paragraph" => "Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras justo odio, dapibus ac facilisis in, egestas eget quam."
])
@endhero
Large hero
Renders a large hero area.
Donec ullamcorper nulla non metus auctor fringilla.
This is a byline
Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras justo odio, dapibus ac facilisis in, egestas eget quam.
<section class="c-hero c-hero--image c-hero--default c-hero--large c-hero--apply-rounded-corners c-hero--apply-shadows c-hero--overlay" aria-label="Hero" data-component="hero">
<div class="c-hero__image" data-js-toggle-item="toggle-animation" data-js-toggle-class="u-animation--pause">
<!-- image.blade.php -->
<figure class="c-image c-image--cover" data-component="image">
<div class="c-image__image-wrapper">
<img class="c-image__image" src="https://picsum.photos/id/1026/1500/1000" alt="" loading="eager" fetchpriority="high" sizes="100vw" />
</div>
</figure>
</div>
<div class="c-hero__overlay"></div>
<div class="o-container c-hero__container">
<div class="c-hero__content" style="">
<!-- typography.blade.php (hasSeenH1) original: h1 -->
<h2 class="c-typography c-hero__title c-typography__variant--h1" data-component="typography">
Donec ullamcorper nulla non metus auctor fringilla.
</h2><!-- typography.blade.php (hasSeenH1) original: span -->
<span class="c-typography c-hero__byline c-typography__variant--h2" data-component="typography">This is a byline</span> <!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-hero__body c-typography__variant--p" data-component="typography">
Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla. Fusce dapibus, tellus ac cursus commodo,
tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras justo odio, dapibus ac facilisis in, egestas eget
quam.
</p>
</div>
</div>
</section>
@hero([
"image" => "https://picsum.photos/id/1026/1500/1000",
"size" => "large",
"overlay" => "vibrant",
"title" => "Donec ullamcorper nulla non metus auctor fringilla.",
"byline" => "This is a byline",
"paragraph" => "Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras justo odio, dapibus ac facilisis in, egestas eget quam."
])
@endhero
Large hero (Without text)
Renders a large hero area, without text. Overlay should not be visible.
Renders a hero with a background color for the content area.
Donec ullamcorper nulla.
This is a byline
Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.
<section class="c-hero c-hero--image c-hero--default c-hero--normal c-hero--apply-rounded-corners c-hero--apply-shadows c-hero--has-content-background-color" aria-label="Hero" data-component="hero">
<div class="c-hero__image" data-js-toggle-item="toggle-animation" data-js-toggle-class="u-animation--pause">
<!-- image.blade.php -->
<figure class="c-image c-image--type-jpg?hmac=jtdb98zcenyiyfc6enzwumlcztz7yl2hzbmgw8tcfui c-image--cover" data-component="image">
<div class="c-image__image-wrapper">
<img class="c-image__image" src="https://fastly.picsum.photos/id/1026/1500/1000.jpg?hmac=Jtdb98ZCenyIyfC6ENZwUMLCzTz7Yl2hZBmGW8TCfUI" alt="" loading="eager" fetchpriority="high" sizes=
"100vw" />
</div>
</figure>
</div>
<div class="o-container c-hero__container">
<div class="c-hero__content" style="background-color: #FFFFFF;">
<!-- typography.blade.php (hasSeenH1) original: h1 -->
<h2 class="c-typography c-hero__title c-typography__variant--h1" data-component="typography">
Donec ullamcorper nulla.
</h2><!-- typography.blade.php (hasSeenH1) original: span -->
<span class="c-typography c-hero__byline c-typography__variant--h2" data-component="typography">This is a byline</span> <!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-hero__body c-typography__variant--p" data-component="typography">
Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.
</p>
</div>
</div>
</section>
@hero([
"image" => "https://fastly.picsum.photos/id/1026/1500/1000.jpg?hmac=Jtdb98ZCenyIyfC6ENZwUMLCzTz7Yl2hZBmGW8TCfUI",
"size" => "normal",
"overlay" => "neutral",
"title" => "Donec ullamcorper nulla.",
"byline" => "This is a byline",
"paragraph" => "Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.",
"contentBackgroundColor" => "#FFFFFF"
])
@endhero
Content alignment
Renders a hero with a content aligned horizontal "center" and vertical "center".
Donec ullamcorper nulla.
This is a byline
Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.
<section class=
"c-hero c-hero--image c-hero--default c-hero--normal c-hero--content-vertical__center c-hero--content-horizontal__center c-hero--apply-rounded-corners c-hero--apply-shadows c-hero--has-content-background-color"
aria-label="Hero" data-component="hero">
<div class="c-hero__image" data-js-toggle-item="toggle-animation" data-js-toggle-class="u-animation--pause">
<!-- image.blade.php -->
<figure class="c-image c-image--type-jpg?hmac=jtdb98zcenyiyfc6enzwumlcztz7yl2hzbmgw8tcfui c-image--cover" data-component="image">
<div class="c-image__image-wrapper">
<img class="c-image__image" src="https://fastly.picsum.photos/id/1026/1500/1000.jpg?hmac=Jtdb98ZCenyIyfC6ENZwUMLCzTz7Yl2hZBmGW8TCfUI" alt="" loading="eager" fetchpriority="high" sizes=
"100vw" />
</div>
</figure>
</div>
<div class="o-container c-hero__container">
<div class="c-hero__content" style="background-color: #FFFFFF;">
<!-- typography.blade.php (hasSeenH1) original: h1 -->
<h2 class="c-typography c-hero__title c-typography__variant--h1" data-component="typography">
Donec ullamcorper nulla.
</h2><!-- typography.blade.php (hasSeenH1) original: span -->
<span class="c-typography c-hero__byline c-typography__variant--h2" data-component="typography">This is a byline</span> <!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-hero__body c-typography__variant--p" data-component="typography">
Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.
</p>
</div>
</div>
</section>
@hero([
"image" => "https://fastly.picsum.photos/id/1026/1500/1000.jpg?hmac=Jtdb98ZCenyIyfC6ENZwUMLCzTz7Yl2hZBmGW8TCfUI",
"size" => "normal",
"overlay" => "neutral",
"title" => "Donec ullamcorper nulla.",
"byline" => "This is a byline",
"paragraph" => "Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.",
"contentBackgroundColor" => "#FFFFFF",
"contentAlignmentHorizontal" => "center",
"contentAlignmentVertical" => "center",
])
@endhero
Text alignment
Renders a hero with text aligned center.
Donec ullamcorper nulla.
This is a byline
Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.
<section class=
"c-hero c-hero--image c-hero--default c-hero--normal c-hero--content-vertical__center c-hero--content-horizontal__right c-hero--text-align__right c-hero--apply-rounded-corners c-hero--apply-shadows c-hero--has-content-background-color"
aria-label="Hero" data-component="hero">
<div class="c-hero__image" data-js-toggle-item="toggle-animation" data-js-toggle-class="u-animation--pause">
<!-- image.blade.php -->
<figure class="c-image c-image--type-jpg?hmac=jtdb98zcenyiyfc6enzwumlcztz7yl2hzbmgw8tcfui c-image--cover" data-component="image">
<div class="c-image__image-wrapper">
<img class="c-image__image" src="https://fastly.picsum.photos/id/1026/1500/1000.jpg?hmac=Jtdb98ZCenyIyfC6ENZwUMLCzTz7Yl2hZBmGW8TCfUI" alt="" loading="eager" fetchpriority="high" sizes=
"100vw" />
</div>
</figure>
</div>
<div class="o-container c-hero__container">
<div class="c-hero__content" style="background-color: #FFFFFF;">
<!-- typography.blade.php (hasSeenH1) original: h1 -->
<h2 class="c-typography c-hero__title c-typography__variant--h1" data-component="typography">
Donec ullamcorper nulla.
</h2><!-- typography.blade.php (hasSeenH1) original: span -->
<span class="c-typography c-hero__byline c-typography__variant--h2" data-component="typography">This is a byline</span> <!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-hero__body c-typography__variant--p" data-component="typography">
Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.
</p>
</div>
</div>
</section>
@hero([
"image" => "https://fastly.picsum.photos/id/1026/1500/1000.jpg?hmac=Jtdb98ZCenyIyfC6ENZwUMLCzTz7Yl2hZBmGW8TCfUI",
"size" => "normal",
"overlay" => "neutral",
"title" => "Donec ullamcorper nulla.",
"byline" => "This is a byline",
"paragraph" => "Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.",
"textColor" => false,
"contentBackgroundColor" => "#FFFFFF",
"textAlignment" => "right",
"contentAlignmentHorizontal" => "right",
"contentAlignmentVertical" => "center",
])
@endhero
Button
Renders a hero with a button.
Donec ullamcorper nulla.
This is a byline
Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.
<section class="c-hero c-hero--image c-hero--default c-hero--normal c-hero--apply-rounded-corners c-hero--apply-shadows c-hero--has-content-background-color" aria-label="Hero" data-component="hero">
<div class="c-hero__image" data-js-toggle-item="toggle-animation" data-js-toggle-class="u-animation--pause">
<!-- image.blade.php -->
<figure class="c-image c-image--type-jpg?hmac=jtdb98zcenyiyfc6enzwumlcztz7yl2hzbmgw8tcfui c-image--cover" data-component="image">
<div class="c-image__image-wrapper">
<img class="c-image__image" src="https://fastly.picsum.photos/id/1026/1500/1000.jpg?hmac=Jtdb98ZCenyIyfC6ENZwUMLCzTz7Yl2hZBmGW8TCfUI" alt="" loading="eager" fetchpriority="high" sizes=
"100vw" />
</div>
</figure>
</div>
<div class="o-container c-hero__container">
<div class="c-hero__content" style="background-color: #FFFFFF;">
<!-- typography.blade.php (hasSeenH1) original: h1 -->
<h2 class="c-typography c-hero__title c-typography__variant--h1" data-component="typography">
Donec ullamcorper nulla.
</h2><!-- typography.blade.php (hasSeenH1) original: span -->
<span class="c-typography c-hero__byline c-typography__variant--h2" data-component="typography">This is a byline</span> <!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-hero__body c-typography__variant--p" data-component="typography">
Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.
</p><a class="c-button u-margin__top--2 c-button__filled c-button__filled--primary c-button--md" href="#" target="_top" aria-label="Button" data-component="button"><span class=
"c-button__label"><span class="c-button__label-text">Button</span></span></a>
</div>
</div>
</section>
@hero([
"image" => "https://fastly.picsum.photos/id/1026/1500/1000.jpg?hmac=Jtdb98ZCenyIyfC6ENZwUMLCzTz7Yl2hZBmGW8TCfUI",
"size" => "normal",
"overlay" => "neutral",
"title" => "Donec ullamcorper nulla.",
"byline" => "This is a byline",
"paragraph" => "Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.",
"contentBackgroundColor" => "#FFFFFF",
"buttonArgs" => ["href" => "#", "text" => "Button", "color" => "primary", "classList" => ["u-margin__top--2"]]
])
@endhero
Multi column hero
Renders a normal multi column area.
This is a title
Nullam quis risus eget urna mollis ornare vel eu leo. Maecenas sed diam eget risus varius blandit sit amet non magna. Etiam porta sem malesuada magna mollis euismod. Donec ullamcorper nulla non metus auctor fringilla.
<section class="c-hero c-hero--image c-hero--twoColumn c-hero--normal c-hero--apply-rounded-corners c-hero--apply-shadows" aria-label="Hero" data-component="hero">
<div class="c-hero__background" style=""></div>
<div class="o-container">
<!-- group.blade.php -->
<div class="c-group c-hero__content o-grid u-flex-direction--row--reverse c-group--horizontal c-group--flex-wrap-wrap" data-component="group">
<div class="c-hero__group c-hero__image-container">
<!-- image.blade.php -->
<figure class="c-image u-margin__bottom--0 c-hero__group-image c-image--cover" data-component="image">
<div class="c-image__image-wrapper">
<img class="c-image__image" src="https://picsum.photos/id/1026/1500/1000" alt="" loading="eager" fetchpriority="high" sizes="100vw" />
</div>
</figure>
</div>
<div class="c-hero__group c-hero__content-container">
<!-- group.blade.php -->
<div class="c-group c-hero__group-content c-group--vertical c-group--justify-content-center" data-component="group">
<!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-typography__variant--h1" data-component="typography">
This is a title
</p><!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-typography__variant--body" data-component="typography">
Nullam quis risus eget urna mollis ornare vel eu leo. Maecenas sed diam eget risus varius blandit sit amet non magna. Etiam porta sem malesuada magna mollis euismod. Donec ullamcorper
nulla non metus auctor fringilla.
</p>
</div>
</div>
</div>
</div>
</section>
@hero([
"image" => "https://picsum.photos/id/1026/1500/1000",
'heroView' => 'twoColumn'
])
@slot('content')
@typography([
'variant' => 'h1'
])
This is a title
@endtypography
@typography([
'variant' => 'body'
])
Nullam quis risus eget urna mollis ornare vel eu leo. Maecenas sed diam eget risus varius blandit sit amet non magna. Etiam porta sem malesuada magna mollis euismod. Donec ullamcorper nulla non metus auctor fringilla.
@endtypography
@endslot
@endhero
Hero with call to actions
Renders a normal hero area with call to actions.
Donec ullamcorper nulla non metus auctor fringilla.
Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.
@hero([
"image" => "https://picsum.photos/id/1026/1500/1000",
"size" => "normal",
"heroView" => "callToActions",
"title" => "Donec ullamcorper nulla non metus auctor fringilla.",
"paragraph" => "Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.",
"customHeroData" => [
"mediaFirst" => true
],
"buttonArgs" => [
["href" => "#", "text" => "Primary action", "color" => "primary"],
["href" => "#", "text" => "Secondary action", "color" => "secondary"]
]
])
@endhero
Stretch hero
Renders a hero with stretch enabled, making it fill the full viewport height.
Donec ullamcorper nulla non metus auctor fringilla.
This is a byline
Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.
<section class="c-hero c-hero--stretch c-hero--image c-hero--default c-hero--normal c-hero--apply-rounded-corners c-hero--apply-shadows c-hero--overlay" aria-label="Hero" data-component="hero">
<div class="c-hero__image" data-js-toggle-item="toggle-animation" data-js-toggle-class="u-animation--pause">
<!-- image.blade.php -->
<figure class="c-image c-image--cover" data-component="image">
<div class="c-image__image-wrapper">
<img class="c-image__image" src="https://picsum.photos/id/1026/1500/1000" alt="" loading="eager" fetchpriority="high" sizes="100vw" />
</div>
</figure>
</div>
<div class="c-hero__overlay"></div>
<div class="o-container c-hero__container">
<div class="c-hero__content" style="">
<!-- typography.blade.php (hasSeenH1) original: h1 -->
<h2 class="c-typography c-hero__title c-typography__variant--h1" data-component="typography">
Donec ullamcorper nulla non metus auctor fringilla.
</h2><!-- typography.blade.php (hasSeenH1) original: span -->
<span class="c-typography c-hero__byline c-typography__variant--h2" data-component="typography">This is a byline</span> <!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-hero__body c-typography__variant--p" data-component="typography">
Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.
</p>
</div>
</div>
</section>
@hero([
"image" => "https://picsum.photos/id/1026/1500/1000",
"size" => "normal",
"overlay" => "neutral",
"stretch" => true,
"title" => "Donec ullamcorper nulla non metus auctor fringilla.",
"byline" => "This is a byline",
"paragraph" => "Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla."
])
@endhero
Responsive image contract
Renders a hero fed by a fake ImageInterface with several candidate sizes, verifying only one eager, high-priority <img> is rendered instead of one hidden image per breakpoint.
Rendered from a fake responsive image contract
Inspect the element: only one should be present, with loading="eager", fetchpriority="high" and sizes="100vw".
The image is provided as an object implementing several candidate sizes instead of a plain URL, exercising the same srcset/container query data path used for real images.
<section class="c-hero c-hero--image c-hero--default c-hero--large c-hero--apply-rounded-corners c-hero--apply-shadows c-hero--overlay" aria-label="Hero" data-component="hero">
<div class="c-hero__image" data-js-toggle-item="toggle-animation" data-js-toggle-class="u-animation--pause">
<!-- image.blade.php -->
<figure class="c-image c-image--cover" data-component="image">
<div class="c-image__image-wrapper">
<img class="c-image__image" src="https://picsum.photos/seed/styleguide-hero-responsive/1920/800" alt="A photograph used to demonstrate responsive image loading." loading="eager"
fetchpriority="high" sizes="100vw" style="object-position: 50% 50%;" width="1920" height="800" srcset=
"https://picsum.photos/seed/styleguide-hero-responsive/425/177 425w, https://picsum.photos/seed/styleguide-hero-responsive/768/320 768w, https://picsum.photos/seed/styleguide-hero-responsive/1024/427 1024w, https://picsum.photos/seed/styleguide-hero-responsive/1440/600 1440w, https://picsum.photos/seed/styleguide-hero-responsive/1920/800 1920w" />
</div>
</figure>
</div>
<div class="c-hero__overlay"></div>
<div class="o-container c-hero__container">
<div class="c-hero__content" style="">
<!-- typography.blade.php (hasSeenH1) original: h1 -->
<h2 class="c-typography c-hero__title c-typography__variant--h1" data-component="typography">
Rendered from a fake responsive image contract
</h2><!-- typography.blade.php (hasSeenH1) original: span -->
<span class="c-typography c-hero__byline c-typography__variant--h2" data-component="typography">Inspect the element: only one <img /> should be present, with loading="eager",
fetchpriority="high" and sizes="100vw".</span> <!-- typography.blade.php (hasSeenH1) original: p -->
<p class="c-typography c-hero__body c-typography__variant--p" data-component="typography">
The image is provided as an object implementing several candidate sizes instead of a plain URL, exercising the same srcset/container query data path used for real images.
</p>
</div>
</div>
</section>
@hero([
"image" => \MunicipioStyleGuide\Helper\MockImage::responsive('styleguide-hero-responsive'),
"size" => "large",
"overlay" => "neutral",
"title" => "Rendered from a fake responsive image contract",
"byline" => "Inspect the element: only one <img> should be present, with loading=\"eager\", fetchpriority=\"high\" and sizes=\"100vw\".",
"paragraph" => "The image is provided as an object implementing several candidate sizes instead of a plain URL, exercising the same srcset/container query data path used for real images."
])
@endhero
API
Parameter
Default
Type
Description
image
false
mixed
-
imageAttributeList
[]
array
-
imageFocus
[]
array
-
video
false
mixed
-
size
normal
string
-
title
string|boolean
-
byline
string
-
paragraph
string
-
stretch
false
boolean
-
animation
false
string|boolean
-
ariaLabel
Hero
string
-
heroView
default
string
-
customHeroData
false
mixed
-
meta
false
mixed
-
background
false
mixed
-
textColor
string
-
textAlignment
left
string
-
contentBackgroundColor
string
-
contentAlignmentVertical
bottom
string
-
contentAlignmentHorizontal
left
string
-
contentApplyRoundedCorners
true
boolean
-
contentApplyShadows
true
boolean
-
buttonArgs
[]
?array
-
poster
false
mixed
-
overlay
string
-
content
false
mixed
-
CSS API
Variable
Default
Type
Values
Description
--c-hero--base
var(--base)
range
-
Main unit that drives radius and spacing scales.
--c-hero--border-radius
var(--border-radius)
range
-
Border Radius
--c-hero--color--primary
var(--color--primary)
color
-
Primary
--c-hero--corner-shape
var(--corner-shape)
select
square, round, squircle, circular, bevel, scoop
Corner Shape
--c-hero--font-size-100
var(--font-size-100)
range
-
Base font size.
--c-hero--font-size-300
var(--font-size-300)
range
-
Two steps above base in the type scale. Equivalent to h5.
--c-hero--font-size-500
var(--font-size-500)
range
-
Four steps above base in the type scale. Equivalent to h3.
--c-hero--space
var(--space)
range
-
Base spacing unit. Used for padding and margin inside components.
--c-hero--color--alpha
var(--color--alpha)
rgba
-
Used for overlays. Includes opacity — set both color and alpha together.
--c-hero--shadow-color
var(--shadow-color)
rgba
-
Shadow Color
--c-hero--shadow-amount
var(--shadow-amount)
range
-
Multiplier for elevation shadows. 0 = none, 1 = default.