mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-19 11:20:04 +08:00
45 lines
1.6 KiB
TypeScript
45 lines
1.6 KiB
TypeScript
import { Box, Button, Center, Link, Text } from "@chakra-ui/react";
|
|
import { AlertTriangle } from "lucide-react";
|
|
import Head from "next/head";
|
|
import { EmptyState } from "src/components/EmptyState";
|
|
import { getTransparentHeaderLayout } from "src/components/Layout";
|
|
export { getDefaultStaticProps as getStaticProps } from "src/lib/default_static_props";
|
|
|
|
function Error() {
|
|
return (
|
|
<>
|
|
<Head>
|
|
<title>404 - Open Assistant</title>
|
|
<meta name="404" content="Sorry, this page doesn't exist." />
|
|
</Head>
|
|
<Center flexDirection="column" gap="4" fontSize="lg" className="subpixel-antialiased">
|
|
<EmptyState text="Sorry, the page you are looking for does not exist." icon={AlertTriangle} />
|
|
<Box display="flex" flexDirection="column" alignItems="center" gap="2" mt="6">
|
|
<Text fontSize="sm">If you were trying to contribute data but ended up here, please file a bug.</Text>
|
|
<Button
|
|
width="fit-content"
|
|
leftIcon={<AlertTriangle size={"1em"} className="text-blue-500" aria-hidden="true" />}
|
|
variant="solid"
|
|
size="xs"
|
|
>
|
|
<Link
|
|
key="Report a Bug"
|
|
href="https://github.com/LAION-AI/Open-Assistant/issues/new/choose"
|
|
aria-label="Report a Bug"
|
|
className="flex items-center"
|
|
_hover={{ textDecoration: "none" }}
|
|
isExternal
|
|
>
|
|
Report a Bug
|
|
</Link>
|
|
</Button>
|
|
</Box>
|
|
</Center>
|
|
</>
|
|
);
|
|
}
|
|
|
|
Error.getLayout = getTransparentHeaderLayout;
|
|
|
|
export default Error;
|