-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* convert to md * added swift card content card * update bullet points Co-authored-by: Gil <43111519+gldgrnt@users.noreply.github.com>
- Loading branch information
Showing
5 changed files
with
335 additions
and
207 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/wmnds/patterns/content-cards/swift-card/_swift-card.njk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() %} | ||
<nav class="wmnds-p-sm"> | ||
<h2 class="wmnds-content-card__title">{{title}}</h2> | ||
<div class="wmnds-grid wmnds-grid--spacing-md-2-md"> | ||
<div class="wmnds-col-1 wmnds-col-md-1-3"> | ||
<img src="{{img}}" alt=""> | ||
</div> | ||
<div class="wmnds-content-card__content wmnds-col-1 wmnds-col-md-2-3"> | ||
{% if content %} | ||
{{content}} | ||
{% else %} | ||
<ul> | ||
<li>You can <a href="#">order a pay as you go Swift card online</a> and we will send you one within 7 days.</li> | ||
<li>If you need a Swift card more quickly, you can go to a <a href="#">travel centre</a>, <a href="#">Payzone store</a> or <a href="#">kiosk</a> and buy it in person.</li> | ||
</ul> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</nav> | ||
{% endcall %} | ||
|
||
{% endmacro %} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.