From 811028373ccf011632422af2dfdd30e32219a09e Mon Sep 17 00:00:00 2001 From: Houston Blyden Date: Fri, 14 May 2021 09:36:27 +0100 Subject: [PATCH] feat: add Swift Content Card (#779) * convert to md * added swift card content card * update bullet points Co-authored-by: Gil <43111519+gldgrnt@users.noreply.github.com> --- .../content-cards/swift-card.png | Bin 0 -> 12232 bytes .../content-card/_content-card.scss | 10 + .../content-cards/swift-card/_swift-card.njk | 31 ++ .../pages/patterns/content-cards/index.njk | 207 ------------ .../pages/patterns/content-cards/index.njk.md | 294 ++++++++++++++++++ 5 files changed, 335 insertions(+), 207 deletions(-) create mode 100644 src/wmnds/assets/img/component-images/content-cards/swift-card.png create mode 100644 src/wmnds/patterns/content-cards/swift-card/_swift-card.njk delete mode 100644 src/www/pages/patterns/content-cards/index.njk create mode 100644 src/www/pages/patterns/content-cards/index.njk.md diff --git a/src/wmnds/assets/img/component-images/content-cards/swift-card.png b/src/wmnds/assets/img/component-images/content-cards/swift-card.png new file mode 100644 index 0000000000000000000000000000000000000000..1baa5fa488d7868ddd19ffa8fcaa617a7c1c334d GIT binary patch literal 12232 zcmbVSWm6nH7scJ(-CY)n6j21#>aV0xq4r2ta*HLZb9dbAnyPkJ5&r#4Sk7HYs$T z4{kFk(|O{_l17t+FpkCL3~_MFI+e+;&C z_l#amV{d;iVtEU$n|HL$kwQXB6wHDZY*PANEsf81M2p*(+U4*{$H>62S7dQ)M5$fw zD^$R4TZWq)5(1_IT=S7;Yq>=#RmuQ?Ca@^tg0;k5ZMir&IGSRmc=>PFrfMoG+ORoB z^sunu-G8yEqXul`Ul|yLCLSfY4%R>!KjZb+B?m>)Lsh+QFI5n!h(f*pu->YuN>UC} zBkE>FrzCR<0}U#QoIHi}QNcn^e57uF!VTR18Icq>3Z~w^8yS?%&DE5vrs1i2wOr02 zq$pWb6|G9c8*WM}zb!j|cc?9DiolvD(+UWPjc`;>Dkj_*{Ka)S>qP;M)tt^5MSkRd z%*tUQLlwdaG3VB~#(&bbBPmHW5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tP_^5|M9e3Kg@=&(P4$bmSk)EK0IXf{3Fh;jeV_6Rt{Ww@u zdzSp66$M&wI1uMp%M(YDtVqF$QmYus0L;-=VC*T44$r)8a_p!jS*I$~- z(dD2u!UDCKP@I7*V_5a+EUOKBdHFuFCQoc6&T#+Q#RH1TE=MFHf38U@O~)HWP}x+w z-bPc*froqKJl^8nUOT$J+v1!>F@=W*SQnU{o({-u-EnulK-^O=Dn6}ULa`(0T)Q)z z9pVtoN%HRM8DAA@PcH=cnkHwbI%~(@P0hr4K+RI@3a?Bk3+Egf^pJmLpF-tkwXbB{x5IVE1y0X=2Lo2Q3MoCus;hV0L&hTlb`I2 zulh>y-dKHl4-$>`70CU)g~_7$Vlp*OL?iQFv{Ugh=&%sgtb0$f|j>UsNe*Y;YY`BFe7`vR-dM=2|Gqi1#t=G@!a_|FCYw}v3;B@t5KzXI#g;(~NJEu6Z7EBMi`bP^3+k^lfLZHVt7i_J~gWqYC<{3OP wjrm})GdEmXh!#owl97;i@!H>6v?KzF-A=~7QbOJLDZGb}l~j_b6EhC^A050J#{d8T literal 0 HcmV?d00001 diff --git a/src/wmnds/components/content-card/_content-card.scss b/src/wmnds/components/content-card/_content-card.scss index 4af145869..94b94f155 100644 --- a/src/wmnds/components/content-card/_content-card.scss +++ b/src/wmnds/components/content-card/_content-card.scss @@ -46,6 +46,16 @@ } } + &__content { + @media (max-width: $breakpoint-sm - 1) { + margin-top: $size-md; + } + + & > *:last-child { + margin-bottom: 0; + } + } + &__image { width: 100%; object-fit: cover; diff --git a/src/wmnds/patterns/content-cards/swift-card/_swift-card.njk b/src/wmnds/patterns/content-cards/swift-card/_swift-card.njk new file mode 100644 index 000000000..b3114e1e3 --- /dev/null +++ b/src/wmnds/patterns/content-cards/swift-card/_swift-card.njk @@ -0,0 +1,31 @@ +{% macro wmndsContentCardSwiftCard(params) %} +{# imports #} +{% from "wmnds/components/content-card/_content-card.njk" import wmndsContentCard %} +{# Set #} +{% set title = params.title if params.title else "How to get Swift pay as you go" %} +{% set content = params.content %} +{% set img = params.img if params.img else "/img/component-images/content-cards/swift-card.png"%} +{# Set up nav links #} + +{% call wmndsContentCard() %} + +{% endcall %} + +{% endmacro %} diff --git a/src/www/pages/patterns/content-cards/index.njk b/src/www/pages/patterns/content-cards/index.njk deleted file mode 100644 index dce3479f7..000000000 --- a/src/www/pages/patterns/content-cards/index.njk +++ /dev/null @@ -1,207 +0,0 @@ -{% extends "www/_layouts/layout-left-pane.njk" %} -{% set pageTitle="Content cards" %} -{% set section="Patterns" %} -{# Imports #} -{% from "www/_partials/component-example/component-example.njk" import compExample %} - -{% block content %} -{# About #} -

About

-

These are common applications of the content card component.

- - -

-{# Map card #} -

Map card

-{# What #} -

What is it?

-
    -
  • A card with an interactive map component.
  • -
- -{# When to #} -

When to use it?

-
    -
  • When there is a user need for an interactive map to display information.
  • -
  • When there is an alternative way to view the information on the interactive map.
  • -
-{# When not to #} -

When not to use it?

-
    -
  • When it is the sole way of presenting the information, you must provide an alternative.
  • -
  • When the map is a screenshot or image. This is called a static map. Do not use static maps on Transport for West Midlands products.
  • -
  • When there is no user need for a map, use text description instead.
  • -
- -{# Map example #} -{% from "wmnds/patterns/content-cards/map/_map.njk" import wmndsContentCardMap %} - -{{ - compExample([ - wmndsContentCardMap() - ]) -}} -

-{# Button card #} -

Button card

-{# What #} -

What is it?

-
    -
  • A card with several buttons in.
  • -
-{# When to #} -

When to use it?

-
    -
  • To direct users to different content relevant to their needs.
  • -
  • At the end of the main page content. We found that users preferred to split lots of content into smaller, specific pages and that this was the best way to continue the journey after reading the main overview content.
  • -
-{# When not to #} -

When not to use it?

-
    -
  • To attract the user's attention if there is no benefit to them reading the content.
  • -
  • To list links within a section or related content. Use the in-line navigation card instead.
  • -
- -{# Set up buttons #} -{% from "wmnds/patterns/content-cards/buttons/_buttons.njk" import wmndsContentCardButtons %} - -{{ - compExample([ - wmndsContentCardButtons() - ]) -}} - -

-{# Image card #} -

Image card

-{# What #} -

What is it?

-
    -
  • A card with an image in.
  • -
-{# When to #} -

When to use it?

-
    -
  • To display an image within a tile.
  • -
  • When the image complements the text.
  • -
-{# When to to #} -

When not to use it?

-
    -
  • When the image has text in. This distracts the user and usually fails accessibility criteria.
  • -
  • When the image is a cartoon or illustration. These are called vector images. Vector images display as poor quality for many users.
  • -
- -{# Set up image #} -{% from "wmnds/patterns/content-cards/image/_image.njk" import wmndsContentCardImage %} - -{{ - compExample([ - wmndsContentCardImage() - ]) -}} - -

-{# In-line navigation card #} -

In-line navigation card

-{# What #} -

What is it?

-
    -
  • A card with in-text links for navigation of sections and displaying related content.
  • -
-{# When to #} -

When to use it?

-
    -
  • To help the user navigate a collection of pages. This is called a section.
  • -
  • To show related content which meets user needs.
  • -
  • To help the user navigate a long page using in-text anchors.
  • -
  • Only use this pattern in a sidebar.
  • -
-{# When not to #} -

When not to use it?

-
    -
  • When the page links you are listing to form part of a journey or process. The journey should be linear.
  • -
  • When you are trying to attract the user's attention. This is called a call-to-action.
  • -
-{# How to #} -

How to use it

-
    -
  • The group of links must have a title to help users understand what the links are for. For example, 'Related content', 'On this page' or the section name.
  • -
  • If the card is used to navigate a long page of content, it should be displayed on the left-hand side.
  • -
  • If the card is used to navigate a set of pages, like a section or related content, it should be displayed on the right-hand side.
  • -
  • The current page or section being viewed must be inset.
  • -
- -{# Set up inline navigation #} -{% from "wmnds/patterns/content-cards/inline-navigation/_inline-navigation.njk" import wmndsContentCardInlineNavigation %} - -{{ - compExample([ - wmndsContentCardInlineNavigation() - ]) -}} - -{# With current page #} -

In-line navigation with current page

- -{{ - compExample([ - wmndsContentCardInlineNavigation({ - withCurrentPage: true - }) - ]) -}} - -

-{# Email sign up card #} -

Email sign up card

-{# What #} -

What does it do?

-
    -
  • Allows the user to sign up for updates when information changes on a page.
  • -
  • Sends personalised updates to users based on their location.
  • -
-{# When to #} -

When to use it?

-
    -
  • Use these content tiles on pages where users can sign-up for newsletter updates.
  • -
  • For a standard newsletter sign up, use the content tile where the text fields expand.
  • -
  • If you want to capture additional user data, then use the content block which links to an external form, e.g. Campaign Monitor.
  • -
-

When adding a sign up form from Campaign Monitor, you are provided with HTML markup, but make sure not to change any of the generated attributes except for classes.

-

They have been changed in the following examples to avoid accessibility errors.

- - -{# Set up email sign up #} -{% from "wmnds/patterns/content-cards/email-sign-up/_email-sign-up.njk" import wmndsContentCardEmailSignUp %} - -{# Collapsed #} -

Collapsed

-

This is the default state for the email sign up card.

- -{{ - compExample([ - wmndsContentCardEmailSignUp({ exampleSuffix: "example-1"}) - ]) -}} - -{# Expanded #} -

Expanded

-

The collapsed card will expand when the 'continue' button is pressed/tapped.

- -{{ - compExample([ - wmndsContentCardEmailSignUp({ expanded: true, exampleSuffix: "example-2" }) - ]) -}} - -{# External link #} -

External link

-

Use this content card when you want to send users to an external Campaign Monitor form if you want to capture more user data such as demographics, travel habits etc.

- -{{ - compExample([ - wmndsContentCardEmailSignUp({ externalLink: true, exampleSuffix: "example-3" }) - ]) -}} -{% endblock %} diff --git a/src/www/pages/patterns/content-cards/index.njk.md b/src/www/pages/patterns/content-cards/index.njk.md new file mode 100644 index 000000000..c81d8a92e --- /dev/null +++ b/src/www/pages/patterns/content-cards/index.njk.md @@ -0,0 +1,294 @@ +{% extends "www/_layouts/layout-left-pane.njk" %} +{% set pageTitle="Content cards" %} +{% set section="Patterns" %} +{# Imports #} +{% from "www/_partials/component-example/component-example.njk" import compExample %} + +{% block content %} +{% markdown %} +{# About #} + +## About + +These are common applications of the content card component. + +{# Map card #} + +## Map card + +{# What #} + +

What is it?

+ +- A card with an interactive map component. + +{# When to #} + +

When to use it?

+ +- When there is a user need for an interactive map to display information. +- When there is an alternative way to view the information on the interactive map. + +{# When not to #} + +

When not to use it?

+ +- When it is the sole way of presenting the information, you must provide an alternative. +- When the map is a screenshot or image. This is called a static map. Do not use static maps on Transport for West Midlands products. +- When there is no user need for a map, use text description instead. + +{% endmarkdown %} + +{# Map example #} +{% from "wmnds/patterns/content-cards/map/_map.njk" import wmndsContentCardMap %} + +{{ + compExample([ + wmndsContentCardMap() + ]) +}} + +{% markdown %} + +{# Button card #} + +## Button card + +{# What #} + +

What is it?

+ +- A card with several buttons in. + +{# When to #} + +

When to use it?

+ +- To direct users to different content relevant to their needs. +- At the end of the main page content. We found that users preferred to split lots of content into smaller, specific pages and that this was the best way to continue the journey after reading the main overview content. + +{# When not to #} + +

When not to use it?

+ +- To attract the user's attention if there is no benefit to them reading the content. +- To list links within a section or related content. Use the in-line navigation card instead. + +{% endmarkdown %} + +{# Set up buttons #} +{% from "wmnds/patterns/content-cards/buttons/_buttons.njk" import wmndsContentCardButtons %} + +{{ + compExample([ + wmndsContentCardButtons() + ]) +}} + +{% markdown %} + +{# Image card #} + +## Image card + +{# What #} + +

What is it?

+ +- A card with an image in. + +{# When to #} + +

When to use it?

+ +- To display an image within a tile. +- When the image complements the text. + +{# When to to #} + +

When not to use it?

+ +- When the image has text in. This distracts the user and usually fails accessibility criteria. +- When the image is a cartoon or illustration. These are called vector images. Vector images display as poor quality for many users. + +{% endmarkdown %} + +{# Set up image #} +{% from "wmnds/patterns/content-cards/image/_image.njk" import wmndsContentCardImage %} + +{{ + compExample([ + wmndsContentCardImage() + ]) +}} + +{% markdown %} +{# In-line navigation card #} + +## In-line navigation card + +{# What #} + +

What is it?

+ +- A card with in-text links for navigation of sections and displaying related content. + +{# When to #} + +

When to use it?

+ +- To help the user navigate a collection of pages. This is called a section. +- To show related content which meets user needs. +- To help the user navigate a long page using in-text anchors. +- Only use this pattern in a sidebar. + +{# When not to #} + +

When not to use it?

+ +- When the page links you are listing to form part of a journey or process. The journey should be linear. +- When you are trying to attract the user's attention. This is called a call-to-action. + +{# How to #} + +

How to use it

+ +- The group of links must have a title to help users understand what the links are for. For example, 'Related content', 'On this page' or the section name. +- If the card is used to navigate a long page of content, it should be displayed on the left-hand side. +- If the card is used to navigate a set of pages, like a section or related content, it should be displayed on the right-hand side. +- The current page or section being viewed must be inset. + +{% endmarkdown %} + +{# Set up inline navigation #} +{% from "wmnds/patterns/content-cards/inline-navigation/_inline-navigation.njk" import wmndsContentCardInlineNavigation %} + +{{ + compExample([ + wmndsContentCardInlineNavigation() + ]) +}} + +{% markdown %} +{# With current page #} + +### In-line navigation with current page + +{% endmarkdown %} + +{{ + compExample([ + wmndsContentCardInlineNavigation({ + withCurrentPage: true + }) + ]) +}} + +{% markdown %} + +{# Email sign up card #} + +## Email sign up card + +{# What #} + +

What does it do?

+ +- Allows the user to sign up for updates when information changes on a page. +- Sends personalised updates to users based on their location. + +{# When to #} + +

When to use it?

+ +- Use these content tiles on pages where users can sign-up for newsletter updates. +- For a standard newsletter sign up, use the content tile where the text fields expand. +- If you want to capture additional user data, then use the content block which links to an external form, e.g. Campaign Monitor. + +When adding a sign up form from Campaign Monitor, you are provided with HTML markup, but make sure not to change any of the generated attributes except for classes. +They have been changed in the following examples to avoid accessibility errors. + +{% endmarkdown %} + +{# Set up email sign up #} +{% from "wmnds/patterns/content-cards/email-sign-up/_email-sign-up.njk" import wmndsContentCardEmailSignUp %} + +{% markdown %} +{# Collapsed #} + +### Collapsed + +This is the default state for the email sign up card. + +{% endmarkdown %} + +{{ + compExample([ + wmndsContentCardEmailSignUp({ exampleSuffix: "example-1"}) + ]) +}} + +{% markdown %} +{# Expanded #} + +### Expanded + +The collapsed card will expand when the 'continue' button is pressed/tapped. + +{% endmarkdown %} + +{{ + compExample([ + wmndsContentCardEmailSignUp({ expanded: true, exampleSuffix: "example-2" }) + ]) +}} + +{% markdown %} +{# External link #} + +### External link + +Use this content card when you want to send users to an external Campaign Monitor form if you want to capture more user data such as demographics, travel habits etc. + +{% endmarkdown %} + +{{ + compExample([ + wmndsContentCardEmailSignUp({ externalLink: true, exampleSuffix: "example-3" }) + ]) +}} + +{% from "wmnds/patterns/content-cards/swift-card/_swift-card.njk" import wmndsContentCardSwiftCard %} +{% markdown %} +{# Swift card #} + +## Swift card + +

What does it do?

+ +- Shows the image of Swift card and explains how to purchase it + +

When to use it?

+ +- Only on Swift product landing pages such as Swift Go and PAYG + +

When not to use it?

+ +- On informational content pages. If you need to use a content card use a standard content card pattern. + +

How it works

+ +- User can add Swift card image +- User can edit title +- User can add description with bullet points and links +- This card is not clickable + +{% endmarkdown %} + +{{ + compExample([ + wmndsContentCardSwiftCard() + ]) +}} + +{% endblock %}