The Highlight Board component is used as a lead into an experience as a means to encourage engagement within the experience.
The default Highlight Board is used to encourage engagement with strong imagery.
The Highlight Board component in spark-core-angular consists of two Angular components:
<div class="sprk-c-HighlightBoard sprk-c-HighlightBoard--has-image sprk-u-mbm">
<img class="sprk-c-HighlightBoard__image" src="../../assets/toolkit/images/desktop.jpg" alt="">
<div class="sprk-c-HighlightBoard__content sprk-c-HighlightBoard__content--light">
<div class="sprk-u-mbl">
<h1 class="sprk-b-TypeDisplayThree sprk-c-HighlightBoard__primary-heading sprk-u-mbs">Lift the burden of getting a home loan</h1>
<h4 class="sprk-b-TypeDisplayFour sprk-c-HighlightBoard__sub-heading sprk-u-mbm">Fast, Powerful and Completely Online</h4>
</div>
<div class="sprk-o-Stack sprk-o-Stack--medium sprk-o-Stack--split@s sprk-c-HighlightBoard__cta-container">
<div class="sprk-o-Stack__item">
<button class="sprk-c-HighlightBoard__cta sprk-c-Button sprk-c-Button--primary sprk-c-Button--full@sm">
Learn More
</button>
</div>
</div>
</div>
</div>
<sprk-highlight-board heading="Lift the burden of getting a home loan" subHeading="Fast, Powerful and Completely Online" ctaText="Learn More" imgSrc="https://staging.sparkdesignsystem.com/assets/toolkit/images/desktop.jpg" imgAlt="placeholder">
</sprk-highlight-board>
See below for available customization options:
Input | Type | Description |
---|---|---|
type | string | This determines the variation of the Highlight Board that is rendered. Can be 'noImage', 'stacked', 'fullWidth', or not set at all. The default if not set is the default variation of the highlight board. |
heading | string | The value supplied will be rendered as the heading. |
subHeading | string | The value supplied will be rendered as the sub-heading. |
analyticsStringCta | string | The value supplied will be assigned to the 'data-analytics' attribute on the call-to-action. Intended for an outside library to capture data. |
analyticsStringCta2 | string | The value supplied will be assigned to the 'data-analytics' attribute on the second call-to-action. Intended for an outside library to capture data. |
imgSrc | string | The Highlight Board will use this as the source for the main image. |
imgAlt | string | The Highlight Board will use this as the alt text for the main image. |
ctaText | string | The Highlight Board will use this as the text for the main call-to-action. |
ctaHref | string | The Highlight Board will use this as the href for the main call-to-action. |
ctaHref2 | string | The Highlight Board will use this as the href for the secondary call-to-action. |
ctaText2 | string | The Highlight Board will use this as the text for the secondary call-to-action. |
additionalClasses | string | Allows a string of classes to add, in addition to the spark classes. Intended for overrides. |
This variation of the Highlight Board component should be used when there is an alternative to a photograph behind the lead message and call to action. Examples of this are a wash of color or a pattern set behind the content.
To use this variant set the type equal to 'noImage'.
<div class="sprk-c-HighlightBoard sprk-u-mbm">
<div class="sprk-c-HighlightBoard__content ">
<div class="sprk-u-mbl">
<h1 class="sprk-b-TypeDisplayThree sprk-c-HighlightBoard__primary-heading sprk-u-mbs">Lift the burden of getting a home loan</h1>
<h4 class="sprk-b-TypeDisplayFour sprk-c-HighlightBoard__sub-heading sprk-u-mbm">Fast, Powerful and Completely Online</h4>
</div>
<div class="sprk-o-Stack sprk-o-Stack--medium sprk-o-Stack--split@s sprk-c-HighlightBoard__cta-container">
<div class="sprk-o-Stack__item">
<button class="sprk-c-HighlightBoard__cta sprk-c-Button sprk-c-Button--primary sprk-c-Button--full@sm">
Learn More
</button>
</div>
</div>
</div>
</div>
<sprk-highlight-board heading="Lift the burden of getting a home loan" subHeading="Fast, Powerful and Completely Online" ctaText="Learn More" type="noImage">
</sprk-highlight-board>
The stacked variation of the Highlight Board allows for the image, content and CTA to be separated to allow the subject matter of the image to become the primary focus.
To use this variant set the type equal to 'stacked'.
<div class="sprk-c-HighlightBoard sprk-c-HighlightBoard--stacked sprk-c-HighlightBoard--has-image sprk-u-mbm">
<img class="sprk-c-HighlightBoard__image" src="../../assets/toolkit/images/desktop.jpg" alt="">
<div class="sprk-c-HighlightBoard__content ">
<div class="sprk-u-mbl">
<h1 class="sprk-b-TypeDisplayThree sprk-c-HighlightBoard__primary-heading sprk-u-mbs">Lift the burden of getting a home loan</h1>
<h4 class="sprk-b-TypeDisplayFour sprk-c-HighlightBoard__sub-heading sprk-u-mbm">Fast, Powerful and Completely Online</h4>
</div>
<div class="sprk-o-Stack sprk-o-Stack--medium sprk-o-Stack--split@s sprk-c-HighlightBoard__cta-container">
<div class="sprk-o-Stack__item">
<button class="sprk-c-HighlightBoard__cta sprk-c-Button sprk-c-Button--primary sprk-c-Button--full@sm">
Learn More
</button>
</div>
</div>
</div>
</div>
<sprk-highlight-board heading="Lift the burden of getting a home loan" subHeading="Fast, Powerful and Completely Online" ctaText="Learn More" type="stacked" imgSrc="https://staging.sparkdesignsystem.com/assets/toolkit/images/desktop.jpg" imgAlt="placeholder">
</sprk-highlight-board>
The full width variation allows the background image of the Highlight Board to span the entire width of the viewport.
To use this variant set the type equal to 'fullWidth'.
<div class="sprk-c-HighlightBoard sprk-c-HighlightBoard--has-image sprk-u-FullWidth sprk-u-mbm">
<img class="sprk-c-HighlightBoard__image" src="../../assets/toolkit/images/desktop--flush.jpg" alt="">
<div class="sprk-c-HighlightBoard__content sprk-c-HighlightBoard__content--light">
<div class="sprk-u-mbl">
<h1 class="sprk-b-TypeDisplayThree sprk-c-HighlightBoard__primary-heading sprk-u-mbs">Lift the burden of getting a home loan</h1>
<h4 class="sprk-b-TypeDisplayFour sprk-c-HighlightBoard__sub-heading sprk-u-mbm">Fast, Powerful and Completely Online</h4>
</div>
<div class="sprk-o-Stack sprk-o-Stack--medium sprk-o-Stack--split@s sprk-c-HighlightBoard__cta-container">
<div class="sprk-o-Stack__item">
<button class="sprk-c-HighlightBoard__cta sprk-c-Button sprk-c-Button--primary sprk-c-Button--full@sm">
Learn More
</button>
</div>
</div>
</div>
</div>
<sprk-highlight-board heading="Lift the burden of getting a home loan" subHeading="Fast, Powerful and Completely Online" ctaText="Learn More" ctaText2="CTA Two" type="fullWidth" imgSrc="https://staging.sparkdesignsystem.com/assets/toolkit/images/desktop.jpg" imgAlt="placeholder">
</sprk-highlight-board>