Skip to content

Commit

Permalink
Add ‘complex header’ example to review app
Browse files Browse the repository at this point in the history
  • Loading branch information
querkmachine committed Aug 29, 2024
1 parent a5a50ea commit b429203
Showing 1 changed file with 66 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{% from "govuk/components/breadcrumbs/macro.njk" import govukBreadcrumbs %}
{% from "govuk/components/header/macro.njk" import govukHeader %}
{% from "govuk/components/service-navigation/macro.njk" import govukServiceNavigation %}
{% from "govuk/components/phase-banner/macro.njk" import govukPhaseBanner %}
{% from "govuk/components/footer/macro.njk" import govukFooter %}

{% extends "layouts/examples.njk" %}

{% block pageTitle %}Complex header - GOV.UK{% endblock %}

{% block header %}
{{ govukHeader({
classes: "govuk-header--full-width-border"
}) }}
{{ govukServiceNavigation({
serviceName: "Find company information",
serviceUrl: "#0",
navigation: [
{
href: '#1',
text: 'Search the register'
},
{
href: '#2',
text: 'Your details'
},
{
href: '#3',
text: 'Your filings'
},
{
href: '#4',
text: 'Companies you follow',
current: true
}
]
}) }}
{% endblock %}

{% block beforeContent %}
<!-- block:beforeContent -->
{{ govukPhaseBanner({
tag: {
text: "Alpha"
},
html: 'This is a new service. Help us improve it and <a class="govuk-link" href="#">give your feedback by email</a>.'
}) }}
{{ govukBreadcrumbs({
items: [
{
text: "Home",
href: "#0"
}
]
}) }}
<!-- endblock:beforeContent -->
{% endblock %}

{% block content %}
<h1 class="govuk-heading-xl">Companies you follow</h1>
<p class="govuk-body">You are not following any companies.</p>
{% endblock %}

{% block footer %}
{{ govukFooter({}) }}
{% endblock %}

0 comments on commit b429203

Please sign in to comment.