From 9971f8be4dd4ab00877355d0e2060bcc3b3cf553 Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Fri, 25 Jul 2025 08:16:16 +0100 Subject: [PATCH] re ordered home page cards and updated text --- components/homepage/casecomment.js | 20 ++++++++++++++++-- components/homepage/casesearch.js | 2 ++ components/homepage/dns.js | 2 +- components/homepage/login.js | 28 +++++++++++--------------- components/main.js | 4 ++-- locales/cy/home.json | 16 ++++++++++----- locales/en/home.json | 16 ++++++++++----- pages/index.js | 2 +- styles/sass/patterns/_card.scss | 2 ++ styles/sass/welshgov/_application.scss | 8 ++++++++ 10 files changed, 68 insertions(+), 32 deletions(-) diff --git a/components/homepage/casecomment.js b/components/homepage/casecomment.js index 57235c3b..eace402d 100644 --- a/components/homepage/casecomment.js +++ b/components/homepage/casecomment.js @@ -7,11 +7,18 @@ export default function CaseComment() { const router = useRouter(); const { locale } = router; return ( -
-
+
+

{t("home:casescomment-card-title")}

+ +

+ {t("home:casescomment-card-paragraph-three")} +

+

+ {t("home:casescomment-card-paragraph-four")} +

{t("home:casescomment-card-paragraph-one")}{" "} {t("home:casescomment-card-paragraph-two")}

+

+ {t("home:watch-case-card-title")} +

+

+ {t("home:watch-case-paragraph-one")} +

+ {/*

+ {t("home:casescomment-card-paragraph-two")} +

*/}
); diff --git a/components/homepage/casesearch.js b/components/homepage/casesearch.js index 70607037..40d54017 100644 --- a/components/homepage/casesearch.js +++ b/components/homepage/casesearch.js @@ -4,6 +4,7 @@ import { useRouter } from "next/router"; import { connect } from "react-redux"; import { Field, reduxForm, SubmissionError } from "redux-form"; import { sendGAEvent } from "@next/third-parties/google"; +import Dns from "./dns"; const required = (errorMsg) => (value) => value || typeof value === "number" ? undefined : errorMsg; @@ -175,6 +176,7 @@ let CaseSearch = (props) => {
+
); diff --git a/components/homepage/dns.js b/components/homepage/dns.js index 405bdb78..69bb2159 100644 --- a/components/homepage/dns.js +++ b/components/homepage/dns.js @@ -15,7 +15,7 @@ export default function Dns() { // : setShowSpinnerState(true); // }; return ( -
+
diff --git a/locales/cy/home.json b/locales/cy/home.json index 9b31e35a..d957be71 100644 --- a/locales/cy/home.json +++ b/locales/cy/home.json @@ -1,6 +1,6 @@ { - "login-card-title-temp": "Apeliadau neu geisiadau newydd", - "login-comingsoon-temp-1": "Mae'r gwasanaeth hwn yn cael ei ddatblygu i gefnogi apeliadau a cheisiadau ar-lein.", + "login-card-title-temp": "Cyflwyno apêl newydd", + "login-comingsoon-temp-1": "Mae'r gwasanaeth hwn yn cael ei ddatblygu i gefnogi apeliadau a cheisiadau ar-lein. Gallwch chi godi apeliadau cynllunio ar hyn o bryd.", "login-comingsoon-temp-1a": "Ar hyn o bryd, gallwch gyflwyno Apeliadau Cynllunio a78, Apeliadau Cydsyniad Adeilad Rhestredig ac Ardal Gadwraeth, Apeliadau Deiliaid Tai a Mân Apeliadau Masnachol - HAS/CAS, Apeliadau Hysbysebion a Barnu'n Annilys.", "login-comingsoon-temp-2": "Wrth i ni ddatblygu’r gwasanaeth ar-lein, dewch o hyd i:", "login-comingsoon-forms-link-1": "https://llyw.cymru/ffurflenni-apelio", @@ -32,8 +32,8 @@ "casesearch-card-advanced-link": "Chwiliad uwch", "casesearch-search-validation-required": "Angenrheidiol", "casesearch-search-validation-minlength": "Rhaid iddo gynnwys 4 nod neu fwy", - "casescomment-card-title": "Rhowch sylwadau ar apêl", - "casescomment-card-paragraph-one": "Rhowch sylwadau ar apêl (ac eithrio apêl deiliaid tai neu fasnachol) drwy e-bostio ", + "casescomment-card-title": "Sylw ar apêl neu gais", + "casescomment-card-paragraph-one": "Fel arall, gallwch wneud sylwadau ar apêl (ac eithrio apêl gan ddeiliad tŷ neu apêl fasnachol) drwy e-bostio ", "casescomment-card-paragraph-two": "Ni all partïon â buddiant wneud sylwadau ar apeliadau deiliaid tai a masnachol yn ystod y cam apelio. Bydd unrhyw sylwadau a wnaed yn ystod y cam ymgeisio yn cael eu darparu gan yr awdurdod cynllunio lleol a'u hystyried gan yr Arolygydd.", "inspectorate-card-visit-label": "Ymweld â'r Arolygiaeth Gynllunio", "inspectorate-card-visit-link": "Hafan", @@ -46,5 +46,11 @@ "uploading-files-progress-label": "Wrthi'n llwytho i fyny...", "uploading-files-label": "Wrthi'n uwchlwytho {{number}} ffeil", "completed-uploading-files-label": "{{number}} ffeil wedi'u huwchlwytho", - "remove-this-file-label": "Tynnu'r ffeil hon" + "remove-this-file-label": "Tynnu'r ffeil hon", + "watch-case-card-title": "Gwylio achos", + "watch-case-paragraph-one": "Os oes gennych ddiddordeb mewn achos, dewiswch ei wylio o'ch dangosfwrdd.", + "casescomment-card-paragraph-three": "Gallwch wneud sylwadau ar apeliadau a cheisiadau yn ystod y cyfnod cynrychioli neu gyflwyno datganiadau achos neu'r Holiadur LPA.", + "casescomment-card-paragraph-four": "Cyfeiriwch at y dyddiadau cau ar gyfer cynrychioli achosion unigol ar gyfer datganiadau a sylwadau.", + "signin-benefits-title": "Buddion mewngofnodi", + "signin-benefits-paragraph": "Mae cofrestru ar y porth Gwaith Achos Cynllunio yn caniatáu ichi:" } \ No newline at end of file diff --git a/locales/en/home.json b/locales/en/home.json index 9f83d698..ec8ac994 100644 --- a/locales/en/home.json +++ b/locales/en/home.json @@ -1,6 +1,6 @@ { - "login-card-title-temp": "New appeals or applications", - "login-comingsoon-temp-1": "This service is being developed to support online appeals and applications.", + "login-card-title-temp": "Submit a new appeal", + "login-comingsoon-temp-1": "This service is being developed to support online appeals and applications. You can currently raise planning appeals.", "login-comingsoon-temp-1a": "You can currently raise Planning Appeals s78.", "login-comingsoon-temp-2": "While we develop the online service, find:", "login-comingsoon-forms-link-1": "https://gov.wales/planning-appeal-forms", @@ -32,8 +32,8 @@ "casesearch-card-advanced-link": "Advanced search", "casesearch-search-validation-required": "Required", "casesearch-search-validation-minlength": "Must be 4 characters or more", - "casescomment-card-title": "Comment on an appeal ", - "casescomment-card-paragraph-one": "Comment on an appeal (excluding householder or commercial) by emailing ", + "casescomment-card-title": "Comment on an appeal or application", + "casescomment-card-paragraph-one": "Alternatively you can comment on an appeal (excluding householder or commercial) by emailing ", "casescomment-card-paragraph-two": "For householder and commercial appeals, interested parties are unable to comment at appeal stage. Any comments made at application stage will be provided by the Local Planning Authority and considered by the inspector.", "inspectorate-card-visit-label": "Visit the Planning Inspectorate", "inspectorate-card-visit-link": "Home", @@ -46,5 +46,11 @@ "uploading-files-progress-label": "Uploading...", "uploading-files-label": "Uploading {{number}} files", "completed-uploading-files-label": "{{number}} files uploaded", - "remove-this-file-label": "Remove this file" + "remove-this-file-label": "Remove this file", + "watch-case-card-title": "Watch a case", + "watch-case-paragraph-one": "If you are interested in a case you select to watch it from your dashboard.", + "casescomment-card-paragraph-three": "You can make comments on appeals and applications during the representation period or submit statements of case or the LPA Questionnaire.", + "casescomment-card-paragraph-four": "Please refer to the individual case representation deadlines for statements and comments.", + "signin-benefits-title": "Sign in benefits", + "signin-benefits-paragraph": "Registering on the Planning Casework portal allows you to:" } \ No newline at end of file diff --git a/pages/index.js b/pages/index.js index f75c0f7b..ad1ba3f9 100644 --- a/pages/index.js +++ b/pages/index.js @@ -128,7 +128,7 @@ const Home = (props) => { ) : ( <> - +