-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add example pattern for documentation (#2834)
* add example pattern for documentation * remove unused imports * approve visual tests * approve visual tests * resolve Pr comments * approve visual tests * update test
- Loading branch information
1 parent
2cf9dd7
commit 5e7296a
Showing
37 changed files
with
113 additions
and
58 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...nents_timeout-panel_example-panel-with-timeout-warning_0_document_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...atterns_error-status-pages_example-access-denied-error_0_document_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...patterns_error-status-pages_example-access-denied-error_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...patterns_error-status-pages_example-access-denied-error_0_document_2_mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
..._error-status-pages_example-browser-incompatible-error_0_document_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...s_error-status-pages_example-browser-incompatible-error_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...s_error-status-pages_example-browser-incompatible-error_0_document_2_mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...patterns_error-status-pages_example-maintenance-notice_0_document_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
..._patterns_error-status-pages_example-maintenance-notice_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
..._patterns_error-status-pages_example-maintenance-notice_0_document_2_mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...or-status-pages_example-page-not-found-error-with-code_0_document_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...ror-status-pages_example-page-not-found-error-with-code_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...ror-status-pages_example-page-not-found-error-with-code_0_document_2_mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...tterns_error-status-pages_example-page-not-found-error_0_document_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...atterns_error-status-pages_example-page-not-found-error_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...atterns_error-status-pages_example-page-not-found-error_0_document_2_mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...test__patterns_error-status-pages_example-server-error_0_document_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...-test__patterns_error-status-pages_example-server-error_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...-test__patterns_error-status-pages_example-server-error_0_document_2_mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...ror-status-pages_example-timed-out-error-not-signed-in_0_document_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...rror-status-pages_example-timed-out-error-not-signed-in_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...rror-status-pages_example-timed-out-error-not-signed-in_0_document_2_mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...t__patterns_error-status-pages_example-timed-out-error_0_document_0_desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...st__patterns_error-status-pages_example-timed-out-error_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...st__patterns_error-status-pages_example-timed-out-error_0_document_2_mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
...oduction-page_example-survey-section-introduction-page_0_document_0_desktop.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...roduction-page_example-survey-section-introduction-page_0_document_1_tablet.png
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...roduction-page_example-survey-section-introduction-page_0_document_2_mobile.png
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
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
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
46 changes: 46 additions & 0 deletions
46
src/patterns/survey-section-introduction-page/example-survey-section-introduction-page.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,46 @@ | ||
--- | ||
title: "Example: Survey section introduction page" | ||
layout: ~ | ||
--- | ||
{% extends "layout/_template.njk" %} | ||
{% from "components/button/_macro.njk" import onsButton %} | ||
|
||
{% set pageConfig = { | ||
"header": { | ||
"title": "Service name" | ||
}, | ||
"footer": { | ||
"rows": [ | ||
{ | ||
"itemsList": [ | ||
{ | ||
"text": "Accessibility", | ||
"url": "#0" | ||
}, | ||
{ | ||
"text": "Privacy", | ||
"url": "#0" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
%} | ||
|
||
{% block main %} | ||
<div class="ons-page__body"> | ||
<h1 class="ons-u-fs-xxl">Income</h1> | ||
|
||
<p>This section asks for information regarding your business's income. This includes questions about total turnover and environmental turnover.</p> | ||
<p>This section requires figures for business activity within <strong>GB</strong>. Exclude Nothern Ireland business activity.</p> | ||
|
||
{{ | ||
onsButton({ | ||
"classes": 'ons-u-mb-m ons-u-mt-l', | ||
"text": 'Continue' | ||
}) | ||
}} | ||
|
||
</div> | ||
{% endblock %} |