Skip to content

Commit

Permalink
add fan art video for Firefox 20th landing page (#15467)
Browse files Browse the repository at this point in the history
  • Loading branch information
wen-2018 authored Nov 7, 2024
1 parent fba0e13 commit 1df4859
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 6 deletions.
7 changes: 1 addition & 6 deletions bedrock/firefox/templates/firefox/firefox-20th/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,7 @@ <h2>Cheers to SUMO’s top contributors</h2>
{% call split(
block_class='fx20-content-fanart mzp-l-split-center-on-sm-md',
media_class='mzp-l-split-h-center',
image=resp_img(
url='img/firefox/firefox-20th/fan-art.png',
srcset={
'img/firefox/firefox-20th/fan-art-high-res.png': '2x'
},
),
media_include='firefox/firefox-20th/video-fanart.html',
media_after=True
) %}
<h2 class="fx20-fanart-title">{{ fan_title }}</h2>
Expand Down
31 changes: 31 additions & 0 deletions bedrock/firefox/templates/firefox/firefox-20th/video-fanart.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{#
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
#}

{% from "macros.html" import video_inline_embed with context %}

{% if LANG == "fr" %}
{% set video_title = 'Firefox a 20 ans - Célébrez avec nous' %}
{% elif LANG == "de" %}
{% set video_title = 'Firefox wird 20 - Feiere mit uns' %}
{% else %}
{% set video_title = 'Firefox Turns 20 - Celebrate with Us' %}
{% endif %}

{{ video_inline_embed(
id='SiLWHYrZyRc',
title=video_title,
image=resp_img(
url='img/firefox/firefox-20th/fan-art.png',
srcset={
'img/firefox/firefox-20th/fan-art-high-res.png': '2x'
},
optional_attributes={
'width': '800',
'height': '450',
'alt': '',
}
),
) }}

0 comments on commit 1df4859

Please sign in to comment.