2023-11-29 15:03:08 +00:00
|
|
|
import React from "react";
|
|
|
|
import Image from "next/image";
|
2024-04-02 08:35:12 +00:00
|
|
|
import Link from "next/link";
|
2023-11-29 15:03:08 +00:00
|
|
|
import { useTheme } from "next-themes";
|
2024-04-02 08:35:12 +00:00
|
|
|
// icons
|
|
|
|
import { UserCog2 } from "lucide-react";
|
|
|
|
// ui
|
|
|
|
import { getButtonStyling } from "@plane/ui";
|
2023-12-01 10:20:01 +00:00
|
|
|
// images
|
2023-11-29 15:03:08 +00:00
|
|
|
import instanceNotReady from "public/instance/plane-instance-not-ready.webp";
|
2023-12-01 10:20:01 +00:00
|
|
|
import PlaneBlackLogo from "public/plane-logos/black-horizontal-with-blue-logo.svg";
|
2024-03-06 13:09:14 +00:00
|
|
|
import PlaneWhiteLogo from "public/plane-logos/white-horizontal-with-blue-logo.svg";
|
2023-11-29 15:03:08 +00:00
|
|
|
|
|
|
|
export const InstanceNotReady = () => {
|
|
|
|
const { resolvedTheme } = useTheme();
|
|
|
|
|
2023-12-01 10:20:01 +00:00
|
|
|
const planeLogo = resolvedTheme === "dark" ? PlaneWhiteLogo : PlaneBlackLogo;
|
2023-11-29 15:03:08 +00:00
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="h-screen w-full overflow-y-auto bg-onboarding-gradient-100">
|
2023-12-01 10:20:01 +00:00
|
|
|
<div className="h-full w-full pt-24">
|
2023-12-10 10:18:10 +00:00
|
|
|
<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">
|
2023-12-06 08:52:59 +00:00
|
|
|
<Image src={planeLogo} className="h-[44px] w-full" alt="Plane logo" />
|
2023-11-29 15:03:08 +00:00
|
|
|
</div>
|
|
|
|
<div className="mt-20">
|
2023-12-06 08:52:59 +00:00
|
|
|
<Image src={instanceNotReady} className="w-full" alt="Instance not ready" />
|
2023-11-29 15:03:08 +00:00
|
|
|
</div>
|
2023-12-10 10:18:10 +00:00
|
|
|
<div className="flex w-full flex-col items-center gap-5 py-12 pb-20">
|
2023-12-01 10:20:01 +00:00
|
|
|
<h3 className="text-2xl font-medium">Your Plane instance isn{"'"}t ready yet</h3>
|
2023-11-29 15:03:08 +00:00
|
|
|
<p className="text-sm">Ask your Instance Admin to complete set-up first.</p>
|
2024-04-02 08:35:12 +00:00
|
|
|
<Link href="/god-mode" className={`${getButtonStyling("primary", "md")} mt-4`}>
|
|
|
|
<UserCog2 className="h-3.5 w-3.5" />
|
|
|
|
Get started
|
|
|
|
</Link>
|
2023-11-29 15:03:08 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|