Skip to content

Commit 8ecab62

Browse files
committed
Add structure and initial content for standards section
1 parent d9a4d7e commit 8ecab62

File tree

10 files changed

+270
-80
lines changed

10 files changed

+270
-80
lines changed

_includes/layout.njk

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,17 @@
2121
<a href="/" class="logo">{% include 'html/logo.html' %}</a>
2222
</header>
2323

24+
<main>
25+
<h1 class="hero {{ heroModifier }}"><span class="layout">{{ pageTitle }}</span></h1>
26+
27+
<div class="layout">
28+
2429
{{ content | safe }}
2530

31+
</div>
32+
33+
</main>
34+
2635
<footer>
2736
<small>© Barnardo’s</small>
2837
</footer>

_site/index.html

Lines changed: 41 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<!-- feed it through our cssmin filter to minify -->
1010
<style>
11-
@font-face{font-display:swap;font-family:proxima-nova;src:url("../fonts/proximanova-light-webfont.woff2") format("woff2"),url("../fonts/proximanova-light-webfont.woff") format("woff");font-weight:300;font-style:normal}@font-face{font-display:swap;font-family:proxima-nova;src:url("../fonts/proximanova-bold-webfont.woff2") format("woff2"),url("../fonts/proximanova-bold-webfont.woff") format("woff");font-weight:700;font-style:normal}:root{--grey-base:0 0%;--grey-dark:hsl(var(--grey-base) 11%);--grey-medium-light:hsl(var(--grey-base) 91%);--grey-light:hsl(var(--grey-base) 96%);--theme-base:39.1 100%;--theme-medium:hsl(var(--theme-base) 64%);--step--2:clamp(0.79rem, calc(0.79rem + 0.01vw), 0.80rem);--step--1:clamp(0.89rem, calc(0.89rem + 0.13vw), 1.00rem);--step-0:clamp(1.00rem, calc(1.00rem + 0.29vw), 1.25rem);--step-1:clamp(1.13rem, calc(1.13rem + 0.50vw), 1.56rem);--step-2:clamp(1.27rem, calc(1.27rem + 0.79vw), 1.95rem);--step-3:clamp(1.42rem, calc(1.42rem + 1.16vw), 2.44rem);--step-4:clamp(1.60rem, calc(1.60rem + 1.66vw), 3.05rem);--step-5:clamp(1.80rem, calc(1.80rem + 2.30vw), 3.82rem)}html{block-size:100%}body{block-size:100%;color:var(--grey-dark);display:flex;flex-direction:column;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Cantarell,"Noto Sans",sans-serif;font-size:var(--step-0);line-height:1.5;margin:0}header{box-shadow:inset 0 -1px 0 0 #e8e8e8;padding:26px 0}img,svg{max-width:100%}main>*{margin-block-end:2rem}h1,h2,h3{font-family:proxima-nova,Helvetica,Arial,sans-serif;line-height:1.2;margin:0 0 2rem}h1{font-size:var(--step-5)}h2{font-size:var(--step-4)}h3{font-size:var(--step-3);margin-block-end:1rem}ol,ul{list-style:none;padding:0}li,p{margin:0 0 2rem;max-inline-size:65ch}footer{background-color:var(--grey-light);border-block-start:4px solid var(--grey-medium-light);margin-block-start:auto;padding:32px 16px}small{font-size:var(--step--1)}.layout{display:block;margin-inline:auto;max-inline-size:87.5rem;inline-size:95vw}.logo{block-size:3.875rem;display:block;inline-size:8.4375rem;max-inline-size:100%}.logo-img{block-size:100%;inline-size:100%}.hero{background:var(--theme-medium);padding:3rem 0}
11+
@font-face{font-display:swap;font-family:proxima-nova;src:url("../fonts/proximanova-light-webfont.woff2") format("woff2"),url("../fonts/proximanova-light-webfont.woff") format("woff");font-weight:300;font-style:normal}@font-face{font-display:swap;font-family:proxima-nova;src:url("../fonts/proximanova-bold-webfont.woff2") format("woff2"),url("../fonts/proximanova-bold-webfont.woff") format("woff");font-weight:700;font-style:normal}:root{--grey-base:0 0%;--grey-dark:hsl(var(--grey-base) 11%);--grey-medium-light:hsl(var(--grey-base) 91%);--grey-light:hsl(var(--grey-base) 96%);--yellow-base:39.1 100%;--yellow-medium:hsl(var(--yellow-base) 64%);--blue-base:185.7 100%;--blue-medium:hsl(var(--blue-base) 28%);--step--2:clamp(0.79rem, calc(0.79rem + 0.01vw), 0.80rem);--step--1:clamp(0.89rem, calc(0.89rem + 0.13vw), 1.00rem);--step-0:clamp(1.00rem, calc(1.00rem + 0.29vw), 1.25rem);--step-1:clamp(1.13rem, calc(1.13rem + 0.50vw), 1.56rem);--step-2:clamp(1.27rem, calc(1.27rem + 0.79vw), 1.95rem);--step-3:clamp(1.42rem, calc(1.42rem + 1.16vw), 2.44rem);--step-4:clamp(1.60rem, calc(1.60rem + 1.66vw), 3.05rem);--step-5:clamp(1.80rem, calc(1.80rem + 2.30vw), 3.82rem)}html{block-size:100%}body{block-size:100%;color:var(--grey-dark);display:flex;flex-direction:column;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,Cantarell,"Noto Sans",sans-serif;font-size:var(--step-0);line-height:1.5;margin:0}header{box-shadow:inset 0 -1px 0 0 #e8e8e8;padding:26px 0}img,svg{max-inline-size:100%}main>*{margin-block-end:2rem}h1,h2,h3{font-family:proxima-nova,Helvetica,Arial,sans-serif;line-height:1.2;margin:0 0 2rem}h1{font-size:var(--step-5)}h2{font-size:var(--step-4)}h3{font-size:var(--step-3);margin-block-end:1rem}ol,ul{list-style:none;padding:0}li,p{margin:0 0 2rem;max-inline-size:65ch}footer{background-color:var(--grey-light);border-block-start:4px solid var(--grey-medium-light);margin-block-start:auto;padding:32px 16px}small{font-size:var(--step--1)}.layout{display:block;margin-inline:auto;max-inline-size:87.5rem;inline-size:95vw}.logo{block-size:3.875rem;display:block;inline-size:8.4375rem;max-inline-size:100%}.logo-img{block-size:100%;inline-size:100%}.hero{background:var(--yellow-medium);padding:3rem 0}.hero--standards{background:var(--blue-medium);color:#fff}
1212
</style>
1313
</head>
1414

@@ -34,47 +34,50 @@
3434
</a>
3535
</header>
3636

37+
<main>
38+
<h1 class="hero "><span class="layout">Online platforms &amp; standards</span></h1>
39+
40+
<div class="layout">
41+
3742

38-
<main>
39-
<h1 class="hero"><span class="layout">Online platforms & standards</span></h1>
43+
<p>An <dfn>online platform</dfn> is a set of shared components, tools, functions, services and documentation available for use across the organisation.<p>
44+
45+
<h2>Our principles</h2>
46+
<ul role="list">
47+
<li>
48+
<h3>Prioritise our users over everything else</h3>
49+
<p>Some of the most vulnerable people in the UK use Barnardo's websites, often in stressful situations. Do not sacrifice simplicity in their experience for the sake of our own convenience.</p>
50+
</li>
51+
<li>
52+
<h3>Provide the broadest access</h3>
53+
<p>An internet connection should be enough to access Barnardo's online. Do not exclude people based on ability, technology, network quality, geographical location, or personal circumstances.</p>
54+
</li>
55+
<li>
56+
<h3>Consider user journeys from start to finish</h3>
57+
<p>User experience is how people feel about the prospect of using a product, how they feel while using it, and how they feel about it when they've finished. Design for the whole journey.</p>
58+
</li>
59+
<li>
60+
<h3>Always test with real users</h3>
61+
<p>User interface design is where intuition goes to die. Validate ideas with real users and Barnardo's subject matter experts.</p>
62+
</li>
63+
<li>
64+
<h3>Iterate to improve</h3>
65+
<p>Good online platforms are an aggregation of marginal gains, over time. What worked yesterday may not work tomorrow. Experimenting, prototyping, and refining are creative endeavours.</p>
66+
</li>
67+
<li>
68+
<h3>Make our brand shine through</h3>
69+
<p>Our brand is a powerful tool in our ambition to deliver on our ten-year strategy. It allows us to reach more of those who need us and want to support us, and reinforces trust in us.</p>
70+
</li>
71+
<li>
72+
<h3>Work in the open</h3>
73+
<p>Educate, collaborate, share, and learn with external communities for the betterment of society. </p>
74+
</li>
75+
</ul>
4076

41-
<div class="layout">
42-
<p>An <dfn>online platform</dfn> is a set of shared components, tools, functions, services and documentation available for use across the organisation.<p>
4377

44-
<h2>Our principles</h2>
45-
<ul role="list">
46-
<li>
47-
<h3>Prioritise our users over everything else</h3>
48-
<p>Some of the most vulnerable people in the UK use Barnardo's websites, often in stressful situations. Do not sacrifice simplicity in their experience for the sake of our own convenience.</p>
49-
</li>
50-
<li>
51-
<h3>Provide the broadest access</h3>
52-
<p>An internet connection should be enough to access Barnardo's online. Do not exclude people based on ability, technology, network quality, geographical location, or personal circumstances.</p>
53-
</li>
54-
<li>
55-
<h3>Consider user journeys from start to finish</h3>
56-
<p>User experience is how people feel about the prospect of using a product, how they feel while using it, and how they feel about it when they've finished. Design for the whole journey.</p>
57-
</li>
58-
<li>
59-
<h3>Always test with real users</h3>
60-
<p>User interface design is where intuition goes to die. Validate ideas with real users and Barnardo's subject matter experts.</p>
61-
</li>
62-
<li>
63-
<h3>Iterate to improve</h3>
64-
<p>Good online platforms are an aggregation of marginal gains, over time. What worked yesterday may not work tomorrow. Experimenting, prototyping, and refining are creative endeavours.</p>
65-
</li>
66-
<li>
67-
<h3>Make our brand shine through</h3>
68-
<p>Our brand is a powerful tool in our ambition to deliver on our ten-year strategy. It allows us to reach more of those who need us and want to support us, and reinforces trust in us.</p>
69-
</li>
70-
<li>
71-
<h3>Work in the open</h3>
72-
<p>Educate, collaborate, share, and learn with external communities for the betterment of society. </p>
73-
</li>
74-
</ul>
75-
</div>
76-
</main>
78+
</div>
7779

80+
</main>
7881

7982
<footer>
8083
<small>© Barnardo’s</small>

_site/standards/index.html

Lines changed: 59 additions & 0 deletions
Large diffs are not rendered by default.

_site/standards/web-accessibility/index.html

Lines changed: 68 additions & 0 deletions
Large diffs are not rendered by default.

css/common.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@
2525

2626
/* Hero */
2727
.hero {
28-
background: var(--theme-medium);
28+
background: var(--yellow-medium);
2929
padding: 3rem 0;
3030
}
31+
32+
.hero--standards {
33+
background: var(--blue-medium);
34+
color: white;
35+
}

css/elements.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
--grey-dark: hsl(var(--grey-base) 11%);
55
--grey-medium-light: hsl(var(--grey-base) 91%);
66
--grey-light: hsl(var(--grey-base) 96%);
7-
--theme-base: 39.1 100%;
8-
--theme-medium: hsl(var(--theme-base) 64%);
7+
--yellow-base: 39.1 100%;
8+
--yellow-medium: hsl(var(--yellow-base) 64%);
9+
--blue-base: 185.7 100%;
10+
--blue-medium: hsl(var(--blue-base) 28%);
911

1012
/* Type
1113
* @link https://utopia.fyi/type/calculator?c=0,16,1.125,1400,20,1.25,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l
@@ -44,7 +46,7 @@ header {
4446

4547
img,
4648
svg {
47-
max-width: 100%;
49+
max-inline-size: 100%;
4850
}
4951

5052
main > * {

index.njk

Lines changed: 33 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,39 @@
22
layout: layout
33
title: Barnardo's online platforms and standards
44
desc: The principles guiding the development of our online platforms
5+
pageTitle: Online platforms & standards
56
---
67

7-
<main>
8-
<h1 class="hero"><span class="layout">Online platforms & standards</span></h1>
8+
<p>An <dfn>online platform</dfn> is a set of shared components, tools, functions, services and documentation available for use across the organisation.<p>
99

10-
<div class="layout">
11-
<p>An <dfn>online platform</dfn> is a set of shared components, tools, functions, services and documentation available for use across the organisation.<p>
12-
13-
<h2>Our principles</h2>
14-
<ul role="list">
15-
<li>
16-
<h3>Prioritise our users over everything else</h3>
17-
<p>Some of the most vulnerable people in the UK use Barnardo's websites, often in stressful situations. Do not sacrifice simplicity in their experience for the sake of our own convenience.</p>
18-
</li>
19-
<li>
20-
<h3>Provide the broadest access</h3>
21-
<p>An internet connection should be enough to access Barnardo's online. Do not exclude people based on ability, technology, network quality, geographical location, or personal circumstances.</p>
22-
</li>
23-
<li>
24-
<h3>Consider user journeys from start to finish</h3>
25-
<p>User experience is how people feel about the prospect of using a product, how they feel while using it, and how they feel about it when they've finished. Design for the whole journey.</p>
26-
</li>
27-
<li>
28-
<h3>Always test with real users</h3>
29-
<p>User interface design is where intuition goes to die. Validate ideas with real users and Barnardo's subject matter experts.</p>
30-
</li>
31-
<li>
32-
<h3>Iterate to improve</h3>
33-
<p>Good online platforms are an aggregation of marginal gains, over time. What worked yesterday may not work tomorrow. Experimenting, prototyping, and refining are creative endeavours.</p>
34-
</li>
35-
<li>
36-
<h3>Make our brand shine through</h3>
37-
<p>Our brand is a powerful tool in our ambition to deliver on our ten-year strategy. It allows us to reach more of those who need us and want to support us, and reinforces trust in us.</p>
38-
</li>
39-
<li>
40-
<h3>Work in the open</h3>
41-
<p>Educate, collaborate, share, and learn with external communities for the betterment of society. </p>
42-
</li>
43-
</ul>
44-
</div>
45-
</main>
10+
<h2>Our principles</h2>
11+
<ul role="list">
12+
<li>
13+
<h3>Prioritise our users over everything else</h3>
14+
<p>Some of the most vulnerable people in the UK use Barnardo's websites, often in stressful situations. Do not sacrifice simplicity in their experience for the sake of our own convenience.</p>
15+
</li>
16+
<li>
17+
<h3>Provide the broadest access</h3>
18+
<p>An internet connection should be enough to access Barnardo's online. Do not exclude people based on ability, technology, network quality, geographical location, or personal circumstances.</p>
19+
</li>
20+
<li>
21+
<h3>Consider user journeys from start to finish</h3>
22+
<p>User experience is how people feel about the prospect of using a product, how they feel while using it, and how they feel about it when they've finished. Design for the whole journey.</p>
23+
</li>
24+
<li>
25+
<h3>Always test with real users</h3>
26+
<p>User interface design is where intuition goes to die. Validate ideas with real users and Barnardo's subject matter experts.</p>
27+
</li>
28+
<li>
29+
<h3>Iterate to improve</h3>
30+
<p>Good online platforms are an aggregation of marginal gains, over time. What worked yesterday may not work tomorrow. Experimenting, prototyping, and refining are creative endeavours.</p>
31+
</li>
32+
<li>
33+
<h3>Make our brand shine through</h3>
34+
<p>Our brand is a powerful tool in our ambition to deliver on our ten-year strategy. It allows us to reach more of those who need us and want to support us, and reinforces trust in us.</p>
35+
</li>
36+
<li>
37+
<h3>Work in the open</h3>
38+
<p>Educate, collaborate, share, and learn with external communities for the betterment of society. </p>
39+
</li>
40+
</ul>

standards/accessibility.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
layout: layout
3+
title: Accessibility | Standards as a platform | Barnardo's
4+
desc: Barnardo's online platforms accessibility standards
5+
permalink: standards/web-accessibility/
6+
pageTitle: Web accessibility
7+
tags: standard
8+
extract: How we make sure people with disabilities can use our online products.
9+
heroModifier: hero--standards
10+
---
11+
12+
It is a legal and moral obligation to make web content and functionality available to people with disabilities. This includes but is not limited to:
13+
14+
- Vision impairment
15+
- Hearing impairment
16+
- Cognitive impairment
17+
- Fine motor control impairment
18+
- Physical impairment
19+
- Injury
20+
- Siezure susceptibility
21+
- Neurodiversity
22+
- Motion sickness
23+
- Reading level
24+
25+
All Barnardo's web pages must achieve [WCAG](https://www.w3.org/TR/WCAG21/) (web content accessibility guidelines) AA conformance throughout, and level AAA conformance where possible.
26+
27+
Automated accessibility tools can pick up some problems, but manual testing is required to meet many success criteria. For example an automated tool cannot check if alternative text is descriptive and relevant.
28+
29+
We recommend [TetraLogical](https://tetralogical.com/) for accessibility testing and reporting if the relevant expertise is not present in the team building your product.

standards/index.njk

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
layout: layout
3+
title: Standards as a platform | Barnardo's
4+
desc: The principles guiding the development of our online platforms
5+
pageTitle: Standards as a platform
6+
tags: main
7+
heroModifier: hero--standards
8+
---
9+
10+
<p>If you are building a Barnardo's online product this is where you'll find the resources to make it to our standards.</p>
11+
12+
{% set standardsList = collections.standard %}
13+
{% for standard in standardsList %}
14+
<h3><a href="/{{ standard.data.permalink }}">{{ standard.data.pageTitle }}</a></h3>
15+
{% endfor %}

standards/standards.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"tags": [
3+
"standardx"
4+
]
5+
}

0 commit comments

Comments
 (0)