-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pattern/1643/confirmation page (#2723)
* feat: pattern skeleton built out * feat: added components to complete pattern * test: new visual regression reference images
- Loading branch information
1 parent
1e295b3
commit 9d249d2
Showing
4 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
...__patterns_confirmation-page_example-confirmation-page_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.
3 changes: 3 additions & 0 deletions
3
...t__patterns_confirmation-page_example-confirmation-page_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.
3 changes: 3 additions & 0 deletions
3
...t__patterns_confirmation-page_example-confirmation-page_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.
69 changes: 69 additions & 0 deletions
69
src/patterns/confirmation-page/example-confirmation-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,69 @@ | ||
--- | ||
title: "Example: Conformation page" | ||
layout: ~ | ||
--- | ||
{% extends "layout/_template.njk" %} | ||
{% from "components/panel/_macro.njk" import onsPanel %} | ||
{% from "components/feedback/_macro.njk" import onsFeedback %} | ||
|
||
{% set pageConfig = { | ||
"header": { | ||
"title": "Online Household Study" | ||
}, | ||
"footer": { | ||
"rows": [ | ||
{ | ||
"itemsList": [ | ||
{ | ||
"text": "Accessibility", | ||
"url": "#0" | ||
}, | ||
{ | ||
"text": "Privacy", | ||
"url": "#0" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
%} | ||
|
||
{% block main %} | ||
<div class="ons-page__body"> | ||
|
||
{% call onsPanel({ | ||
"type": 'success', | ||
"id": 'success-id', | ||
"iconType": 'check', | ||
"iconSize": "l" | ||
}) | ||
%} | ||
<h2>Thank you for completing the Online Household Study</h2> | ||
<p>Your answers have been submitted</p> | ||
{% endcall %} | ||
|
||
{% call onsPanel({ | ||
"type": 'bare', | ||
"iconType": 'lock' | ||
}) | ||
%} | ||
<p>Your personal information is protected by law and will be kept confidential</p> | ||
{% endcall %} | ||
|
||
<div class="ons-grid ons-u-mt-l"> | ||
<div class="ons-grid__col ons-col-8@m"> | ||
{{ | ||
onsFeedback({ | ||
"heading": "What do you think about this service?", | ||
"headingClasses": 'test', | ||
"content": "Your comments will help us make improvements", | ||
"url": "#0", | ||
"linkText": "Give feedback" | ||
}) | ||
}} | ||
</div> | ||
</div> | ||
|
||
</div> | ||
{% endblock %} |