added in accessibility content
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { useRouter } from "next/router";
|
import { useRouter } from "next/router";
|
||||||
import useTranslation from "next-translate/useTranslation";
|
import useTranslation from "next-translate/useTranslation";
|
||||||
|
import AccessibilityEN from "./footerDocs/accessibility_en";
|
||||||
|
import AccessibilityCY from "./footerDocs/accessibility_cy";
|
||||||
|
|
||||||
const AccessibilityStatement = (props) => {
|
const AccessibilityStatement = (props) => {
|
||||||
let { t } = useTranslation();
|
let { t } = useTranslation();
|
||||||
@@ -16,14 +18,7 @@ const AccessibilityStatement = (props) => {
|
|||||||
id="main-content"
|
id="main-content"
|
||||||
role="main"
|
role="main"
|
||||||
>
|
>
|
||||||
<div className="govuk-grid-row">
|
{router.locale != "en" ? <AccessibilityCY /> : <AccessibilityEN />}
|
||||||
<div className="govuk-grid-column-full">
|
|
||||||
<h1 className="govuk-heading-l govuk-!-margin-bottom-7">
|
|
||||||
Accessibility Statement
|
|
||||||
</h1>
|
|
||||||
<p>bkah blah</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -0,0 +1,225 @@
|
|||||||
|
import Link from "next/link";
|
||||||
|
import { useRouter } from "next/router";
|
||||||
|
import useTranslation from "next-translate/useTranslation";
|
||||||
|
|
||||||
|
export default function AccessibilityCY() {
|
||||||
|
let { t } = useTranslation();
|
||||||
|
|
||||||
|
const router = useRouter();
|
||||||
|
const { locale } = router;
|
||||||
|
return (
|
||||||
|
<div className="govuk-grid-row govuk-body">
|
||||||
|
<div className="govuk-grid-column-full">
|
||||||
|
<h2 className="govuk-heading-l govuk-!-margin-bottom-7">
|
||||||
|
Datganiad Hygyrchedd ar gyfer Porth Penderfyniadau Cynllunio
|
||||||
|
ac Amgylchedd Cymru{" "}
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Mae’r datganiad hygyrchedd hwn yn berthnasol i borth ar-lein
|
||||||
|
Penderfyniadau Cynllunio ac Amgylchedd Cymru (PCAC) ar gyfer
|
||||||
|
cyflwyno ac adolygu dogfennau sy’n ymwneud â’r gwaith achos
|
||||||
|
rydym yn ei brosesu.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Cynhelir y wefan hon gan PCAC, sef un o Is-adrannau
|
||||||
|
Llywodraeth Cymru. Rydym eisiau i gynifer o bobl â phosibl
|
||||||
|
allu defnyddio’r wefan hon. Er enghraifft, mae hynny’n
|
||||||
|
golygu y dylech allu:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>newid lliwiau, lefelau cyferbynnedd a ffontiau</li>
|
||||||
|
<li>
|
||||||
|
chwyddo i mewn hyd at 300% heb i’r testun fynd oddi ar y
|
||||||
|
sgrin
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
llywio’r rhan fwyaf o’r wefan gan ddefnyddio bysellfwrdd
|
||||||
|
yn unig
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
llywio’r rhan fwyaf o’r wefan gan ddefnyddio meddalwedd
|
||||||
|
adnabod llais
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
gwrando ar y rhan fwyaf o’r wefan gan ddefnyddio rhaglen
|
||||||
|
darllen sgrin (gan gynnwys fersiynau diweddaraf JAWS,
|
||||||
|
NVDA a VoiceOver)
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Rydym hefyd wedi gwneud testun y wefan mor syml ei ddeall â
|
||||||
|
phosibl.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Mae AbilityNet yn rhoi cyngor ar wneud eich dyfais yn haws
|
||||||
|
ei defnyddio os oes gennych anabledd.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3>Pa mor hygyrch yw’r wefan hon</h3>
|
||||||
|
<p>
|
||||||
|
Rydym yn gwybod nad yw rhai rhannau o’r wefan hon yn gwbl
|
||||||
|
hygyrch:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
ni fydd y testun yn ail-lifo mewn un golofn pan fyddwch
|
||||||
|
yn newid maint y ffenestr bori{" "}
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
ni allwch addasu uchder llinell testun na’r gofod rhwng
|
||||||
|
testun
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
nid yw’r rhan fwyaf o ddogfennau PDF hŷn yn gwbl hygyrch
|
||||||
|
i feddalwedd darllen sgrin
|
||||||
|
</li>
|
||||||
|
<li>nid oes gan ffrydiau fideo byw gapsiynau</li>
|
||||||
|
<li>
|
||||||
|
mae rhai o’n ffurflenni ar-lein yn anodd eu llywio gan
|
||||||
|
ddefnyddio bysellfwrdd yn unig{" "}
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
ni allwch neidio i’r prif gynnwys pan fyddwch yn
|
||||||
|
defnyddio rhaglen darllen sgrin{" "}
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
mae terfyn ar ba mor fawr y gallwch chwyddo’r map ar ein
|
||||||
|
tudalen ‘cysylltwch â ni’
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h3>Adborth a gwybodaeth gyswllt</h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Os oes arnoch angen y wybodaeth ar y wefan hon mewn fformat
|
||||||
|
arall, fel PDF hygyrch, print bras, fersiwn hawdd ei
|
||||||
|
darllen, recordiad sain neu braille:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Anfonwch neges e-bost at:{" "}
|
||||||
|
<a
|
||||||
|
className="govuk-link--no-underline govuk-!-font-weight-bold"
|
||||||
|
href="mailto:PEDW.GwaithAchos@llyw.cymru"
|
||||||
|
>
|
||||||
|
PEDW.GwaithAchos@llyw.cymru
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Ffoniwch:{" "}
|
||||||
|
<a
|
||||||
|
className="govuk-link--no-underline govuk-!-font-weight-bold"
|
||||||
|
href="tel:03000 604400"
|
||||||
|
>
|
||||||
|
03000 604400
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Byddwn yn ystyried eich cais ac yn cysylltu â chi ymhen 5
|
||||||
|
niwrnod.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Os na allwch weld y map ar ein tudalen ‘cysylltwch â ni’,
|
||||||
|
ffoniwch ni neu anfonwch neges e-bost atom i gael
|
||||||
|
cyfarwyddiadau;{" "}
|
||||||
|
<a
|
||||||
|
className="govuk-link--no-underline govuk-!-font-weight-bold"
|
||||||
|
href="https://llyw.cymru/penderfyndiadau-cynllunio-ac-amgylchedd-cymru/cysylltwch-ni"
|
||||||
|
>
|
||||||
|
Cysylltwch â Ni
|
||||||
|
</a>
|
||||||
|
.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3>Gweithdrefn orfodi</h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Mae’r Comisiwn Cydraddoldeb a Hawliau Dynol (EHRC) yn
|
||||||
|
gyfrifol am orfodi Rheoliadau Hygyrchedd Cyrff Sector
|
||||||
|
Cyhoeddus (Gwefannau ac Apiau Symudol) (Rhif 2) 2018 (y
|
||||||
|
‘rheoliadau hygyrchedd’). Os nad ydych yn fodlon â’r ffordd
|
||||||
|
rydym yn ymateb i’ch cwyn, cysylltwch â’r Gwasanaeth
|
||||||
|
Cynghori a Chymorth Cydraddoldeb (EASS).
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3>Cysylltu â ni ar y ffôn neu ymweld â ni’n bersonol</h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Rydym yn darparu gwasanaeth cyfnewid testun ar gyfer pobl
|
||||||
|
B/byddar, pobl sydd â nam ar y clyw neu bobl sydd â nam ar y
|
||||||
|
lleferydd.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Mae dolenni sain yn ein swyddfeydd hefyd, neu os byddwch yn
|
||||||
|
cysylltu â ni cyn eich ymweliad gallwn drefnu dehonglydd
|
||||||
|
Iaith Arwyddion Prydain (BSL).
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>Dysgwch sut i gysylltu â ni.</p>
|
||||||
|
|
||||||
|
<h3>Gwybodaeth dechnegol am hygyrchedd y wefan hon</h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Mae PCAC wedi ymrwymo i wneud ei wefan yn hygyrch, yn unol â
|
||||||
|
Rheoliadau Hygyrchedd Cyrff Sector Cyhoeddus (Gwefannau ac
|
||||||
|
Apiau Symudol) (Rhif 2) 2018.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3>Statws cydymffurfio</h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Mae’r wefan hon yn cydymffurfio’n rhannol â Chanllawiau
|
||||||
|
Hygyrchedd Cynnwys y We (WCAG) fersiwn 2.1 – safon Lefel AA,
|
||||||
|
o ganlyniad i’r ‘achosion o ddiffyg
|
||||||
|
cydymffurfio’/’eithriadau’ neu’r ‘achosion o ddiffyg
|
||||||
|
cydymffurfio ac eithriadau’] a restrir isod.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3>Diffyg cydymffurfio â’r rheoliadau hygyrchedd</h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Nid oes testun amgen ar gyfer rhai delweddau, felly ni all
|
||||||
|
pobl sy’n defnyddio rhaglen darllen sgrin gael at y
|
||||||
|
wybodaeth. Mae hyn yn methu maen prawf llwyddiant 1.1.1
|
||||||
|
(cynnwys nad yw’n destun).
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Bwriadwn ychwanegu testun amgen at yr holl ddelweddau erbyn
|
||||||
|
mis Medi 2020. Pan fyddwn yn cyhoeddi cynnwys newydd, byddwn
|
||||||
|
yn sicrhau bod ein defnydd o ddelweddau’n bodloni safonau
|
||||||
|
hygyrchedd.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3>Paratoi’r datganiad hygyrchedd hwn</h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Paratowyd y datganiad hwn ar [TBC]. Fe’i hadolygwyd
|
||||||
|
ddiwethaf ar [TBC when signed off].
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Profwyd y wefan hon ddiwethaf ar [TBC]. Cynhaliwyd y prawf
|
||||||
|
gan [add name of organisation that carried out test, or
|
||||||
|
indicate that you did your own testing].
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Gwnaethom ddefnyddio’r dull hwn i benderfynu ar sampl o
|
||||||
|
dudalennau i’w profi [add link to explanation of how you
|
||||||
|
decided which pages to test].
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Gallwch ddarllen yr adroddiad llawn ar y prawf hygyrchedd
|
||||||
|
[add link to report].
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,219 @@
|
|||||||
|
import Link from "next/link";
|
||||||
|
import { useRouter } from "next/router";
|
||||||
|
import useTranslation from "next-translate/useTranslation";
|
||||||
|
|
||||||
|
export default function AccessibilityEN() {
|
||||||
|
let { t } = useTranslation();
|
||||||
|
|
||||||
|
const router = useRouter();
|
||||||
|
const { locale } = router;
|
||||||
|
return (
|
||||||
|
<div className="govuk-grid-row govuk-body">
|
||||||
|
<div className="govuk-grid-column-full">
|
||||||
|
<h2 className="govuk-heading-l govuk-!-margin-bottom-7">
|
||||||
|
Accessibility Statement for Planning and Environment
|
||||||
|
Decisions Wales Portal
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
This accessibility statement applies to Planning and
|
||||||
|
Environment Decisions Wales’ (PEDW) online portal for the
|
||||||
|
submission and review of documents related to the casework
|
||||||
|
we process.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
This website is run by PEDW, a Division of The Welsh
|
||||||
|
Government. We want as many people as possible to be able to
|
||||||
|
use this website. For example, that means you should be able
|
||||||
|
to:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>change colours, contrast levels and fonts</li>
|
||||||
|
<li>
|
||||||
|
zoom in up to 300% without the text spilling off the
|
||||||
|
screen
|
||||||
|
</li>
|
||||||
|
<li>navigate most of the website using just a keyboard</li>
|
||||||
|
<li>
|
||||||
|
navigate most of the website using speech recognition
|
||||||
|
software
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
listen to most of the website using a screen reader
|
||||||
|
(including the most recent versions of JAWS, NVDA and
|
||||||
|
VoiceOver)
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
We’ve also made the website text as simple as possible to
|
||||||
|
understand.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
AbilityNet has advice on making your device easier to use if
|
||||||
|
you have a disability.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3>How accessible this website is</h3>
|
||||||
|
<p>
|
||||||
|
We know some parts of this website are not fully accessible:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
the text will not reflow in a single column when you
|
||||||
|
change the size of the browser window
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
you cannot modify the line height or spacing of text
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
most older PDF documents are not fully accessible to
|
||||||
|
screen reader software
|
||||||
|
</li>
|
||||||
|
<li>live video streams do not have captions</li>
|
||||||
|
<li>
|
||||||
|
some of our online forms are difficult to navigate using
|
||||||
|
just a keyboard
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
you cannot skip to the main content when using a screen
|
||||||
|
reader
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
there’s a limit to how far you can magnify the map on
|
||||||
|
our ‘contact us’ page
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h3>Feedback and contact information</h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
If you need information on this website in a different
|
||||||
|
format like accessible PDF, large print, easy read, audio
|
||||||
|
recording or braille:
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
Email:{" "}
|
||||||
|
<a
|
||||||
|
className="govuk-link--no-underline govuk-!-font-weight-bold"
|
||||||
|
href="mailto:PEDW.Casework@gov.wales"
|
||||||
|
>
|
||||||
|
PEDW.Casework@gov.wales
|
||||||
|
</a>{" "}
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
Call:{" "}
|
||||||
|
<a
|
||||||
|
className="govuk-link--no-underline govuk-!-font-weight-bold"
|
||||||
|
href="tel:03000 604400"
|
||||||
|
>
|
||||||
|
03000 604400
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
We’ll consider your request and get back to you in no later
|
||||||
|
than 5 days.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
If you cannot view the map on our ‘contact us’ page, please
|
||||||
|
call or email us for directions; Contact Us.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3>Enforcement procedure</h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
The Equality and Human Rights Commission (EHRC) is
|
||||||
|
responsible for enforcing the Public Sector Bodies (Websites
|
||||||
|
and Mobile Applications) (No. 2) Accessibility Regulations
|
||||||
|
2018 (the ‘accessibility regulations’). If you’re not happy
|
||||||
|
with how we respond to your complaint, contact the Equality
|
||||||
|
Advisory and Support Service (EASS).
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3>Contacting us by phone or visiting us in person</h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
We provide a text relay service for people who are D/deaf,
|
||||||
|
hearing impaired or have a speech impediment.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Our offices have audio induction loops, or if you contact us
|
||||||
|
before your visit we can arrange a British Sign Language
|
||||||
|
(BSL) interpreter.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Find out how to{" "}
|
||||||
|
<a
|
||||||
|
className="govuk-link--no-underline govuk-!-font-weight-bold"
|
||||||
|
href="https://gov.wales/planning-and-environment-decisions-wales/contact-us"
|
||||||
|
>
|
||||||
|
contact us
|
||||||
|
</a>
|
||||||
|
.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3>
|
||||||
|
Technical information about this website’s accessibility
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
PEDW is committed to making its website accessible, in
|
||||||
|
accordance with the Public Sector Bodies (Websites and
|
||||||
|
Mobile Applications) (No. 2) Accessibility Regulations 2018.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3>Compliance status</h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
This website is partially compliant with the Web Content
|
||||||
|
Accessibility Guidelines version 2.1 – Level AA standard,
|
||||||
|
due to the non-compliances’/‘the exemptions’ or ‘the
|
||||||
|
non-compliances and exemptions’] listed below.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3>Non-compliance with the accessibility regulations</h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Some images do not have a text alternative, so people using
|
||||||
|
a screen reader cannot access the information. This fails
|
||||||
|
WCAG 2.1 success criterion 1.1.1 (non-text content).
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
We plan to add text alternatives for all images by September
|
||||||
|
2020. When we publish new content we’ll make sure our use of
|
||||||
|
images meets accessibility standards.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h3>Preparation of this accessibility statement</h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
This statement was prepared on [TBC]. It was last reviewed
|
||||||
|
on [TBC when signed off].
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
This website was last tested on [TBC]. The test was carried
|
||||||
|
out by [add name of organisation that carried out test, or
|
||||||
|
indicate that you did your own testing].
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
We used this approach to deciding on a sample of pages to
|
||||||
|
test [add link to explanation of how you decided which pages
|
||||||
|
to test].
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
You can read the full accessibility test report [add link to
|
||||||
|
report].
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,19 @@
|
|||||||
|
import Link from "next/link";
|
||||||
|
import { useRouter } from "next/router";
|
||||||
|
import useTranslation from "next-translate/useTranslation";
|
||||||
|
|
||||||
|
export default function TandCCY() {
|
||||||
|
let { t } = useTranslation();
|
||||||
|
|
||||||
|
const router = useRouter();
|
||||||
|
const { locale } = router;
|
||||||
|
return (
|
||||||
|
<div className="govuk-grid-row govuk-body">
|
||||||
|
<div className="govuk-grid-column-full">
|
||||||
|
<h2 className="govuk-heading-l govuk-!-margin-bottom-7">
|
||||||
|
T and c CY
|
||||||
|
</h2>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
import Link from "next/link";
|
||||||
|
import { useRouter } from "next/router";
|
||||||
|
import useTranslation from "next-translate/useTranslation";
|
||||||
|
|
||||||
|
export default function TandCEN() {
|
||||||
|
let { t } = useTranslation();
|
||||||
|
|
||||||
|
const router = useRouter();
|
||||||
|
const { locale } = router;
|
||||||
|
return (
|
||||||
|
<div className="govuk-grid-row govuk-body">
|
||||||
|
<div className="govuk-grid-column-full">
|
||||||
|
<h2 className="govuk-heading-l govuk-!-margin-bottom-7">
|
||||||
|
T and c
|
||||||
|
</h2>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { useRouter } from "next/router";
|
import { useRouter } from "next/router";
|
||||||
import useTranslation from "next-translate/useTranslation";
|
import useTranslation from "next-translate/useTranslation";
|
||||||
|
import PrivacyEN from "./footerDocs/privacy_en";
|
||||||
|
import PrivacyCY from "./footerDocs/privacy_cy";
|
||||||
const PrivacyStatement = (props) => {
|
const PrivacyStatement = (props) => {
|
||||||
let { t } = useTranslation();
|
let { t } = useTranslation();
|
||||||
|
|
||||||
@@ -16,14 +17,7 @@ const PrivacyStatement = (props) => {
|
|||||||
id="main-content"
|
id="main-content"
|
||||||
role="main"
|
role="main"
|
||||||
>
|
>
|
||||||
<div className="govuk-grid-row">
|
{router.locale != "en" ? <PrivacyCY /> : <PrivacyEN />}
|
||||||
<div className="govuk-grid-column-full">
|
|
||||||
<h1 className="govuk-heading-l govuk-!-margin-bottom-7">
|
|
||||||
Privacy Statement
|
|
||||||
</h1>
|
|
||||||
<p>bkah blah</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</main>
|
</main>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
+3
-8
@@ -1,6 +1,8 @@
|
|||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { useRouter } from "next/router";
|
import { useRouter } from "next/router";
|
||||||
import useTranslation from "next-translate/useTranslation";
|
import useTranslation from "next-translate/useTranslation";
|
||||||
|
import TandCEN from "./footerDocs/tandc_en";
|
||||||
|
import TandCCY from "./footerDocs/tandc_cy";
|
||||||
|
|
||||||
const TermsAndConditionsStatement = (props) => {
|
const TermsAndConditionsStatement = (props) => {
|
||||||
let { t } = useTranslation();
|
let { t } = useTranslation();
|
||||||
@@ -16,14 +18,7 @@ const TermsAndConditionsStatement = (props) => {
|
|||||||
id="main-content"
|
id="main-content"
|
||||||
role="main"
|
role="main"
|
||||||
>
|
>
|
||||||
<div className="govuk-grid-row">
|
{router.locale != "en" ? <TandCCY /> : <TandCEN />}
|
||||||
<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>
|
</main>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -0,0 +1,52 @@
|
|||||||
|
import Link from "next/link";
|
||||||
|
import Head from "next/head";
|
||||||
|
import Header from "../components/header";
|
||||||
|
import Banner from "../components/banner";
|
||||||
|
import CookieBanner from "../components/cookieBanner";
|
||||||
|
import useTranslation from "next-translate/useTranslation";
|
||||||
|
import Footer from "../components/footer";
|
||||||
|
|
||||||
|
function Error({ statusCode }, props) {
|
||||||
|
let { t, lang } = useTranslation();
|
||||||
|
const { footerLinks, pages } = props;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<Head>
|
||||||
|
<title>
|
||||||
|
{t("case:page-title")} - {t("common:service-name")}
|
||||||
|
</title>
|
||||||
|
</Head>
|
||||||
|
<div id="page_wrapper">
|
||||||
|
<CookieBanner />
|
||||||
|
<Header courseName={t("common:service-name")} />
|
||||||
|
<div className="govuk-width-container govuk-!-padding-bottom-9">
|
||||||
|
<main className="govuk-main-wrapper govuk-!-padding-top-9 govuk-!-padding-bottom-9">
|
||||||
|
<div className="govuk-grid-row">
|
||||||
|
<div className="govuk-grid-column-two-thirds ">
|
||||||
|
<h1>{t("common:error-page-title")}</h1>
|
||||||
|
<p className="govuk-body">
|
||||||
|
{statusCode
|
||||||
|
? `An error ${statusCode} occurred on server`
|
||||||
|
: t("common:error-page-message")}
|
||||||
|
</p>
|
||||||
|
<Link href="/">
|
||||||
|
<a>Go back home</a>
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
<Footer footerLinks={footerLinks} />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
Error.getInitialProps = ({ res, err }) => {
|
||||||
|
const statusCode = res ? res.statusCode : err ? err.statusCode : 404;
|
||||||
|
console.log(res, err);
|
||||||
|
return { statusCode };
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Error;
|
||||||
@@ -123,6 +123,11 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
|||||||
async ({ query, req, res }) => {
|
async ({ query, req, res }) => {
|
||||||
console.log("query-", query);
|
console.log("query-", query);
|
||||||
|
|
||||||
|
res.setHeader(
|
||||||
|
"Cache-Control",
|
||||||
|
"public, s-maxage=10, stale-while-revalidate=59"
|
||||||
|
);
|
||||||
|
|
||||||
let token = await getToken();
|
let token = await getToken();
|
||||||
|
|
||||||
var tokenIssuedAt = new Date();
|
var tokenIssuedAt = new Date();
|
||||||
|
|||||||
@@ -717,6 +717,15 @@ textarea,
|
|||||||
// background: #f3f2f1;
|
// background: #f3f2f1;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
.annex {
|
||||||
|
.govuk-summary-list__value {
|
||||||
|
width: 33.333333%;
|
||||||
|
@media screen and (max-width: 900px) {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.govuk-summary-list__key,
|
.govuk-summary-list__key,
|
||||||
.govuk-summary-list__value,
|
.govuk-summary-list__value,
|
||||||
.govuk-summary-list__actions {
|
.govuk-summary-list__actions {
|
||||||
|
|||||||
Reference in New Issue
Block a user