diff --git a/src/App.js b/src/App.js index 4078bb8..5f7a14f 100644 --- a/src/App.js +++ b/src/App.js @@ -35,6 +35,7 @@ import "firebase/functions"; import "firebase/app-check"; import "firebase/firestore"; import "firebase/analytics"; +import PlatformDisabled from './PlatformDisabled'; // TODO: app check debug token set in index.html - remove before deploy @@ -258,6 +259,15 @@ class App extends React.Component { ? <> + + + + + + + + + diff --git a/src/PlatformDisabled.js b/src/PlatformDisabled.js new file mode 100644 index 0000000..6bb335e --- /dev/null +++ b/src/PlatformDisabled.js @@ -0,0 +1,35 @@ +import { useEffect } from "react"; +import { Link } from "react-router-dom"; +import Footer from "./Footer"; +import NavBar from "./NavBar"; + +const PlatformDisabled = (props) => { + useEffect(() => { + if (props.page) { + props.page.load(); + return () => props.page.unload(); + } + if (props.logEvent) props.logEvent("page_view"); + }, [props, props.logEvent, props.page]); + return ( + <> + + +
+
+

Your access to Parandum has been temporarily disabled

+

+ Apologies, but due to unpaid invoices by Reading School you + are currently unable to access this platform. Please contact Mr M Cooper at{" "} + mcooper@reading-school.co.uk and{" "} + finance@reading-school.co.uk to regain access. If + you are a student at Reading School, please also discuss this with your language teacher. +

+
+
+