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