|
1 | 1 | {% load wagtailcore_tags wagtailimages_tags %} |
2 | | -<div> |
3 | | - {# Section heading #} |
4 | | - <h2>{{ value.title }}</h2> |
5 | | - |
6 | | - {# Section intro #} |
7 | | - <div>{{ value.intro|richtext }}</div> |
8 | | - |
9 | | - {# Signposting cards #} |
10 | | - <ul> |
| 2 | +<div class="grid__featured-services featured-services"> |
| 3 | + <div class="featured-services__header"> |
| 4 | + {% include "patterns/atoms/motif-heading/motif-heading.html" with heading_level=2 heading=value.title classes="motif-heading--two motif-heading--static featured-services__title " %} |
| 5 | + {% if value.intro %} |
| 6 | + <div class="featured-services__intro rich-text">{{ value.intro|richtext }}</div> |
| 7 | + {% endif %} |
| 8 | + </div> |
| 9 | + <ul class="featured-services__cards"> |
11 | 10 | {% for card in value.cards %} |
12 | | - <li class="{{ card.card_colour }}"> |
13 | | - {% firstof card.heading card.page.title %} |
14 | | - {{ card.description|richtext }} |
15 | | - {% image card.image fill-100x100 %} |
| 11 | + <li class="featured-services__card"> |
| 12 | + {% srcset_image card.image format-webp fill-{750x420,650x420} sizes="(max-width: 750px) 100vw, (min-width: 751px) 650px" alt="" %} |
| 13 | + <div class="featured-services__text"> |
| 14 | + <h3 class="featured-services__heading heading heading--two-b">{% firstof card.heading card.page.title %}</h3> |
| 15 | + <div class="featured-services__description rich-text">{{ card.description|richtext }}</div> |
| 16 | + </div> |
| 17 | + {# The title and icon need to be on the same line with no whitespace to prevent the arrow being orphaned on a new line #} |
16 | 18 | <a href="{% pageurl card.page %}" |
| 19 | + class="button-link button-link--compact" |
17 | 20 | {% if card.accessible_link_text %}aria-label="{{ card.accessible_link_text }}"{% endif %} |
18 | 21 | > |
19 | | - {{ card.link_text }} |
| 22 | + {{ card.link_text }} {% include "patterns/atoms/icons/icon.html" with name="arrow-wide-sm" classname="button-link__arrow" %} |
20 | 23 | </a> |
21 | 24 | </li> |
22 | 25 | {% endfor %} |
|
0 commit comments