diff --git a/app/components/header/header-account-logged-in.njk b/app/components/header/header-account-logged-in.njk new file mode 100644 index 000000000..d917ed387 --- /dev/null +++ b/app/components/header/header-account-logged-in.njk @@ -0,0 +1,42 @@ +{% 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: { + href: "#", + text: "florence.nightingale@nhs.net" + }, + items: [ + { + href: "#", + text: "Log out" + } + ] + }, + primaryLinks: [ + { + url: "#", + label: "Home" + }, + { + url: "#", + label: "Services" + }, + { + url: "#", + label: "Your health" + }, + { + url: "#", + label: "Messages" + }, { + url: "#", + label: "Help and support" + } + ] + }) }} +{% endblock %} diff --git a/app/components/header/header-account-logged-out.njk b/app/components/header/header-account-logged-out.njk new file mode 100644 index 000000000..a95356c81 --- /dev/null +++ b/app/components/header/header-account-logged-out.njk @@ -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 %} diff --git a/app/components/header/header-org-white-account.njk b/app/components/header/header-org-white-account.njk new file mode 100644 index 000000000..732f91d7c --- /dev/null +++ b/app/components/header/header-org-white-account.njk @@ -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 %} diff --git a/app/components/header/header-service-name-with-account-search-nav.njk b/app/components/header/header-service-name-with-account-search-nav.njk new file mode 100644 index 000000000..1dc461c97 --- /dev/null +++ b/app/components/header/header-service-name-with-account-search-nav.njk @@ -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 %} diff --git a/app/pages/examples.njk b/app/pages/examples.njk index 857e28214..bee924080 100644 --- a/app/pages/examples.njk +++ b/app/pages/examples.njk @@ -79,12 +79,16 @@