-
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.
* chore(release): 2.1.0 [skip ci] # [2.1.0](v2.0.1...v2.1.0) (2021-08-26) ### Features * add autocomplete selected state ([#875](#875)) ([0e892ff](0e892ff)) * Add timetable patterns ([#877](#877)) ([cbee3f8](cbee3f8)) * added facilities icons ([#878](#878)) ([de557c0](de557c0)) * Adding shareable travel updates widget's documentation. ([#873](#873)) ([7110a99](7110a99)) * Add page & copy * add facilities content & styling Co-authored-by: Gil <43111519+gldgrnt@users.noreply.github.com> Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
- Loading branch information
1 parent
0448115
commit c2f5de2
Showing
9 changed files
with
304 additions
and
2 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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,9 @@ | ||
{% raw %} | ||
{% from "wmnds/patterns/facilities/_facilities.njk" import wmndsFacilities %} | ||
{{ | ||
wmndsFacilities({ | ||
parkingExample: false | ||
}) | ||
}} | ||
{% endraw %} |
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,167 @@ | ||
{% macro wmndsFacilities(params) %} | ||
|
||
{# Imports of components #} | ||
{% from "wmnds/components/inset-text/_inset-text.njk" import wmndsInsetText %} | ||
{% from "wmnds/components/icon/_icon.njk" import wmndsIcon %} | ||
|
||
{# Set params #} | ||
{% set parkingExample = true if params.parkingExample %} | ||
|
||
{% if parkingExample %} | ||
<div class="wmnds-facilities wmnds-bg-white wmnds-p-lg"> | ||
<h3 class="wmnds-facilities__title">Park and ride</h3> | ||
<p class="wmnds-p-t-xsm">Owned by <a href="#">West Midlands Combined Authority</a></p> | ||
<ul class="wmnds-facilities__list"> | ||
<li class="wmnds-facilities__list-item"> | ||
{{ | ||
wmndsIcon({ | ||
icon: 'facilities-taxi-rank', | ||
class: 'wmnds-facilities__icon' | ||
}) | ||
}} | ||
Spaces: 310 | ||
</li> | ||
<li class="wmnds-facilities__list-item"> | ||
{{ | ||
wmndsIcon({ | ||
icon: 'facilities-blue-badge-parking', | ||
class: 'wmnds-facilities__icon' | ||
}) | ||
}} | ||
Blue badge spaces: 14 | ||
</li> | ||
<li class="wmnds-facilities__list-item"> | ||
{{ | ||
wmndsIcon({ | ||
icon: 'facilities-shared-occupancy-parking', | ||
class: 'wmnds-facilities__icon' | ||
}) | ||
}} | ||
Shared occupancy spaces: 10 | ||
</li> | ||
<li class="wmnds-facilities__list-item"> | ||
{{ | ||
wmndsIcon({ | ||
icon: 'facilities-electric-charging', | ||
class: 'wmnds-facilities__icon' | ||
}) | ||
}} | ||
Electric charging spaces: 4 | ||
</li> | ||
</ul> | ||
{{ | ||
wmndsInsetText({ | ||
contentText: "Inset text", | ||
contentHTML: "Parking is available on a first come, first served basis", | ||
classes: "wmnds-m-b-lg" | ||
}) | ||
}} | ||
<p>West Midlands Combined Authority operates a considerate parking policy to ensure all sites are accessible and used in the most appropriate way.</p> | ||
<p class="wmnds-m-b-none">Find information on how <a href="#">Park and Ride</a> works.</p> | ||
</div> | ||
{% else %} | ||
<div class="wmnds-facilities wmnds-grid wmnds-grid--spacing-md-2-md wmnds-bg-white wmnds-p-lg"> | ||
<div class="wmnds-facilities__section wmnds-col-1-1 wmnds-col-md-1-2"> | ||
<h3 class="wmnds-facilities__title">Station facilities</h3> | ||
<ul class="wmnds-facilities__list"> | ||
<li class="wmnds-facilities__list-item"> | ||
{{ | ||
wmndsIcon({ | ||
icon: 'facilities-seating', | ||
class: 'wmnds-facilities__icon' | ||
}) | ||
}} | ||
Seated area | ||
</li> | ||
<li class="wmnds-facilities__list-item"> | ||
{{ | ||
wmndsIcon({ | ||
icon: 'facilities-toilets', | ||
class: 'wmnds-facilities__icon' | ||
}) | ||
}} | ||
Toilets | ||
</li> | ||
<li class="wmnds-facilities__list-item"> | ||
{{ | ||
wmndsIcon({ | ||
icon: 'facilities-baby-changing', | ||
class: 'wmnds-facilities__icon' | ||
}) | ||
}} | ||
Baby changing | ||
</li> | ||
<li class="wmnds-facilities__list-item"> | ||
{{ | ||
wmndsIcon({ | ||
icon: 'facilities-wifi', | ||
class: 'wmnds-facilities__icon' | ||
}) | ||
}} | ||
Wifi | ||
</li> | ||
<li class="wmnds-facilities__list-item"> | ||
{{ | ||
wmndsIcon({ | ||
icon: 'modes-isolated-cycle', | ||
class: 'wmnds-facilities__icon' | ||
}) | ||
}} | ||
Cycle storage | ||
</li> | ||
<li class="wmnds-facilities__list-item"> | ||
{{ | ||
wmndsIcon({ | ||
icon: 'modes-isolated-cycle', | ||
class: 'wmnds-facilities__icon' | ||
}) | ||
}} | ||
Cycle stands: 28 | ||
</li> | ||
</ul> | ||
</div> | ||
<div class="wmnds-facilities__section wmnds-col-1-1 wmnds-col-md-1-2"> | ||
<h3 class="wmnds-facilities__title">Accessibility</h3> | ||
<ul class="wmnds-facilities__list"> | ||
<li class="wmnds-facilities__list-item"> | ||
{{ | ||
wmndsIcon({ | ||
icon: 'facilities-step-free-access', | ||
class: 'wmnds-facilities__icon' | ||
}) | ||
}} | ||
Step-free access | ||
</li> | ||
<li class="wmnds-facilities__list-item"> | ||
{{ | ||
wmndsIcon({ | ||
icon: 'facilities-ramp', | ||
class: 'wmnds-facilities__icon' | ||
}) | ||
}} | ||
Ramp for train access | ||
</li> | ||
<li class="wmnds-facilities__list-item"> | ||
{{ | ||
wmndsIcon({ | ||
icon: 'facilities-induction-loop', | ||
class: 'wmnds-facilities__icon' | ||
}) | ||
}} | ||
Induction loop | ||
</li> | ||
<li class="wmnds-facilities__list-item"> | ||
{{ | ||
wmndsIcon({ | ||
icon: 'facilities-key-scheme', | ||
class: 'wmnds-facilities__icon' | ||
}) | ||
}} | ||
National key toilets available | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
{% endif %} | ||
|
||
{% endmacro %} |
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,45 @@ | ||
.wmnds-facilities { | ||
&__title { | ||
margin: 0 0 $size-md; | ||
} | ||
|
||
&__list { | ||
margin: 0; | ||
padding: 0; | ||
|
||
&:not(:last-child) { | ||
margin-bottom: $size-lg; | ||
} | ||
} | ||
|
||
&__section { | ||
@media (max-width: $breakpoint-md - 1) { | ||
&:not(:last-child) { | ||
margin-bottom: $size-lg; | ||
} | ||
} | ||
} | ||
|
||
&__list-item { | ||
display: flex; | ||
padding: $size-xsm 0; | ||
align-items: center; | ||
flex-wrap: nowrap; | ||
|
||
&:first-child { | ||
margin-top: 0; | ||
} | ||
|
||
&:not(:last-child) { | ||
margin-bottom: $size-md; | ||
} | ||
} | ||
|
||
&__icon { | ||
width: $size-lg; | ||
height: $size-lg; | ||
margin-right: $size-md; | ||
fill: get-color(primary); | ||
flex: 0 0 $size-lg; | ||
} | ||
} |
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 |
---|---|---|
|
@@ -227,6 +227,9 @@ | |
{ | ||
"name": "Content cards" | ||
}, | ||
{ | ||
"name": "Facilities" | ||
}, | ||
{ | ||
"name": "Feedback loop" | ||
}, | ||
|
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,67 @@ | ||
{% extends "www/_layouts/layout-left-pane.njk" %} | ||
{% set pageTitle = "Facilities" %} | ||
|
||
{% set section="Patterns" %} | ||
{% from "www/_partials/component-example/component-example.njk" import compExample %} | ||
{% from "wmnds/patterns/facilities/_facilities.njk" import wmndsFacilities %} | ||
|
||
{% block content %} | ||
|
||
{% markdown %} | ||
|
||
## Station facilities | ||
|
||
### What does it do? | ||
|
||
- Shows users what facilities are available at a train station | ||
- Shows users what accessible facilities are available at a train station | ||
|
||
### When to use it? | ||
|
||
- On a train station page | ||
|
||
### How it works? | ||
|
||
- If a facility is not available at a station, then it won't be shown in the list | ||
|
||
{% endmarkdown %} | ||
|
||
{{ | ||
compExample([ | ||
wmndsFacilities() | ||
], { | ||
componentPath: "wmnds/patterns/facilities/", | ||
njk: true, | ||
iframe: true | ||
} | ||
) | ||
}} | ||
|
||
{% markdown %} | ||
|
||
## Station parking | ||
|
||
<h3>What does it do?</h3> | ||
|
||
- Shows users if car parking is available at a train station | ||
- Tells users who operates the car park | ||
|
||
<h3>When to use it?</h3> | ||
|
||
- On a train station page | ||
|
||
{% endmarkdown %} | ||
|
||
{{ | ||
compExample([ | ||
wmndsFacilities({ | ||
parkingExample: true | ||
}) | ||
], { | ||
componentPath: "wmnds/patterns/facilities/", | ||
njk: true | ||
} | ||
) | ||
}} | ||
|
||
{% endblock %} |