diff --git a/packages/govuk-frontend-review/src/views/full-page-examples/header-kitchen-sink-multi-lang/index.njk b/packages/govuk-frontend-review/src/views/full-page-examples/header-kitchen-sink-multi-lang/index.njk new file mode 100644 index 0000000000..29631bf18a --- /dev/null +++ b/packages/govuk-frontend-review/src/views/full-page-examples/header-kitchen-sink-multi-lang/index.njk @@ -0,0 +1,429 @@ +--- +title: Child maintenance - multiple language +name: Child maintenance (multiple language) +scenario: | + Worst case scenario that includes all possible header-related components. + This combination of components is less common but possible. + Things to test are if any of the header-related components hinder each other + or confuse users. +--- + +{% extends "layouts/full-page-example.njk" %} + +{% from "govuk/components/cookie-banner/macro.njk" import govukCookieBanner %} +{% from "govuk/components/breadcrumbs/macro.njk" import govukBreadcrumbs %} +{% from "govuk/components/button/macro.njk" import govukButton %} +{% from "govuk/components/details/macro.njk" import govukDetails %} +{% from "govuk/components/exit-this-page/macro.njk" import govukExitThisPage %} +{% from "govuk/components/inset-text/macro.njk" import govukInsetText %} +{% from "govuk/components/language-switcher/macro.njk" import govukLanguageSwitcher %} +{% 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 %} + +{% set pageTitle = example.title %} +{% block pageTitle %}{{ pageTitle }} - GOV.UK{% endblock %} + +{% set languageSwitcherHTML %} + {{ govukLanguageSwitcher({ + classes: "govuk-language-switcher--no-top-margin", + items: [ + { + text: "English", + href: "#", + lang: "en", + current: true + }, + { + text: "Cymraeg", + href: "#", + lang: "cy" + }, + { + text: "Français", + href: "#", + lang: "fr" + }, + { + text: "हिंदी", + href: "#", + lang: "hi" + }, + { + text: "日本語", + href: "#", + lang: "ja" + }, + { + text: "اردو", + href: "#", + lang: "ur" + }, + { + text: "中文", + href: "#", + lang: "zh" + } + ] + }) }} +{% endset %} + +{% from "govuk/components/header/macro.njk" import govukHeader %} + +{% block bodyStart %} + {{ super() }} + {{ govukCookieBanner({ + ariaLabel: "Cookies on [name of service]", + messages: [ + { + headingText: "Cookies on [name of service]", + html: html, + actions: [ + { + text: "Accept analytics cookies", + type: "button" + }, + { + text: "Reject analytics cookies", + type: "button" + }, + { + text: "View cookies", + href: "#" + } + ] + } + ] + }) }} +{% endblock %} + +{% block govukHeader %} + {{ govukHeader({ + navigationClasses: "govuk-header__navigation--end", + productName: "Product Name" + }) }} +{% endblock %} + +{% block govukServiceNavigation %} + {{ govukServiceNavigation({ + classes: "app-service-navigation", + 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 + } + ], + slots: { + end: languageSwitcherHTML, + endRightAligned: true + } + }) }} +{% endblock %} + +{% block govukSkipLink %} + {{ super() }} + {{ govukSkipLink({ + href: "https://bbc.co.uk/weather/", + text: "Exit this page", + classes: "govuk-js-exit-this-page-skiplink", + attributes: { + rel: "nofollow noreferrer" + } + }) }} +{% endblock %} + +{% block headerEnd %} + {{ govukPhaseBanner({ + tag: { + text: "Beta" + }, + html: 'This is a new service – your feedback will help us to improve it.' + }) }} +{% endblock %} + +{% block containerStart %} + {{ govukBreadcrumbs({ + classes: "", + collapseOnMobile: true, + items: [ + { + html: "Home", + href: "/" + }, + { + html: "Births, deaths, marriages and care", + href: "/" + }, + { + html: "Having a child, parenting and adoption", + href: "/" + } + ] + }) }} +{% endblock %} + +{% block content %} + {{ govukExitThisPage() }} + +
This service will give you information about the different options available to make a child maintenance arrangement. These are:
+ ++ Contact Child Maintenance Choices if you live in Northern Ireland +
+ +If you have a case with the same parent you should report a change of circumstances instead of making a new arrangement. You can use this service if you want to set up a new arrangement with a different parent.
+ +If you decide to use the Child Maintenance Service the application fee is £20 and cannot be refunded. You’ll need a debit or credit card to pay this. It does not guarantee an arrangement.
+You will not have to pay the application fee if you:
++ Get help if you have experienced domestic abuse +
+ +If you decide to use the Child Maintenance Service, we will try to contact the other parent about setting up child maintenance – you do not need to.
+We will share the following details with the other parent:
+If you are the parent who will be paying child maintenance, we will also share the following details with the other parent:
+You will need to close your existing Child Maintenance case and open a new one.
+If you were the original applicant, you can close your case in MCMC (opens in new tab), or you can contact child maintenance (opens in new tab).
+If you were not the original applicant, you will need to contact child maintenance (opens in new tab).
+ {% endset %} + + {% set receivingToPaying %} +You will need to close your existing Child Maintenance case and open a new one.
+If you were the original applicant, you can close your case in MCMC (opens in new tab), or you can contact child maintenance (opens in new tab).
+If you were not the original applicant, you will need to contact child maintenance (opens in new tab).
+ {% endset %} + + {{ govukDetails({ + summaryText: "I do not know if I have an active case", + html: doIHaveAnActiveCase + }) }} + + {{ govukDetails({ + summaryText: "I need to change from paying to receiving child maintenance", + html: payingToReceiving + }) }} + + {{ govukDetails({ + summaryText: "I need to change from receiving to paying child maintenance", + html: receivingToPaying + }) }} + + {{ govukButton({ + text: "Start now", + href: "#", + isStartButton: true + }) }} +There could be other content here.
+In ea ex nulla veniam commodo Lorem labore dolor et ea in deserunt qui. Enim adipisicing dolore est amet magna. Cupidatat adipisicing labore consectetur exercitation Lorem dolor ipsum et deserunt est. Sit laborum dolore sit id eiusmod.
+This service will give you information about the different options available to make a child maintenance arrangement. These are:
+ ++ Contact Child Maintenance Choices if you live in Northern Ireland +
+ +If you have a case with the same parent you should report a change of circumstances instead of making a new arrangement. You can use this service if you want to set up a new arrangement with a different parent.
+ +If you decide to use the Child Maintenance Service the application fee is £20 and cannot be refunded. You’ll need a debit or credit card to pay this. It does not guarantee an arrangement.
+You will not have to pay the application fee if you:
++ Get help if you have experienced domestic abuse +
+ +If you decide to use the Child Maintenance Service, we will try to contact the other parent about setting up child maintenance – you do not need to.
+We will share the following details with the other parent:
+If you are the parent who will be paying child maintenance, we will also share the following details with the other parent:
+You will need to close your existing Child Maintenance case and open a new one.
+If you were the original applicant, you can close your case in MCMC (opens in new tab), or you can contact child maintenance (opens in new tab).
+If you were not the original applicant, you will need to contact child maintenance (opens in new tab).
+ {% endset %} + + {% set receivingToPaying %} +You will need to close your existing Child Maintenance case and open a new one.
+If you were the original applicant, you can close your case in MCMC (opens in new tab), or you can contact child maintenance (opens in new tab).
+If you were not the original applicant, you will need to contact child maintenance (opens in new tab).
+ {% endset %} + + {{ govukDetails({ + summaryText: "I do not know if I have an active case", + html: doIHaveAnActiveCase + }) }} + + {{ govukDetails({ + summaryText: "I need to change from paying to receiving child maintenance", + html: payingToReceiving + }) }} + + {{ govukDetails({ + summaryText: "I need to change from receiving to paying child maintenance", + html: receivingToPaying + }) }} + + {{ govukButton({ + text: "Start now", + href: "#", + isStartButton: true + }) }} +There could be other content here.
+In ea ex nulla veniam commodo Lorem labore dolor et ea in deserunt qui. Enim adipisicing dolore est amet magna. Cupidatat adipisicing labore consectetur exercitation Lorem dolor ipsum et deserunt est. Sit laborum dolore sit id eiusmod.
+