-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[refs #206] Transactional header with service name
Add styles for a transactional header with a service name and update the nunjucks macro to pass through parameters for the service name and href. Create an example page.
- Loading branch information
1 parent
ddc60bf
commit 6446084
Showing
4 changed files
with
72 additions
and
5 deletions.
There are no files selected for viewing
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,39 @@ | ||
{% set html_style = 'background-color: #f0f4f5;' %} | ||
{% set title = 'Header transactional with service name' %} | ||
{% from 'components/header/macro.njk' import header %} | ||
{% extends 'layout.njk' %} | ||
|
||
{% block body %} | ||
|
||
{{ header({ | ||
"service": { | ||
"name": "Find out why your NHS data matters" | ||
}, | ||
"showNav": "false", | ||
"showSearch": "false", | ||
"primaryLinks": [ | ||
{ | ||
"url" : "https://www.nhs.uk/conditions", | ||
"label" : "Health A-Z" | ||
}, | ||
{ | ||
'url' : 'https://www.nhs.uk/live-well/', | ||
'label' : 'Live Well' | ||
}, | ||
{ | ||
'url' : 'https://www.nhs.uk/conditions/social-care-and-support/', | ||
'label' : 'Care and support' | ||
}, | ||
{ | ||
'url' : 'https://www.nhs.uk/news/', | ||
'label' : 'Health news' | ||
}, | ||
{ | ||
'url' : 'https://www.nhs.uk/service-search', | ||
'label' : 'Services near you' | ||
} | ||
] | ||
}) | ||
}} | ||
|
||
{% endblock %} |
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
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
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