{% include '@bolt-components-broadcast/broadcast.twig' with {
content: content,
video: video,
attributes: {
id: 'broadcast-1',
}
} only %}
| Prop Name | Description | Type | Default Value | Option(s) |
|---|---|---|---|---|
|
attributes
|
A Drupal attributes object. Applies extra HTML attributes to the <bolt-broadcast> tag. |
object
| — |
|
|
content
|
Content of the layout. While anything can be passed, layout items are preferred. |
any
| — |
|
|
template
|
Select from a predefined set of layout templates. Numbers represent % of each layout item widths. The @from-* keywords mean "starting from a particular breakpoint". |
array[string]
| — |
|
|
gutter
|
Set the horizontal spacing in between layout items. |
string
|
medium
|
|
|
row_gutter
|
Set the vertical spacing in between layout items. |
string
|
medium
|
|
|
padding_top
|
Set the top padding of the layout. |
string
|
medium
|
|
|
padding_bottom
|
Set the bottom padding of the layout. |
string
|
medium
|
|
|
align_items
|
Control the horizontal alignment of all layout items. |
string
|
center
|
|
|
valign_items
|
Control the vertical alignment of all layout items. Unset is required for setting equal-height layout items, do not set this prop if that is the intention. |
string
| — |
|
|
full_bleed
|
Removes all outer spacing, allowing the layout to extend from edge to edge of its container. |
boolean
|
false
|
|
|
mask
|
Adds a masking layer in the shape of a chess piece that animaes once scrolled to. |
boolean
|
false
|
|
|
background
|
An absolute positioned element that renders as a background (image, video, or shapes) inside relative positioned containers. |
object
| — |
|
|
video
|
A Brightcove video that will display inside the broadcast container. |
any
| — |
|
npm install @bolt/components-broadcast
{% set content %}
{% include '@bolt-elements-button/button.twig' with {
content: 'Play video',
attributes: {
type: 'button',
'data-bolt-broadcast-target': '#broadcast-1',
}
} only %}
{% endset %}
{% set layout_items %}
{% include '@bolt-layouts-layout/layout-item.twig' with {
content: content,
} only %}
{% endset %}
{% set video %}
..
{% endset %}
{% include '@bolt-components-broadcast/broadcast.twig' with {
content: layout_items,
video: video,
attributes: {
class: 't-bolt-gray-xlight',
id: 'broadcast-1',
}
} only %}
padding_top and padding_bottom properties from layout available here.
{% include '@bolt-components-broadcast/broadcast.twig' with {
padding_top: 'xlarge',
padding_bottom: 'xlarge',
// ..
} only %}
{% set background %}
{% set image %}
// ..
{% endset %}
{% include '@bolt-components-background/background.twig' with {
opacity: 'heavy',
fill: 'gradient',
items: [
image
]
} only %}
{% endset %}
{% include '@bolt-components-broadcast/broadcast.twig' with {
background: background,
// ..
} only %}
{% include '@bolt-components-broadcast/broadcast.twig' with {
content: content,
background: background,
video: video,
padding_top: 'none',
padding_bottom: 'none',
attributes: {
id: 'broadcast-use-case-1',
class: 't-bolt-dark'
}
} only %}
A history of
AI innovation
Over 40 years ago, Alan Trefler developed some of the first AI agents capable of playing chess at an elite level.
He applied the same principles to tech and business to unlock radical agility as never before.
{% include '@bolt-components-broadcast/broadcast.twig' with {
content: layout_items,
mask: true,
background: background,
padding_top: 'large',
padding_bottom: 'large',
align_items: 'center',
video: video,
attributes: {
id: 'broadcast-use-case-2',
class: 't-bolt-dark u-bolt-text-align-center'
}
} only %}