Skip to content

Commit

Permalink
Merge branch 'sandbox/TCI-1176--video-embed-triage' into 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
melwong-jcc committed Mar 13, 2024
2 parents 031818d + 7a65d51 commit b4bd0af
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions source/_patterns/02-molecules/video/video.twig
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,14 @@

{#<div class="{{ classes|join(' ') }}" style="padding-bottom: {{ ratio * 100 }}%;">#}
<div class="{{ classes|join(' ') }}">
<iframe class="embed-responsive-item" title="{{ video.provider ~ ' ' ~ 'video player'|t }}"
width="{{ video.width }}" height="{{ video.height }}"
src="{{ url }}" data-src="{{ data_url }}"
frameborder="0" allow="autoplay"></iframe>
<div class = "jcc-video__embed_items">
<iframe class="embed-responsive-item" title="{{ video.provider ~ ' ' ~ 'video player'|t }}"
width="{{ video.width }}" height="{{ video.height }}"
src="{{ url }}" data-src="{{ data_url }}"
frameborder="0" allow="autoplay"></iframe>

{% if video.cover %}
<button class="jcc-video__cover" style="background-image: url({{ video.cover }});">{{ "Play video"|t }}</button>
{% endif %}
{% if video.cover %}
<button class="jcc-video__cover" style="background-image: url({{ video.cover }});">{{ "Play video"|t }}</button>
{% endif %}
</div>
</div>

0 comments on commit b4bd0af

Please sign in to comment.