diff --git a/apps/explorer/src/app/routes/layout.tsx b/apps/explorer/src/app/routes/layout.tsx index f79c4dde1..7d310c356 100644 --- a/apps/explorer/src/app/routes/layout.tsx +++ b/apps/explorer/src/app/routes/layout.tsx @@ -133,7 +133,7 @@ export const ErrorBoundary = () => { ); }; -const GHOST = ( +export const GHOST = ( { + const errorTitle = '451 Unavailable'; + const errorMessage = + 'Due to uncertainty about the legal and regulatory status of the content hosted on this site, it is not available to visitors in your jurisdiction.'; + + return ( +
+ +
+
+
{GHOST}
+

+ {errorTitle} +

+
+
+ {errorMessage} +
+
+
+ ); +}; + +const GHOST = ( + + + + + + + + + + + + + + + + + + + + + + + + + + + + +); + +export default RestrictedPage; diff --git a/apps/explorer/src/app/routes/route-names.tsx b/apps/explorer/src/app/routes/route-names.tsx index 8ee07a085..7e2f2175c 100644 --- a/apps/explorer/src/app/routes/route-names.tsx +++ b/apps/explorer/src/app/routes/route-names.tsx @@ -1,5 +1,6 @@ export const Routes = { HOME: '/', + RESTRICTED: '/restricted', TX: 'txs', BLOCKS: 'blocks', PARTIES: 'parties', diff --git a/apps/explorer/src/app/routes/router-config.tsx b/apps/explorer/src/app/routes/router-config.tsx index 6e1726779..3e79aa295 100644 --- a/apps/explorer/src/app/routes/router-config.tsx +++ b/apps/explorer/src/app/routes/router-config.tsx @@ -30,6 +30,7 @@ import { remove0x } from '@vegaprotocol/utils'; import { PartyAccountsByAsset } from './parties/id/accounts'; import { Disclaimer } from './pages/disclaimer'; import { FLAGS } from '@vegaprotocol/environment'; +import RestrictedPage from './restricted'; export type Navigable = { path: string; @@ -356,6 +357,14 @@ export const routerConfig: Route[] = [ ...validators, ], }, + { + path: Routes.RESTRICTED, + element: , + handle: { + name: t('Restricted'), + text: t('Restricted'), + }, + }, ]; export const router = createBrowserRouter(routerConfig);