2023-11-27 14:11:47 +00:00
|
|
|
|
import { FC } from "react";
|
|
|
|
|
import Image from "next/image";
|
2024-03-06 13:09:14 +00:00
|
|
|
|
import Link from "next/link";
|
2023-11-27 14:11:47 +00:00
|
|
|
|
// images
|
2024-03-06 13:09:14 +00:00
|
|
|
|
import { LayoutGrid } from "lucide-react";
|
|
|
|
|
import { Button } from "@plane/ui";
|
2023-11-27 14:11:47 +00:00
|
|
|
|
import AccessDeniedImg from "public/auth/access-denied.svg";
|
|
|
|
|
// ui
|
|
|
|
|
// icons
|
|
|
|
|
|
|
|
|
|
interface InstanceAdminRestrictionProps {
|
|
|
|
|
redirectWorkspaceSlug: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const InstanceAdminRestriction: FC<InstanceAdminRestrictionProps> = ({ redirectWorkspaceSlug }) => (
|
2023-12-10 10:18:10 +00:00
|
|
|
|
<div className={`my-8 flex w-full flex-col items-center justify-center gap-4 overflow-hidden`}>
|
2023-11-27 14:11:47 +00:00
|
|
|
|
<div className="w-3/5 bg-custom-background-90">
|
|
|
|
|
<div className="grid h-full place-items-center p-2 pb-0">
|
|
|
|
|
<div className="text-center">
|
|
|
|
|
<Image src={AccessDeniedImg} height="250" width="550" alt="AccessDeniedImg" />
|
|
|
|
|
<h3 className="text-3xl font-semibold">God mode needs a god role</h3>
|
|
|
|
|
<p className="text-base text-custom-text-300">Doesn’t look like you have that role.</p>
|
|
|
|
|
</div>
|
2023-12-10 10:18:10 +00:00
|
|
|
|
<div className="my-8 flex flex-col gap-2 text-center">
|
2023-11-27 14:11:47 +00:00
|
|
|
|
<div>
|
2023-12-10 10:18:10 +00:00
|
|
|
|
<p className="text-xs font-medium tracking-tight text-custom-text-400">Do we have a god role?</p>
|
|
|
|
|
<p className="text-sm text-custom-text-300">Yes.</p>
|
2023-11-27 14:11:47 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div>
|
2023-12-10 10:18:10 +00:00
|
|
|
|
<p className="text-xs font-medium tracking-tight text-custom-text-400">Do we call it god role?</p>
|
|
|
|
|
<p className="text-sm text-custom-text-300">No. Obviously not.</p>
|
2023-11-27 14:11:47 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div>
|
2023-12-10 10:18:10 +00:00
|
|
|
|
<p className="text-xs font-medium tracking-tight text-custom-text-400">Can you get it?</p>
|
|
|
|
|
<p className="text-sm text-custom-text-300">Maybe. Ask your god.</p>
|
2023-11-27 14:11:47 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div>
|
2023-12-10 10:18:10 +00:00
|
|
|
|
<p className="text-xs font-medium tracking-tight text-custom-text-400">
|
2023-11-27 14:11:47 +00:00
|
|
|
|
Are we being intentionally cryptic?
|
|
|
|
|
</p>
|
2023-12-10 10:18:10 +00:00
|
|
|
|
<p className="text-sm text-custom-text-300">Yes.</p>
|
2023-11-27 14:11:47 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div>
|
2023-12-10 10:18:10 +00:00
|
|
|
|
<p className="text-xs font-medium tracking-tight text-custom-text-400">
|
2023-11-27 14:11:47 +00:00
|
|
|
|
Is this for the security of your workspaces?
|
|
|
|
|
</p>
|
2023-12-10 10:18:10 +00:00
|
|
|
|
<p className="text-sm text-custom-text-300">Absolutely!</p>
|
2023-11-27 14:11:47 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div>
|
2023-12-10 10:18:10 +00:00
|
|
|
|
<p className="text-xs font-medium tracking-tight text-custom-text-400">
|
2023-11-27 14:11:47 +00:00
|
|
|
|
Are you the god here and still seeing this?
|
|
|
|
|
</p>
|
2023-12-10 10:18:10 +00:00
|
|
|
|
<p className="text-sm text-custom-text-300">
|
2023-11-27 14:11:47 +00:00
|
|
|
|
Sorry, God.{" "}
|
|
|
|
|
<a
|
|
|
|
|
href="https://discord.com/channels/1031547764020084846/1094927053867995176"
|
|
|
|
|
target="_blank"
|
2023-12-10 10:18:10 +00:00
|
|
|
|
className="font-medium text-custom-primary-100 hover:underline"
|
2023-11-27 14:11:47 +00:00
|
|
|
|
rel="noreferrer"
|
|
|
|
|
>
|
|
|
|
|
Talk to us.
|
|
|
|
|
</a>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="flex items-center justify-center gap-2">
|
|
|
|
|
<Link href={`/${redirectWorkspaceSlug}`}>
|
2023-12-01 10:20:01 +00:00
|
|
|
|
<Button variant="primary" size="sm">
|
|
|
|
|
<LayoutGrid width={16} height={16} />
|
|
|
|
|
To the workspace
|
|
|
|
|
</Button>
|
2023-11-27 14:11:47 +00:00
|
|
|
|
</Link>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|