Title
Key Point text
View our extensive list of upcoming free webinars. Just part of our commitment to ensuring your learning journey keeps on track and you stay informed about the latest industry developments during this unprecedented time.
Code
// FULL WIDTH
<section class="section section--spacing-above section--spacing-below">
<div class="key-point ta--2" style="background-color: #174174;">
<div class="wrapper--2">
<div class="heading--sub">Sub Title</div>
<h3 class="heading--1">Title</h3>
<p>Key Point text</p>
<div class="button__wrapper">
<a class="button button--1" href="/">
Link Text
</a>
</div>
</div>
</div>
</section>
// INTRO
<section class="section section--spacing-above section--spacing-below">
<div class="key-point key-point--intro wrapper--2" style="background-color: #dde3f2;">
<div class="">
<p>View our extensive list of upcoming free webinars. Just part of our commitment to ensuring your learning journey keeps on track and you stay informed about the latest industry developments during this unprecedented time.</p>
</div>
</div>
</section>
{{ attach_library('fitch_master/key-point') }}
{%
set classes = [
'paragraph',
'paragraph--type--' ~ paragraph.bundle|clean_class,
view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class,
not paragraph.isPublished() ? 'paragraph--unpublished'
]
%}
{% if paragraph.field_key_point_intro.value != 1 %}
{% set keyPointClass = 'key-point ta--2' %}
{% set keyPointWrapper = 'wrapper--2' %}
{% elseif paragraph.field_key_point_intro.value == 1 %}
{% set keyPointClass = 'key-point key-point--intro wrapper--2' %}
{% set keyPointWrapper = '' %}
{% endif %}
{% block paragraph %}
{% block content %}
{{ title_suffix }}
<section
{% include '@fitch_master/parts/paragraph--id--section-name.html.twig' %}
class="
section
{% include '@fitch_master/parts/paragraph--class--section-name.html.twig' %}
{% include '@fitch_master/parts/paragraph--class--section-spacing-top.html.twig' %}
{% include '@fitch_master/parts/paragraph--class--section-spacing-bottom.html.twig' %}
"
>
<div
class="{{ keyPointClass }}"
style="
{% include '@fitch_master/parts/paragraph--style--background-color.html.twig' %}
{% include '@fitch_master/parts/paragraph--style--text-color.html.twig' %}
"
>
<div class="{{ keyPointWrapper }}">
{% include '@fitch_master/paragraph/paragraph--sub-title.html.twig' %}
{% if content.field_title.0 is not empty %}<h3 class="heading--1">{{ content.field_title }}</h3>{% endif %}
{% include '@fitch_master/paragraph/paragraph--text.html.twig' %}
{% include '@fitch_master/paragraph/paragraph--call-to-action.html.twig' %}
{% include '@fitch_master/paragraph/paragraph--block-reference.html.twig' %}
</div>
</div>
</section>
{% include '@fitch_master/parts/has_header.html.twig' %}
{% endblock %}
{% endblock paragraph %}
.key-point {
width: 100vw;
margin: var(--key-point-margin);
padding: var(--key-point-padding);
color: var(--inverted-text-color);
}
.key-point *[class*=heading] {
color: inherit;
}
.key-point p {
font-size: var(--key-point-font-size);
}
.key-point--intro {
margin: auto;
padding: var(--spacing-6);
color: inherit;
}
.key-point--intro p {
margin: 0;
font-size: 2rem;
line-height: 1.4;
}
.key-point--intro p::first-letter {
padding-top: 3px;
padding-right: 2px;
float: left;
font-size: 62px;
font-weight: 600;
line-height: 50px;
color: var(--primary-2);
}
.key-point {
width: 100vw;
margin: var(--key-point-margin);
padding: var(--key-point-padding);
color: var(--inverted-text-color);
*[class*="heading"] {
color: inherit;
}
p {
font-size: var(--key-point-font-size);
}
&--intro {
margin: auto;
padding: var(--spacing-6);
color: inherit;
p {
margin: 0;
font-size: 2rem;
line-height: 1.4;
&::first-letter {
padding-top: 3px;
padding-right: 2px;
float: left;
font-size: 62px;
font-weight: 600;
line-height: 50px;
color: var(--primary-2);
}
}
}
}
Fields
| Label | Machine name | Field type | Values | Character Limit | Required |
|---|---|---|---|---|---|
| Background Color | field_background_color | Color | N/A | Yes | |
| Block Reference | field_block_reference | Entity reference | 30 | No | |
| CTA | field_cta | Link | N/A | No | |
| CTA Style | field_cta_style | List (integer) | 0|1 1|2 2|3 3|4 4|5 5|6 |
N/A | No |
| Invert Header | field_invert_header | Boolean | N/A | No | |
| Page Banner | field_page_banner | Boolean | N/A | No | |
| Section Name | field_section_name | Text (plain) | TBC | No | |
| Section Spacing | field_section_spacing | List (integer) | 0|spacing-above 1|spacing-below 2|spacing-above-double 3|spacing-below-double |
N/A | No |
| Sub Title | field_sub_title | Text (plain) | TBC | No | |
| Text | field_text | Text (formatted, long) | TBC | No | |
| Text Color | field_text_color | Color | N/A | No | |
| Title | field_title | Text (formatted) | TBC | Yes |
Use Case
A key point is a statement / callout related to the content on the page, or it can be used to highlight a demo request (form popup).
They work very well in carousels.
Component Options
Page Banner
This can be checked if it's the first component on the page and you need the logo to be white and sit on top to match how a Page Header (Banner) works.
If this is checked make sure the spacing above is turned off.
Invert Header
This field works in partnership with Page Banner. It should be checked if the header (logo, nav etc) should be white.
Spacing Above / Below
Spacing above adds 42px of padding above this section.
Spacing below adds 42px of padding below this section.
Double spacing above adds 84px of padding above this section.
Double spacing below adds 84px of padding below this section.
The values shown here are the default for FG, FR, FS and FB.
By default these are turned on but should be turned off for the following reasons:
- Two images are touching
- A coloured section is next to an image
- A coloured section is next to another coloured section
- It's the first or last section on the page
Section Name
This is used for anchor links directly to the section. The name needs to be lowercase with no punctuation and spaces replaced with - e.g. featured-blog-posts
Background Color
Background Color offers a selection of brand colours allowing a solid background colour for the component.
| #171721 | #3f3f5b | #ff2f63 | #ffd500 | #2d374e | #174174 | #2a8abf | #33ccff | #dbddf3 | #333333 | #1a6bb4 | #dde3f2 | #3b265e |
| #6c5c86 | #9d92ae | #5e6a71 | #868f94 | #aeb4b8 | #007a87 | #409ba5 | #80bcc3 | #005cb9 | #4085ca | #80addc | #bfd6ed | #f5f5f5 |
| #00b29b | #72cb5c | #6dc3ea | #ebce56 |
Text Color
This can be set to Black or White (theme dependant) so the text colour is fixed for that component.
This is useful when placing text on a background image that needs to remain one or the other, even when Dark mode is enabled.
| #000000 | #FFFFFF |