added dns landing page and others

This commit is contained in:
2021-08-09 16:34:04 +01:00
parent aa0ccef280
commit edb3a06076
15 changed files with 1300 additions and 5 deletions
+39 -3
View File
@@ -8,8 +8,23 @@ const Header = (props) => {
const router = useRouter();
const { locale } = router;
const { setLogout } = props;
const noSignoutLink = ["/", "/logout"];
const { setLogout, serviceName } = props;
const noSignoutLink = [
"/",
"/logout",
"/dns",
"/dns/application-process",
"/dns/help",
"/dns/contact-us",
"/dns/applications",
];
const hasContactLink = [
"/dns",
"/dns/application-process",
"/dns/help",
"/dns/contact-us",
"/dns/applications",
];
return (
<header
@@ -72,7 +87,7 @@ const Header = (props) => {
className="govuk-header__link
govuk-header__link--service-name"
>
{t("common:service-name")}
{serviceName || t("common:service-name")}
</a>
</Link>
</div>
@@ -99,6 +114,18 @@ const Header = (props) => {
</div>
<div className="content">
<ul>
{hasContactLink.includes(router.pathname) ==
true ? (
<li>
<Link href="/dns/contact-us">
<a className="govuk-header__link ">
Contact
</a>
</Link>
</li>
) : (
""
)}
{noSignoutLink.includes(router.pathname) ==
true ? (
""
@@ -157,6 +184,15 @@ const Header = (props) => {
</div>
</div>
<div className="fullNav">
{hasContactLink.includes(router.pathname) == true ? (
<Link href="/dns/contact-us">
<a className="govuk-header__link govuk-!-margin-right-3">
Contact
</a>
</Link>
) : (
""
)}
{noSignoutLink.includes(router.pathname) == true ? (
""
) : (