There are no notes for this item.
- Handle: @hero
- Variants (2): Image , Video
- Preview:
- Filesystem Path: src\components\02-blocks\hero\hero.hbs
- References (2): @grounding-bars-vertical, @call-to-action
- Referenced by (1): @base
<div id="hero" class="hero expand">
<div class="container">
<img class="image" src="http://picsum.photos/1920/1080?random" alt="" />
</div>
<div class="cta-container">
<div class="grounding-bar svg-wrapper">
<svg class="grounding-bars" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 20">
<path fill-rule="evenodd" d="M0 20V0h12v20H0zm24 0V0h12v20H24zm24 0V0h12v20H48z" />
</svg> </div>
<div class="ContentBlock call-to-action">
<div class="eyebrow">
</div>
<h2 class="headline">Lorem ipsum dolor sit amet consectetur</h2>
<p class="description">Lorem ipsum dolor sit amet consectetur adipisicing elit. Perspiciatis tenetur blanditiis excepturi.</p>
<div class="link-bar">
<ul class="container">
<li>
<a href="#" class="button">Lorem ipsum</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div id="hero" class="hero expand">
<div class="container">
{{#if image}}
<img class="image" src="{{path image.src}}" alt="{{image.alt}}" />
{{/if}}
{{#if video}}
{{#if video.alt}}
<div role="region" aria-label="Hero video screen reader information" class="screen-reader">
{{video.alt}}
</div>
{{/if}}
<video id="video" preload="metadata" autoplay muted playsinline loop poster="{{path video.poster}}">
{{#each video.sources}}
<source type="video/{{type}}" src="{{path src}}">
{{/each}}
Your browser does not support HTML5 video.
</video>
<script src="{{path '/scripts/components/hero.js'}}"></script>
{{/if}}
</div>
{{#if cta}}
<div class="cta-container">
<div class="grounding-bar svg-wrapper">
{{> @grounding-bars-vertical}}
</div>
{{render '@call-to-action' cta}}
</div>
{{/if}}
</div>
{
"cta": {
"eyebrow": "Lorem ipsum",
"headline": "Lorem ipsum dolor sit amet consectetur",
"description": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Perspiciatis tenetur blanditiis excepturi.",
"linkBar": {
"link": [
{
"text": "Lorem ipsum",
"url": "#"
}
]
}
}
}