Skip to content

Commit

Permalink
Pattern/1643/confirmation page (#2723)
Browse files Browse the repository at this point in the history
* feat: pattern skeleton built out

* feat: added components to complete pattern

* test: new visual regression reference images
  • Loading branch information
alec-hamilton-ons authored Jul 17, 2023
1 parent 1e295b3 commit 9d249d2
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 src/patterns/confirmation-page/example-confirmation-page.njk
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 %}

0 comments on commit 9d249d2

Please sign in to comment.