A call to action prompts a specific action from the user. Call to actions are typically clickable buttons that, when clicked, perform an action or may lead to another webpage that requests an action.
The call to action component is part of the hero block snippet, but it may also be used alone as a component or paired with other elements. It may be left aligned or centered.
The centered version is often used as a dividing element between sections within a marketing landing page. It may or may not have the button.
- Handle: @call-to-action
- Preview:
- Filesystem Path: src/components/03-page-elements-and-patterns/content-structure/call-to-action-block/call-to-action-block.hbs
- References (1): @link-bar
- Referenced by (18): @call-to-action-above-highlights, @call-to-action-above-touts, @call-to-action-beside-touts, @call-to-action-with-featured-image, @call-to-action-with-featured-image--flip, @call-to-action-with-featured-image--shaded, @call-to-action-with-featured-image--expand, @call-to-action-with-featured-video, @call-to-action-with-featured-video--flip, @call-to-action-with-featured-video--shaded, @call-to-action-with-featured-video--expand, @call-to-action-with-hero, @call-to-action-with-hero--video, @contact-information, @featured-news, @hero, @hero--video, @carousel
<div class="ContentBlock call-to-action">
<div class="eyebrow">Lorem ipsum</div>
<h2 class="headline">Lorem ipsum dolor sit amet consectetur</h2>
<div class="description">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Vero odio, optio deserunt quam maxime quos et impedit consectetur laboriosam nemo ut odit alias? Quod culpa necessitatibus assumenda, quo accusantium consequuntur.</div>
<div class="link-bar">
<ul class="container">
<li>
<a href="#" class="button">Lorem ipsum</a>
</li>
</ul>
</div>
</div>
<div class="ContentBlock call-to-action">
{{#if eyebrow}}
<div class="eyebrow">{{eyebrow.text}}</div>
{{/if}}
<h2 class="headline">{{headline}}</h2>
{{#if description}}
<div class="description">{{description}}</div>
{{/if}}
{{#>description custom}}
{{/description}}
{{#if linkBar}}
{{render '@link-bar' linkBar}}
{{/if}}
</div>
{
"eyebrow": {
"text": "Lorem ipsum"
},
"headline": "Lorem ipsum dolor sit amet consectetur",
"description": "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Vero odio, optio deserunt quam maxime quos et impedit consectetur laboriosam nemo ut odit alias? Quod culpa necessitatibus assumenda, quo accusantium consequuntur.",
"linkBar": {
"link": [
{
"text": "Lorem ipsum",
"url": "#"
}
]
}
}