diff --git a/components/servicebanner.js b/components/servicebanner.js index 324c82ee..36803992 100644 --- a/components/servicebanner.js +++ b/components/servicebanner.js @@ -1,46 +1,118 @@ import useTranslation from "next-translate/useTranslation"; import router from "next/router"; import Link from "next/link"; +import CaseNoticeBanner from "./case/caseNoticeBanner"; export default function ServiceBanner(props) { let { t, lang } = useTranslation(); + const showSigninFromEnv = false; + const showNoticeFromEnv = true; + + // keep backwards-compat with existing usage + const showSignin = props?.noSignin === true ? false : showSigninFromEnv; + const signInButton = () => { router.push( `${ router.locale == "cy" ? "/awd/mewngofnodi" : "/auth/signin" }?callbackUrl=${encodeURIComponent( - window.location.href - )}&error=EmailSignin` + window.location.href, + )}&error=EmailSignin`, ); }; return ( -
-

- Planning casework -

- {props.noSignin != true && ( -
- +
+ )} +
+ + {showNoticeFromEnv && ( +
+
- {t("common:signin-label")} - + + + Announcement + + +
+
+

+ {router.locale == "cy" + ? "Cyhoeddiad" + : "Announcement"} +

+
+
+ {router.locale == "cy" ? ( + <> +

+ Oherwydd gwaith cynnal a chadw + hanfodol, rydym yn disgwyl rhywfaint + o darfu ar ein gwasanaethau Porth + Gwaith Achos rhwng 9-13 Chwefror + 2026.{" "} +

+

+ Ymddiheurwn am yr anghyfleustra. Am + ymholiadau brys yn ystod y cyfnod + hwn, cysylltwch รข{" "} + + pedw.gwaithachos@llyw.cymru + +

+ + ) : ( + <> +

+ Due to essential maintenance, we are + expecting some disruption to our + Casework Portal services between + 9-13 February 2026. +

+

+ We apologise for the inconvenience. + For urgent enquries during this time + please contact{" "} + + pedw.casework@gov.wales + +

+ + )} +
+
+
)} - + ); }