Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/dashboard/src/login/SetupPending.tsx
3606 views
1
/**
2
* Copyright (c) 2023 Gitpod GmbH. All rights reserved.
3
* Licensed under the GNU Affero General Public License (AGPL).
4
* See License.AGPL.txt in the project root for license information.
5
*/
6
7
import { FC } from "react";
8
import { Heading2, Subheading } from "../components/typography/headings";
9
import cubicleImg from "../images/cubicle.webp";
10
import cubicleDarkImg from "../images/cubicle-dark.webp";
11
import cubicleImg2x from "../images/[email protected]";
12
import cubicleDarkImg2x from "../images/[email protected]";
13
import gitpodIcon from "../images/gitpod.svg";
14
import gitpodDarkIcon from "../images/gitpod-dark.svg";
15
import classNames from "classnames";
16
import { useTheme } from "../theme-context";
17
18
type Props = {
19
alwaysShowHeader: boolean;
20
};
21
export const SetupPending: FC<Props> = ({ alwaysShowHeader }) => {
22
const { isDark } = useTheme();
23
24
return (
25
<div className="flex-grow flex items-center justify-center p-4">
26
<div className={classNames(alwaysShowHeader ? "" : "lg:hidden", "absolute top-0 left-0 right-0")}>
27
<div className="flex items-center justify-center items-center py-3 space-x-1">
28
<img src={isDark ? gitpodDarkIcon : gitpodIcon} className="h-8" alt="Gitpod's logo" />
29
</div>
30
</div>
31
<div className="max-w-md flex flex-col items-center justify-center text-center">
32
<img
33
className="mb-8"
34
src={isDark ? cubicleDarkImg : cubicleImg}
35
srcSet={`${isDark ? cubicleDarkImg : cubicleImg} 1x, ${
36
isDark ? cubicleDarkImg2x : cubicleImg2x
37
} 2x`}
38
alt="cubical illustration"
39
width="240"
40
height="251"
41
/>
42
<Heading2>Setup is pending</Heading2>
43
<Subheading>This instance of Gitpod is not quite ready.</Subheading>
44
<Subheading> An administrator has a few additional steps to complete.</Subheading>
45
</div>
46
</div>
47
);
48
};
49
50