-
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.
TWE-39 Add a new block for textual statistic groups
- Loading branch information
Showing
5 changed files
with
54 additions
and
1 deletion.
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
11 changes: 11 additions & 0 deletions
11
...styleguide/templates/patterns/molecules/streamfield/blocks/textual_stats_group_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,11 @@ | ||
{% load wagtailcore_tags wagtailimages_tags %} | ||
<div class="grid__stats-group stats-group"> | ||
{% if value.title %} | ||
{% include "patterns/atoms/motif-heading/motif-heading.html" with heading_level=2 heading=value.title classes="motif-heading motif-heading--two-c motif-heading--static stats-group__heading" %} | ||
{% endif %} | ||
{% if value.intro %} | ||
<div class="text text--five stats-group__intro">{{ value.intro|richtext }}</div> | ||
{% endif %} | ||
{# Stats #} | ||
{% include "patterns/molecules/streamfield/blocks/stats_textual.html" with value=value.statistics %} | ||
</div> |
9 changes: 9 additions & 0 deletions
9
..._styleguide/templates/patterns/molecules/streamfield/blocks/textual_stats_group_block.yml
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,9 @@ | ||
context: | ||
value: | ||
title: Lighting little fires | ||
intro: 'Torchbox has been supporting charities since the start of the digital era. Some of the stats we're particularly proud of:' | ||
statistics: | ||
- headline_text: Reduction in accessibility issues | ||
further_details: '*There might be some sub text here that contextualises this result' | ||
- headline_text: General increase in return visitors | ||
further_details: '*There might be some sub text here that contextualises this result' |
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