mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
43 lines
1.8 KiB
TypeScript
43 lines
1.8 KiB
TypeScript
|
import { FC } from "react";
|
||
|
import Image from "next/image";
|
||
|
import { useTheme } from "next-themes";
|
||
|
// icons
|
||
|
import { UserCog2 } from "lucide-react";
|
||
|
// ui
|
||
|
import { getButtonStyling } from "@plane/ui";
|
||
|
// images
|
||
|
import instanceNotReady from "public/instance/plane-instance-not-ready.webp";
|
||
|
import PlaneBlackLogo from "public/plane-logos/black-horizontal-with-blue-logo.svg";
|
||
|
import PlaneWhiteLogo from "public/plane-logos/white-horizontal-with-blue-logo.svg";
|
||
|
|
||
|
export const InstanceNotReady: FC = () => {
|
||
|
const { resolvedTheme } = useTheme();
|
||
|
|
||
|
const planeLogo = resolvedTheme === "dark" ? PlaneWhiteLogo : PlaneBlackLogo;
|
||
|
|
||
|
return (
|
||
|
<div className="h-screen w-full overflow-y-auto bg-onboarding-gradient-100">
|
||
|
<div className="h-full w-full pt-24">
|
||
|
<div className="mx-auto h-full rounded-t-md border-x border-t border-custom-border-100 bg-onboarding-gradient-100 px-4 pt-4 shadow-sm sm:w-4/5 md:w-2/3">
|
||
|
<div className="relative h-full rounded-t-md bg-onboarding-gradient-200 px-7 sm:px-0">
|
||
|
<div className="flex items-center justify-center py-10">
|
||
|
<Image src={planeLogo} className="h-[44px] w-full" alt="Plane logo" />
|
||
|
</div>
|
||
|
<div className="mt-20">
|
||
|
<Image src={instanceNotReady} className="w-full" alt="Instance not ready" />
|
||
|
</div>
|
||
|
<div className="flex w-full flex-col items-center gap-5 py-12 pb-20">
|
||
|
<h3 className="text-2xl font-medium">Your Plane instance isn{"'"}t ready yet</h3>
|
||
|
<p className="text-sm">Ask your Instance Admin to complete set-up first.</p>
|
||
|
<a href="/god-mode" className={`${getButtonStyling("primary", "md")} mt-4`}>
|
||
|
<UserCog2 className="h-3.5 w-3.5" />
|
||
|
Get started
|
||
|
</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
);
|
||
|
};
|