Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/dashboard/src/error-pages/ErrorPageLayout.tsx
2499 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 gitpodIcon from "../images/gitpod.svg";
8
import gitpodDarkIcon from "../images/gitpod-dark.svg";
9
import { useTheme } from "../theme-context";
10
import { FC } from "react";
11
import "../dedicated-setup/styles.css";
12
13
export const ErrorPageLayout: FC = ({ children }) => {
14
const { isDark } = useTheme();
15
return (
16
<div className="container">
17
<div className="app-container">
18
<div className="flex items-center justify-center items-center py-3">
19
<img src={isDark ? gitpodDarkIcon : gitpodIcon} className="h-8" alt="Gitpod's logo" />
20
</div>
21
<div className={`mt-24 max-w-lg mx-auto text-center`}>
22
<div>{children}</div>
23
</div>
24
</div>
25
</div>
26
);
27
};
28
29