-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update record revealed styles, fix some buttons (#1366)
- Loading branch information
Showing
13 changed files
with
215 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,75 @@ | ||
{% load wagtailcore_tags wagtailimages_tags i18n %} | ||
<section class="promoted-pages body-container body-container--short{% if bg %} promoted-pages--bg{% endif %}"> | ||
<div class="tna-container"> | ||
<div class="tna-column tna-column--full"> | ||
<h2 class="tna-heading promoted-pages__heading">{% trans value.heading %}</h2> | ||
</div> | ||
|
||
|
||
|
||
<!-- TODO --> | ||
<!-- {% for promoted_item in value.promoted_items %} | ||
<div class="tna-column tna-column--width-1-3 tna-column--width-1-2-small tna-column--full-tiny tna-!--margin-bottom-m"> | ||
{% image promoted_item.teaser_image fill-800x450 as card_image %} | ||
<!-- TODO: Can't concatinate author and date with description in Django templating --> | ||
<!-- | ||
<div class="tna-column tna-column--full"> | ||
<h2 class="tna-heading tna-heading--l">{% trans value.heading %}</h2> | ||
</div> | ||
{% for promoted_item in value.promoted_items %} | ||
{% with description=promoted_item.description %} | ||
{% include "../../components/card.html" with title=promoted_item.title href=promoted_item.url imageSrc=card_image.url imageWidth=800 imageHeight=450 text=promoted_item.description headingSize="m" headingLevel=3 %} | ||
<div class="tna-column tna-column--width-1-3 tna-column--width-1-2-small tna-column--full-tiny tna-!--margin-bottom-m"> | ||
</div> | ||
{% endfor %} --> | ||
{% image promoted_item.teaser_image fill-800x450 as card_image %} | ||
{% include "../../components/card.html" with title=promoted_item.title href=promoted_item.url imageSrc=card_image.url imageWidth=800 imageHeight=450 text=promoted_item.description headingSize="m" headingLevel=3 index=forloop.counter0 heading=heading %} | ||
</div> | ||
{% endwith %} | ||
{% endfor %} | ||
--> | ||
|
||
|
||
|
||
<ul class="card-grid card-grid__trio card-grid--list promoted-pages__cards" | ||
data-container-name="promoted-pages" | ||
id="analytics-promoted-pages"> | ||
{% for promoted_item in value.promoted_items %} | ||
<li class="promoted-pages__card"> | ||
<a data-component-name="Featured card: {% trans value.heading %}" data-link-type="Card image" data-card-position="{{ forloop.counter0 }}" data-card-title="{{ promoted_item.title }}" href="{{ promoted_item.url }}" | ||
tabindex="-1"> | ||
<picture> | ||
{% image promoted_item.teaser_image fill-350x229-c100 format-webp as mobile_webp_image %} | ||
<source media="(max-width: 390px)" | ||
srcset="{{ mobile_webp_image.url }}" | ||
type="image/webp"/> | ||
{% image promoted_item.teaser_image fill-370x229-c100 format-webp as desktop_webp_image %} | ||
<source srcset="{{ desktop_webp_image.url }}" type="image/webp"/> | ||
{% image promoted_item.teaser_image fill-350x229-c100 as mobile_img %} | ||
<source srcset="{{ mobile_img.url }}" media="(max-width: 390px)"/> | ||
{% image promoted_item.teaser_image fill-370x229-c100 as base_img %} | ||
<img src="{{ base_img.url }}" | ||
height="{{ base_img.height }}" | ||
width="{{ base_img.width }}" | ||
class="promoted-pages__image" | ||
alt="{% if promoted_item.teaser_image.alt_text %}{{ promoted_item.teaser_image.alt_text }}{% endif %}"/> | ||
</picture> | ||
</a> | ||
<h3 class="tna-heading promoted-pages__title"> | ||
<a data-component-name="Featured card: {% trans value.heading %}" data-link-type="Card text" data-card-position="{{ forloop.counter0 }}" data-card-title="{{ promoted_item.title }}" class="promoted-pages__title-link" href="{{ promoted_item.url }}"> | ||
{{ promoted_item.title }} | ||
<div class="tna-column tna-column--full"> | ||
<h2 class="tna-heading tna-heading--l">{% trans value.heading %}</h2> | ||
<ul class="card-grid card-grid__trio card-grid--list promoted-pages__cards" | ||
data-container-name="promoted-pages" | ||
id="analytics-promoted-pages"> | ||
{% for promoted_item in value.promoted_items %} | ||
<li class="promoted-pages__card"> | ||
<a data-component-name="Featured card: {% trans value.heading %}" data-link-type="Card image" data-card-position="{{ forloop.counter0 }}" data-card-title="{{ promoted_item.title }}" href="{{ promoted_item.url }}" | ||
tabindex="-1"> | ||
<picture> | ||
{% image promoted_item.teaser_image fill-350x229-c100 format-webp as mobile_webp_image %} | ||
<source media="(max-width: 390px)" | ||
srcset="{{ mobile_webp_image.url }}" | ||
type="image/webp"/> | ||
{% image promoted_item.teaser_image fill-370x229-c100 format-webp as desktop_webp_image %} | ||
<source srcset="{{ desktop_webp_image.url }}" type="image/webp"/> | ||
{% image promoted_item.teaser_image fill-350x229-c100 as mobile_img %} | ||
<source srcset="{{ mobile_img.url }}" media="(max-width: 390px)"/> | ||
{% image promoted_item.teaser_image fill-370x229-c100 as base_img %} | ||
<img src="{{ base_img.url }}" | ||
height="{{ base_img.height }}" | ||
width="{{ base_img.width }}" | ||
class="promoted-pages__image" | ||
alt="{% if promoted_item.teaser_image.alt_text %}{{ promoted_item.teaser_image.alt_text }}{% endif %}"/> | ||
</picture> | ||
</a> | ||
</h3> | ||
{% if promoted_item.author %} | ||
<p class="promoted-pages__text promoted-pages__text--gap"> | ||
By {{ promoted_item.author }}{% if promoted_item.publication_date %} – {{ promoted_item.publication_date }}{% endif %} | ||
</p> | ||
{% elif promoted_item.publication_date %} | ||
<p class="promoted-pages__text promoted-pages__text--gap"> | ||
{{ promoted_item.publication_date }} | ||
</p> | ||
{% endif %} | ||
<p class="promoted-pages__text">{{ promoted_item.description }}</p> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
<h3 class="tna-heading promoted-pages__title"> | ||
<a data-component-name="Featured card: {% trans value.heading %}" data-link-type="Card text" data-card-position="{{ forloop.counter0 }}" data-card-title="{{ promoted_item.title }}" class="promoted-pages__title-link" href="{{ promoted_item.url }}"> | ||
{{ promoted_item.title }} | ||
</a> | ||
</h3> | ||
{% if promoted_item.author %} | ||
<p class="promoted-pages__text promoted-pages__text--gap"> | ||
By {{ promoted_item.author }}{% if promoted_item.publication_date %} – {{ promoted_item.publication_date }}{% endif %} | ||
</p> | ||
{% elif promoted_item.publication_date %} | ||
<p class="promoted-pages__text promoted-pages__text--gap"> | ||
{{ promoted_item.publication_date }} | ||
</p> | ||
{% endif %} | ||
<p class="promoted-pages__text">{{ promoted_item.description }}</p> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</div> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.