-
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.
- Loading branch information
1 parent
1d394a5
commit 55a55f7
Showing
10 changed files
with
304 additions
and
27 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,44 @@ | ||
{% set html_style = "background-color: #f0f4f5;" %} | ||
{% set title = "Header with account (logged in)" %} | ||
{% from "components/header/macro.njk" import header %} | ||
{% extends "layout.njk" %} | ||
|
||
{% block body %} | ||
{{ header({ | ||
account: { | ||
user: { | ||
text: "[email protected]" | ||
}, | ||
items: [ | ||
{ | ||
href: "#", | ||
text: "Account and settings" | ||
}, { | ||
href: "#", | ||
text: "Log out" | ||
} | ||
] | ||
}, | ||
primaryLinks: [ | ||
{ | ||
url: "#", | ||
label: "Home" | ||
}, | ||
{ | ||
url: "#", | ||
label: "Services" | ||
}, | ||
{ | ||
url: "#", | ||
label: "Your health" | ||
}, | ||
{ | ||
url: "#", | ||
label: "Messages" | ||
}, { | ||
url: "#", | ||
label: "Help and support" | ||
} | ||
] | ||
}) }} | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% set html_style = "background-color: #f0f4f5;" %} | ||
{% set title = "Header with account (logged out)" %} | ||
{% from "components/header/macro.njk" import header %} | ||
{% extends "layout.njk" %} | ||
|
||
{% block body %} | ||
{{ header({ | ||
account: { | ||
items: [ | ||
{ | ||
href: "#", | ||
text: "Log in" | ||
} | ||
] | ||
} | ||
}) }} | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{% set html_style = "background-color: #f0f4f5;" %} | ||
{% set title = "Header organisational with account (logged in)" %} | ||
{% from "components/header/macro.njk" import header %} | ||
{% extends "layout.njk" %} | ||
|
||
{% block body %} | ||
|
||
{{ header({ | ||
classes: "nhsuk-header--white nhsuk-header--white-nav", | ||
account: { | ||
user: { | ||
text: "Florence Nightingale" | ||
}, | ||
items: [ | ||
{ | ||
href: "#", | ||
text: "Log out" | ||
} | ||
] | ||
}, | ||
organisation: { | ||
name: "Anytown Anyplace", | ||
split: "Anywhere", | ||
descriptor: "NHS Foundation Trust" | ||
}, | ||
primaryLinks: [ | ||
{ | ||
url: "#", | ||
label: "Your hospital visit" | ||
}, | ||
{ | ||
url: "#", | ||
label: "Wards and departments" | ||
}, | ||
{ | ||
url: "#", | ||
label: "Conditions and treatments" | ||
}, | ||
{ | ||
url: "#", | ||
label: "Our people" | ||
}, | ||
{ | ||
url: "#", | ||
label: "Our research" | ||
} | ||
], | ||
search: { | ||
visuallyHiddenLabel: "Search the Anytown Anyplace Anywhere website" | ||
} | ||
}) | ||
}} | ||
|
||
{% endblock %} |
50 changes: 50 additions & 0 deletions
50
app/components/header/header-service-name-with-account-search-nav.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,50 @@ | ||
{% set html_style = "background-color: #f0f4f5;" %} | ||
{% set title = "Header with account, navigation and search" %} | ||
{% from "components/header/macro.njk" import header %} | ||
{% extends "layout.njk" %} | ||
|
||
{% block body %} | ||
{{ header({ | ||
account: { | ||
user: { | ||
text: "Florence Nightingale" | ||
}, | ||
items: [ | ||
{ | ||
href: "#", | ||
text: "Log out" | ||
} | ||
] | ||
}, | ||
service: { | ||
name: "Digital service manual" | ||
}, | ||
search: true, | ||
primaryLinks: [ | ||
{ | ||
url: "#", | ||
label: "NHS service standard" | ||
}, | ||
{ | ||
url: "#", | ||
label: "Design system" | ||
}, | ||
{ | ||
url: "#", | ||
label: "Design principles" | ||
}, | ||
{ | ||
url: "#", | ||
label: "Content guide" | ||
}, | ||
{ | ||
url: "#", | ||
label: "Accessibility" | ||
}, | ||
{ | ||
url: "#", | ||
label: "Community and contribution" | ||
} | ||
] | ||
}) }} | ||
{% 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
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
Oops, something went wrong.