-
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 b4c71cc
Showing
12 changed files
with
405 additions
and
58 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, custom html)" %} | ||
{% from "components/header/macro.njk" import header %} | ||
{% extends "layout.njk" %} | ||
|
||
{% block body %} | ||
<style> | ||
.app-count { | ||
align-self: center; | ||
align-items: center; | ||
background-color: #d5281b; | ||
border-radius: 1em; | ||
color: #fff; | ||
font-size: 14px; | ||
height: 1.5em; | ||
line-height: 1.5em; | ||
min-width: 1.5em; | ||
padding: 0.25em; | ||
display: inline-flex; | ||
justify-content: center; | ||
} | ||
</style> | ||
|
||
{{ header({ | ||
account: { | ||
items: [ | ||
{ | ||
href: "#", | ||
text: "Check your profile" | ||
}, | ||
{ | ||
html: '<a class="nhsuk-header__account-link" href="#">Notifications</a> <span class="app-count">8</span>' | ||
}, | ||
{ | ||
href: "#", | ||
text: "Sign out" | ||
} | ||
] | ||
}, | ||
service: { | ||
name: "Profile manager" | ||
} | ||
}) }} | ||
{% 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,43 @@ | ||
{% 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: { | ||
items: [ | ||
{ | ||
href: "#", | ||
text: "[email protected]", | ||
icon: true | ||
}, | ||
{ | ||
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,50 @@ | ||
{% set html_style = "background-color: #f0f4f5;" %} | ||
{% set title = "Header with account (logged in, RBAC)" %} | ||
{% from "components/header/macro.njk" import header %} | ||
{% extends "layout.njk" %} | ||
|
||
{% block body %} | ||
{{ header({ | ||
account: { | ||
items: [ | ||
{ | ||
href: "#", | ||
text: "Florence Nightingale", | ||
icon: true | ||
}, | ||
{ | ||
text: "RA Manager, Hull and East Yorkshire Hospitals NHS Trust (RWA)" | ||
}, | ||
{ | ||
href: "#", | ||
text: "Change role" | ||
}, | ||
{ | ||
href: "#", | ||
text: "Log out" | ||
} | ||
] | ||
}, | ||
search: { | ||
placeholder: "User name, UUID or NI number", | ||
visuallyHiddenLabel: "Search for a user" | ||
}, | ||
service: { | ||
name: "CIS2 - Care Identity Management" | ||
}, | ||
primaryLinks: [ | ||
{ | ||
url: "#", | ||
label: "Home" | ||
}, | ||
{ | ||
url: "#", | ||
label: "Create user" | ||
}, | ||
{ | ||
url: "#", | ||
label: "Find user" | ||
} | ||
] | ||
}) }} | ||
{% 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,55 @@ | ||
{% 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: { | ||
items: [ | ||
{ | ||
text: "Florence Nightingale", | ||
icon: true | ||
}, | ||
{ | ||
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 %} |
51 changes: 51 additions & 0 deletions
51
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,51 @@ | ||
{% 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: { | ||
items: [ | ||
{ | ||
text: "Florence Nightingale", | ||
icon: true | ||
}, | ||
{ | ||
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
Oops, something went wrong.