Skip to content

Commit fb5fb07

Browse files
committed
Add block to the styleguide
1 parent c084bc8 commit fb5fb07

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

tbx/project_styleguide/templates/patterns/molecules/streamfield/blocks/division_signpost_block.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ context:
1818

1919
tags:
2020
srcset_image:
21-
'card.image format-webp fill-{540x280,490x280} sizes="(max-width: 598px) 540px, (min-width: 599px) 490px" class="" alt=""':
21+
'card.image format-webp fill-{540x280,490x280} sizes="(max-width: 598px) 540px, (min-width: 599px) 490px" alt=""':
2222
raw: |
23-
<img alt="" class="" height="280" sizes="(max-width: 598px) 540px, (min-width: 599px) 490px" src="https://picsum.photos/540/280.webp" srcset="https://picsum.photos/540/280.webp 540w, https://picsum.photos/490/280.webp 490w" width="540">
23+
<img alt="" height="280" sizes="(max-width: 598px) 540px, (min-width: 599px) 490px" src="https://picsum.photos/540/280.webp" srcset="https://picsum.photos/540/280.webp 540w, https://picsum.photos/490/280.webp 490w" width="540">

tbx/project_styleguide/templates/patterns/styleguide/components/components.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,17 +170,17 @@ <h2 class="underline mt-8 mb-2">Code block</h2>
170170
</div>
171171

172172
<div>
173-
<h2 class="underline mt-8 mb-2">Imapact report heading block</h2>
173+
<h2 class="underline mt-8 mb-2">Impact report heading block</h2>
174174
{% include "patterns/molecules/streamfield/blocks/impact_report_heading_block.html" %}
175175
</div>
176176

177177
<div>
178-
<h2 class="underline mt-8 mb-2">Imapact report instagram block</h2>
178+
<h2 class="underline mt-8 mb-2">Impact report instagram block</h2>
179179
{% include "patterns/molecules/streamfield/blocks/instagram_gallery_block.html" %}
180180
</div>
181181

182182
<div>
183-
<h2 class="underline mt-8 mb-2">Imapact report small image with text block</h2>
183+
<h2 class="underline mt-8 mb-2">Impact report small image with text block</h2>
184184
{% include "patterns/molecules/streamfield/blocks/small_image_with_text_block.html" %}
185185
</div>
186186

@@ -189,6 +189,11 @@ <h2 class="underline mt-8 mb-2">Table block</h2>
189189
{% include "patterns/molecules/streamfield/blocks/typed_table_block.html" %}
190190
</div>
191191

192+
<div>
193+
<h2 class="underline mt-8 mb-2">Division signpost block</h2>
194+
{% include "patterns/molecules/streamfield/blocks/division_signpost_block.html" %}
195+
</div>
196+
192197
<div>
193198
<h2 class="underline mt-8 mb-2">Footer CTA</h2>
194199
{% include "patterns/molecules/footer-cta/footer-cta.html" with value=partners_data %}

tbx/project_styleguide/templates/patterns/styleguide/components/components.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,11 @@ tags:
113113
# instagram block
114114
'post.image format-webp fill-{250x250,500x500} sizes="(max-width: 598px) 50vw, (max-width: 1021px) 25vw, (min-width: 1022px) 250px" class="instagram-post__image" loading="lazy"':
115115
raw: '<img alt="advent-9" class="instagram-post__image" height="250" loading="lazy" sizes="(max-width: 598px) 50vw, (max-width: 1021px) 25vw, (min-width: 1022px) 250px" src="https://picsum.photos/250/250.webp" srcset="https://picsum.photos/250/250.webp 250w, https://picsum.photos/500/500.webp 500w" width="250">'
116-
image:
116+
# division signpost block
117+
'card.image format-webp fill-{540x280,490x280} sizes="(max-width: 598px) 540px, (min-width: 599px) 490px" alt=""':
118+
raw: |
119+
<img alt="" height="280" sizes="(max-width: 598px) 540px, (min-width: 599px) 490px" src="https://picsum.photos/540/280.webp" srcset="https://picsum.photos/540/280.webp 540w, https://picsum.photos/490/280.webp 490w" width="540">
120+
image:
117121
# company logo for pull quote
118122
value.logo max-110x70 format-webp class="pullquote__company-logo":
119123
raw: |

0 commit comments

Comments
 (0)