-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ‘complex header’ example to review app
- Loading branch information
1 parent
a5a50ea
commit b429203
Showing
1 changed file
with
66 additions
and
0 deletions.
There are no files selected for viewing
66 changes: 66 additions & 0 deletions
66
packages/govuk-frontend-review/src/views/examples/complex-header/index.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,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 %} |