diff --git a/tbx/project_styleguide/templates/patterns/molecules/streamfield/blocks/icon_keypoints_block.html b/tbx/project_styleguide/templates/patterns/molecules/streamfield/blocks/icon_keypoints_block.html index 1919cbed..1f5503dd 100644 --- a/tbx/project_styleguide/templates/patterns/molecules/streamfield/blocks/icon_keypoints_block.html +++ b/tbx/project_styleguide/templates/patterns/molecules/streamfield/blocks/icon_keypoints_block.html @@ -1,22 +1,24 @@ {% load wagtailcore_tags wagtailimages_tags %} -
- {# Section heading #} -

{{ value.title }}

+
+ {% if value.title %} +

{{ value.title }}

+ {% endif %} + {% if value.intro %} +
{{ value.intro|richtext }}
+ {% endif %} - {# Section intro #} -
{{ value.intro|richtext }}
- - {# Key points #} -
+
+

Icon keypoints

+ {% include "patterns/molecules/streamfield/blocks/icon_keypoints_block.html" %} +
+

Featured Case Study

{% include "patterns/molecules/streamfield/blocks/featured_case_study.html" %} diff --git a/tbx/static_src/sass/components/_grid.scss b/tbx/static_src/sass/components/_grid.scss index 14da784e..ec09f88d 100644 --- a/tbx/static_src/sass/components/_grid.scss +++ b/tbx/static_src/sass/components/_grid.scss @@ -111,7 +111,8 @@ } &__division-signpost, - &__featured-services { + &__featured-services, + &__keypoints { grid-column: 2 / span 4; margin-bottom: $spacer; diff --git a/tbx/static_src/sass/components/_keypoints.scss b/tbx/static_src/sass/components/_keypoints.scss new file mode 100644 index 00000000..3397d3c1 --- /dev/null +++ b/tbx/static_src/sass/components/_keypoints.scss @@ -0,0 +1,68 @@ +@use 'config' as *; + +.keypoints { + &__list { + display: flex; + flex-direction: column; + gap: $spacer-medium; + + @include media-query(medium) { + gap: $spacer; + } + } + + &__item { + display: grid; + grid-template-columns: repeat(12, 1fr); + } + + &__icon { + width: 115px; + height: 105px; + } + + &__wrapper { + border-top: 1px solid var(--color--border); + padding-top: $spacer-mini-plus; + grid-column: 1 / span 9; + grid-row: 1; + + @include media-query(medium) { + margin-right: $spacer-medium; + grid-column: 1 / span 3; + grid-row: span 2; + } + } + + &__label { + @include font-size(size-four); + font-weight: $weight--semibold; + color: var(--color--theme-primary); + } + + &__heading { + @include font-size(size-two); + font-weight: $weight--semibold; + color: var(--color--heading); + padding: $spacer-mini-plus 0 $spacer-mini; + align-self: flex-start; + grid-column: 1 / span 12; + + @include media-query(medium) { + padding: 0 0 $spacer-mini-plus; + grid-column: 4 / span 6; + grid-row: 1; + } + } + + &__description { + @include font-size(size-four); + font-weight: $weight--light; + color: var(--color--heading); + grid-column: 1 / span 12; + + @include media-query(medium) { + grid-column: 4 / span 8; + } + } +} diff --git a/tbx/static_src/sass/main.scss b/tbx/static_src/sass/main.scss index fc56c53e..816a71fb 100755 --- a/tbx/static_src/sass/main.scss +++ b/tbx/static_src/sass/main.scss @@ -34,6 +34,7 @@ @use 'components/image'; @use 'components/instagram-gallery'; @use 'components/intro-with-images'; +@use 'components/keypoints'; @use 'components/link'; @use 'components/listing'; @use 'components/listing-avatar';