-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add featured services block to Division Page
- Loading branch information
1 parent
81c7468
commit d260e50
Showing
4 changed files
with
84 additions
and
0 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
24 changes: 24 additions & 0 deletions
24
...t_styleguide/templates/patterns/molecules/streamfield/blocks/featured_services_block.html
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{% load wagtailcore_tags wagtailimages_tags %} | ||
<div> | ||
{# Section heading #} | ||
<h2>{{ value.title }}</h2> | ||
|
||
{# Section intro #} | ||
<div>{{ value.intro|richtext }}</div> | ||
|
||
{# Signposting cards #} | ||
<ul> | ||
{% for card in value.cards %} | ||
<li class="{{ card.card_colour }}"> | ||
{% firstof card.heading card.page.title %} | ||
{{ card.description|richtext }} | ||
{% image card.image fill-100x100 %} | ||
<a href="{% pageurl card.page %}" | ||
{% if card.accessible_link_text %}aria-label="{{ card.accessible_link_text }}"{% endif %} | ||
> | ||
{{ card.link_text }} | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> |
23 changes: 23 additions & 0 deletions
23
...t_styleguide/templates/patterns/molecules/streamfield/blocks/featured_services_block.yaml
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
context: | ||
value: | ||
title: Our featured services | ||
intro: This is an optional field. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | ||
cards: | ||
- heading: Advocacy, Engagement & Income | ||
description: '<p>Grow your audience, mobilise and increase your income through design, communication and strategy</p>' | ||
link_text: Our services | ||
accessible_link_text: Our Advocacy, Engagement & Income services | ||
- heading: Measure, Analyse & Optimise | ||
description: '<p>Organise your data to gain the insights and confidence needed to boost your charity's performance.</p>' | ||
link_text: Our services | ||
accessible_link_text: Our Measure, Analyse & Optimise services | ||
- heading: Scale impact through Technology | ||
description: '<p>We design technology that's built for humans. Scale your impact and better deliver your services by leveraging our expertise.</p>' | ||
link_text: Our services | ||
accessible_link_text: Our services on scaling impact through Technology | ||
|
||
tags: | ||
image: | ||
'card.image fill-100x100': | ||
raw: | | ||
<img alt="" height="100" src="https://picsum.photos/100/100.webp" width="100"> |