Menu

Card - Product Card - Promotional

<article class="mp c-card c-card--layout-multi c-card--size-large c-card--bordered c-card--has-image">
<div class="c-card__wrapper">
<figure class="c-card__image">
<a href="#">
<img class="" src="/static/img/range-product-1.jpg" alt="Product image alt" />
</a>
</figure>
<div class="c-card__primary">
<header class="c-card__header u-flow--2xs">
<h2 class="c-h c-card__title"><a href="#">Product name</a></h2>
<h3 class="c-h c-h--tagline">Summary</h2>
</header>
<div class="c-card__content u-flow">
<div class="mp o-prose u-flow--prose u-step--1">
<p>Description lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>
</div>
<footer class="c-card__footer u-flow--2xs">
<div>
<a href="#" class="mp c-button c-button--inline c-button--green" >Purchase</a>
</div>
</footer>
</div>
<a class="u-fill u-fill--link" href="#">Product name</a>
</div>
</article>
{
"theme": {
"border": true,
"layout": "multi"
},
"image": {
"src": "/static/img/range-product-1.jpg",
"alt": "Product image alt"
},
"header": {
"title": "Product name",
"subtitle": "Summary"
},
"body": {
"content": "<p>Description lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>"
},
"footer": {
"buttons": [
{
"link": "#",
"label": "Purchase"
}
]
}
}

CSS modifiers

Name Description
c-card--alt Petrol step 3 alternative background
c-card--featured Petrol background, white text
c-card--event Alt background with grey text
c-card--layout-[type] multi, single Left- or top-aligned image
c-card--size-[size] small, medium, large Title and gap size control
c-card--bordered Add a border to the card
c-card--no-height-match Prevent cards matching height with siblings
c-card--inline-specs Render specs inline, rather than wrapped

Props

Name Type Description
theme object themeOptions
header object headerOptions
body object bodyOptions
footer object footerOptions
tag string Name of the tag
link string For cards without a CTA
shop object shopOptions
series series[]

themeOptions

Name Type Description
name string Name of the theme: alt, featured
border bool Does the card have a border
size string Size of the card (default: large)
layout string "multi" or "single"
inlineSpecs string Are the specifications inline or wrapped
noFullLink bool Is there a giant link covering the entire card?
noHeightMatch bool Should the card ignore height matching?
corner bool Does the card have a green corner

headerOptions

Name Type Description
title string
subtitle string
meta string[] Additional snippets of useful information
date object dateOptions

dateOptions

Name Type Description
date date Datetime of the instance
time string String-based time
timezone string String-based timezone
duration string Providing this will make it a 'past event'

bodyOptions

Name Type Description
content html Prose-based content
keySpecs keySpecs[]

keySpecs

Name Type Description
title string
term string
terms string[]

footerOptions

Name Type Description
cta footerLink
buttons footerLink[]

footerLink

Name Type Description
label string Label for the call to action
link string URL for the element
colour string Optional button style

shopOptions

Name Type Description
labels array key/value objects
small string Short shop description
productId string