Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
domoscargin committed Jun 19, 2024
1 parent 55b5653 commit 70f4aa6
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,14 @@
containerClasses: "app-width-container--wide"
}) }}

{{ govukPhaseBanner({
tag: {
text: "Alpha"
},
html: 'C\'est un nouveau service - vos <a class="govuk-link" href="#">commentaires</a> nous aideront à l\'améliorer.'
}) }}
{% set phaseBanner %}
{{ govukPhaseBanner({
tag: {
text: "Alpha"
},
html: 'C\'est un nouveau service - vos <a class="govuk-link" href="#">commentaires</a> nous aideront à l\'améliorer.'
}) }}
{% endset %}

{{ govukServiceHeader({
serviceName: "Nom du service",
Expand All @@ -74,7 +76,10 @@
href: '#3',
text: 'Élément de navigation 3'
}
]
],
slots: {
end: phaseBanner
}
}) }}
<!-- endblock:header -->
{% endblock %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,12 @@ notes: Based on elements of Companies Houses company information view

{% block header %}
{{ govukHeader() }}
{{ govukPhaseBanner({
tag: { text: 'Alpha' },
html: 'This is a new service – your <a class="govuk-link" href="#">feedback</a> will help us to improve it.'
}) }}
{% set phaseBanner %}
{{ govukPhaseBanner({
tag: { text: 'Alpha' },
html: 'This is a new service – your <a class="govuk-link" href="#">feedback</a> will help us to improve it.'
}) }}
{% endset %}
{{ govukServiceHeader({
serviceName: 'Manage company information',
serviceUrl: '#/',
Expand All @@ -108,7 +110,10 @@ notes: Based on elements of Companies Houses company information view
{ href: '#/3', text: 'People', active: true },
{ href: '#/4', text: 'Registers' },
{ href: '#/4', text: 'More' }
]
],
slots: {
end: phaseBanner
}
}) }}
{% endblock %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,19 @@ scenario: |

{% block header %}
{{ super() }}
{{ govukPhaseBanner({
tag: {
text: "Beta"
},
html: 'This is a new service – your <a class="govuk-link" href="#">feedback</a> will help us to improve it.'
}) }}
{% set phaseBanner %}
{{ govukPhaseBanner({
tag: {
text: "Beta"
},
html: 'This is a new service – your <a class="govuk-link" href="#">feedback</a> will help us to improve it.'
}) }}
{% endset %}
{{ govukServiceHeader({
serviceName: "Apply for a passport"
serviceName: "Apply for a passport",
slots: {
end: phaseBanner
}
}) }}
{% endblock %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
{% extends "layouts/full-page-example.njk" %}

{% from "govuk/components/panel/macro.njk" import govukPanel %}
{% from "govuk/components/phase-banner/macro.njk" import govukPhaseBanner %}
{% from "govuk/components/service-header/macro.njk" import govukServiceHeader %}

{% set pageTitle = "Photo submitted" %}
{% block pageTitle %}{{ pageTitle }} - GOV.UK{% endblock %}

{% block header %}
{{ super() }}
{{ govukPhaseBanner({
tag: {
text: "Beta"
},
html: 'This is a new service – your <a class="govuk-link" href="#">feedback</a> will help us to improve it.'
}) }}
{% set phaseBanner %}
{{ govukPhaseBanner({
tag: {
text: "Beta"
},
html: 'This is a new service – your <a class="govuk-link" href="#">feedback</a> will help us to improve it.'
}) }}
{% endset %}
{{ govukServiceHeader({
serviceName: "Apply for a passport",
navigation: [
Expand All @@ -26,7 +29,10 @@
text: "Upload a photo",
active: true
}
]
],
slots: {
end: phaseBanner
}
}) }}
{% endblock %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ scenario: |

{% block header %}
{{ super() }}
{{ govukPhaseBanner({
tag: {
text: "Beta"
},
html: 'This is a new service – your <a class="govuk-link" href="#">feedback</a> will help us to improve it.'
}) }}
{% set phaseBanner %}
{{ govukPhaseBanner({
tag: {
text: "Beta"
},
html: 'This is a new service – your <a class="govuk-link" href="#">feedback</a> will help us to improve it.'
}) }}
{% endset %}
{{ govukServiceHeader({
serviceName: "Apply for a passport",
navigation: [
Expand All @@ -44,7 +46,10 @@ scenario: |
text: "Upload a photo",
active: true
}
]
],
slots: {
end: phaseBanner
}
}) }}
{% endblock %}

Expand Down

0 comments on commit 70f4aa6

Please sign in to comment.