Skip to content

Commit d8a3663

Browse files
committed
[dashboard] Implement Blocked page
1 parent 86d0e37 commit d8a3663

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

components/dashboard/src/App.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { shouldSeeWhatsNew, WhatsNew } from './WhatsNew';
1616
import settingsMenu from './settings/settings-menu';
1717
import { User } from '@gitpod/gitpod-protocol';
1818
import { adminMenu } from './admin/admin-menu';
19+
import gitpodIcon from './icons/gitpod.svg';
1920

2021
const Workspaces = React.lazy(() => import(/* webpackPrefetch: true */ './workspaces/Workspaces'));
2122
const Account = React.lazy(() => import(/* webpackPrefetch: true */ './settings/Account'));
@@ -60,7 +61,15 @@ function App() {
6061
}
6162
if (!user) {
6263
return (<Login />)
63-
};
64+
}
65+
if (window.location.pathname.startsWith('/blocked')) {
66+
return <div className="mt-48 text-center">
67+
<img src={gitpodIcon} className="h-16 mx-auto"/>
68+
<h1 className="mt-12 text-gray-500 text-3xl">Your account has been blocked.</h1>
69+
<p className="mt-4 mb-8 text-lg w-96 mx-auto">Please contact support if you think this is an error. See also <a className="hover:text-blue-600" href="https://www.gitpod.io/terms/">terms of service</a>.</p>
70+
<a className="mx-auto" href="mailto:[email protected]?Subject=Blocked"><button className="secondary">Contact Support</button></a>
71+
</div>;
72+
}
6473
const shouldWhatsNewShown = shouldSeeWhatsNew(user)
6574
if (shouldWhatsNewShown !== isWhatsNewShown) {
6675
setWhatsNewShown(shouldWhatsNewShown);

0 commit comments

Comments
 (0)