Merge pull request #3910 from alphagov/designerise-webauthn-2fa-page

Designerise the page for signing in with a security key
This commit is contained in:
Chris Hill-Scott
2021-06-03 14:14:47 +01:00
committed by GitHub

View File

@@ -1,27 +1,26 @@
{% extends "withoutnav_template.html" %} {% extends "withoutnav_template.html" %}
{% from "components/page-header.html" import page_header %} {% from "components/page-header.html" import page_header %}
{% from "components/button/macro.njk" import govukButton %} {% from "components/button/macro.njk" import govukButton %}
{% from "components/back-link/macro.njk" import govukBackLink %}
{% set page_title = 'Security keys' %} {% set page_title = 'Get your security key' %}
{% block per_page_title %} {% block per_page_title %}
{{ page_title }} {{ page_title }}
{% endblock %} {% endblock %}
{% block maincolumn_content %} {% block maincolumn_content %}
{{ page_header(
page_title,
back_link=url_for('.user_profile')
) }}
{{ govukBackLink({ "href": url_for('.user_profile') }) }}
<div class="govuk-grid-row"> <div class="govuk-grid-row">
<div class="govuk-grid-column-five-sixths"> <div class="govuk-grid-column-one-half">
<p class="govuk-body">Security key</p> {{ page_header(page_title) }}
<p class="govuk-body">When you are ready to authenticate, press the button below.</p> <p class="govuk-body">
You need to have your security key to sign in.
</p>
{{ govukButton({ {{ govukButton({
"element": "button", "element": "button",
"text": "Webauthn authenticate click me click me", "text": "Check security key",
"classes": "govuk-button--secondary", "classes": "govuk-button--secondary",
"attributes": { "attributes": {
"data-module": "authenticate-security-key", "data-module": "authenticate-security-key",
@@ -29,5 +28,8 @@
} }
}) }} }) }}
</div> </div>
<div class="govuk-grid-column-one-quarter">
<img src="{{ asset_url('images/security-key.svg') }}" alt="" class="webauthn-illustration">
</div>
</div> </div>
{% endblock %} {% endblock %}