created t and c page
This commit is contained in:
+15
-10
@@ -237,17 +237,22 @@ export default function Footer(props) {
|
||||
</li>
|
||||
|
||||
<li className="govuk-footer__inline-list-item">
|
||||
<a
|
||||
href={t(
|
||||
"common:footer-terms-conditions-link"
|
||||
)}
|
||||
id="aTermsConds"
|
||||
className="govuk-footer__link"
|
||||
<Link
|
||||
href={
|
||||
router.locale == "cy"
|
||||
? "/telerau-ac-amodau"
|
||||
: "/terms-and-conditions"
|
||||
}
|
||||
>
|
||||
{t(
|
||||
"common:footer-terms-conditions-link-label"
|
||||
)}
|
||||
</a>
|
||||
<a
|
||||
id="aTermsConds"
|
||||
className="govuk-footer__link"
|
||||
>
|
||||
{t(
|
||||
"common:footer-terms-conditions-link-label"
|
||||
)}
|
||||
</a>
|
||||
</Link>
|
||||
</li>
|
||||
{/* <li className="govuk-footer__inline-list-item">
|
||||
<a
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
import Link from "next/link";
|
||||
import { useRouter } from "next/router";
|
||||
import useTranslation from "next-translate/useTranslation";
|
||||
|
||||
const TermsAndConditionsStatement = (props) => {
|
||||
let { t } = useTranslation();
|
||||
|
||||
const { whichError } = props;
|
||||
|
||||
const router = useRouter();
|
||||
const { locale } = router;
|
||||
|
||||
return (
|
||||
<main
|
||||
className="govuk-main-wrapper govuk-!-padding-top-9 govuk-main-wrapper--auto-spacing"
|
||||
id="main-content"
|
||||
role="main"
|
||||
>
|
||||
<div className="govuk-grid-row">
|
||||
<div className="govuk-grid-column-full">
|
||||
<h1 className="govuk-heading-l govuk-!-margin-bottom-7">
|
||||
{t("common:footer-terms-conditions-link-label")}
|
||||
</h1>
|
||||
<p>bkah blah</p>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
};
|
||||
|
||||
export default TermsAndConditionsStatement;
|
||||
@@ -34,5 +34,6 @@ module.exports = {
|
||||
"/help/cookies": ["common", "cookies"],
|
||||
"/account/register": ["common", "account"],
|
||||
"/details-about-cookies": ["common", "cookies"],
|
||||
"/terms-and-conditions": ["common"],
|
||||
},
|
||||
};
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"gov-wales-link": "https://llyw.cymru",
|
||||
"gov-wales-label": "LLYW.CYMRU",
|
||||
"service-description": "Mae'r gwasanaeth hwn yn cael ei ddatblygu i gefnogi apeliadau a cheisiadau ar-lein.",
|
||||
"service-name": "Gwaith achos cynllunio",
|
||||
"service-name": "Gwaith Achos",
|
||||
"service-name-breadcrumb": "Hafan",
|
||||
"new-service-beta": "Mae hwn yn wasanaeth newydd",
|
||||
"breadcrumb-back-link": "Yn ôl",
|
||||
@@ -16,7 +16,7 @@
|
||||
"search-button": "Chwilio",
|
||||
"submit-and-start": "Cyflwyno a dechrau'r cwrs",
|
||||
"footer-terms-conditions-link-label": "Telerau ac amodau",
|
||||
"footer-terms-conditions-link": "https://llyw.cymru/telerau-ac-amodau",
|
||||
"footer-terms-conditions-link": "/telerau-ac-amodau",
|
||||
"footer-privacy-link-label": "Preifatrwydd",
|
||||
"footer-privacy-link": "/preifatrwydd",
|
||||
"footer-cookies-link": "Cwcis",
|
||||
@@ -24,7 +24,7 @@
|
||||
"footer-accessibility-link": "/hygyrchedd",
|
||||
"footer-feedback-link": "Adborth",
|
||||
"footer-contact-us-link-label": "Cysylltu â ni",
|
||||
"footer-contact-us-link": "https://llyw.cymru/cysylltu-ni",
|
||||
"footer-contact-us-link": "https://llyw.cymru/penderfyndiadau-cynllunio-ac-amgylchedd-cymru/cysylltwch-ni",
|
||||
"footer-copyright-link-label": "Datganiad hawlfraint",
|
||||
"footer-copyright-link": "https://llyw.cymru/datganiad-hawlfraint",
|
||||
"footer-alternative-languages-link-label": "Ieithoedd amgen",
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"gov-wales-link": "https://www.gov.wales",
|
||||
"gov-wales-label": "GOV.WALES",
|
||||
"service-description": "This service is being developed to support online appeals and applications.",
|
||||
"service-name": "Planning casework",
|
||||
"service-name": "Casework",
|
||||
"service-name-breadcrumb": "Home",
|
||||
"new-service-beta": "This is a new service",
|
||||
"breadcrumb-back-link": "Back",
|
||||
@@ -16,7 +16,7 @@
|
||||
"search-button": "Search",
|
||||
"submit-and-start": "Submit and start course",
|
||||
"footer-terms-conditions-link-label": "Terms and conditions",
|
||||
"footer-terms-conditions-link": "https://gov.wales/terms-and-conditions",
|
||||
"footer-terms-conditions-link": "/terms-and-conditions",
|
||||
"footer-privacy-link-label": "Privacy",
|
||||
"footer-privacy-link": "/privacy",
|
||||
"footer-cookies-link": "Cookies",
|
||||
@@ -24,7 +24,7 @@
|
||||
"footer-accessibility-link": "/accessibility",
|
||||
"footer-feedback-link": "Give feedback about this page",
|
||||
"footer-contact-us-link-label": "Contact us",
|
||||
"footer-contact-us-link": "https://gov.wales/contact-us",
|
||||
"footer-contact-us-link": "https://gov.wales/planning-and-environment-decisions-wales/contact-us",
|
||||
"footer-copyright-link-label": "Copyright statement",
|
||||
"footer-copyright-link": "https://gov.wales/copyright-statement",
|
||||
"footer-alternative-languages-link-label": "Alternative languages",
|
||||
|
||||
@@ -130,6 +130,10 @@ module.exports = {
|
||||
source: "/manylion-am-gwcis",
|
||||
destination: "/details-about-cookies",
|
||||
},
|
||||
{
|
||||
source: "/telerau-ac-amodau",
|
||||
destination: "/terms-and-conditions",
|
||||
},
|
||||
|
||||
// {
|
||||
// source: "/cy:path*",
|
||||
|
||||
@@ -0,0 +1,91 @@
|
||||
import _ from "lodash";
|
||||
import { useState, useEffect, useRef } from "react";
|
||||
import Head from "next/head";
|
||||
import Header from "../components/header";
|
||||
import ServiceBanner from "../components/servicebanner";
|
||||
import CookieBanner from "../components/cookieBanner";
|
||||
import Breadcrumbs from "../components/breadcrumbs";
|
||||
import Main from "../components/main";
|
||||
import Footer from "../components/footer";
|
||||
import Errorpage from "../components/errorpage";
|
||||
import styles from "../styles/Home.module.css";
|
||||
import { useSelector, shallowEqual, connect } from "react-redux";
|
||||
import { wrapper } from "../store/store";
|
||||
import { useRouter } from "next/router";
|
||||
import useTranslation from "next-translate/useTranslation";
|
||||
import { getIncidents } from "../actions";
|
||||
import { parseCookies } from "nookies";
|
||||
import TermsAndConditionsStatement from "../components/tandc";
|
||||
|
||||
const TandC = (props) => {
|
||||
const { footerLinks, pages, showLogin } = props;
|
||||
let { t, lang } = useTranslation();
|
||||
|
||||
const router = useRouter();
|
||||
const { locale } = router;
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Head>
|
||||
<title>{t("common:service-name")}</title>
|
||||
{/* Language by default is EN, if multilingual site this will need updated */}
|
||||
<meta
|
||||
key="og:locale"
|
||||
property="og:locale"
|
||||
content={router.locale}
|
||||
/>
|
||||
{/* If they have a Twitter Handle, include the meta details below */}
|
||||
<meta
|
||||
key="og:site_name"
|
||||
property="og:site_name"
|
||||
content={t("common:service-name")}
|
||||
/>
|
||||
<meta
|
||||
key="twitter:site"
|
||||
property="twitter:site"
|
||||
content="@UKGovWales"
|
||||
/>
|
||||
|
||||
<meta
|
||||
name="description"
|
||||
content={t("common:service-description")}
|
||||
/>
|
||||
<meta
|
||||
property="og:site_name"
|
||||
content={t("common:gov-wales-label")}
|
||||
/>
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content={t("common:gov-wales-link")} />
|
||||
<meta
|
||||
property="og:image"
|
||||
content="https://gov.wales/themes/custom/govwales/images/content/og-global-1200.png"
|
||||
/>
|
||||
<meta name="twitter:card" content="summary" />
|
||||
<meta
|
||||
name="twitter:title"
|
||||
content={t("common:gov-wales-label")}
|
||||
/>
|
||||
<meta
|
||||
name="twitter:url"
|
||||
content={t("common:gov-wales-link") + router.pathname}
|
||||
/>
|
||||
<meta
|
||||
name="twitter:image"
|
||||
content="https://gov.wales/themes/custom/govwales/images/content/og-global-120.png"
|
||||
/>
|
||||
</Head>
|
||||
<div id="page_wrapper">
|
||||
<CookieBanner />
|
||||
<Header courseName="Appeals Casework Portal" />
|
||||
<div className="govuk-width-container">
|
||||
<Breadcrumbs />
|
||||
<ServiceBanner />
|
||||
<TermsAndConditionsStatement />
|
||||
</div>
|
||||
<Footer footerLinks={footerLinks} />
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default TandC; //connect(mapStateToProps)(Home);
|
||||
Reference in New Issue
Block a user