plane/web/components/instance/instance-admin-restriction.tsx

78 lines
3.1 KiB
TypeScript
Raw Normal View History

import { FC } from "react";
import Link from "next/link";
import Image from "next/image";
// images
import AccessDeniedImg from "public/auth/access-denied.svg";
// ui
import { Button } from "@plane/ui";
// icons
import { LayoutGrid } from "lucide-react";
interface InstanceAdminRestrictionProps {
redirectWorkspaceSlug: string;
}
export const InstanceAdminRestriction: FC<InstanceAdminRestrictionProps> = ({ redirectWorkspaceSlug }) => (
<div className={`my-8 flex w-full flex-col items-center justify-center gap-4 overflow-hidden`}>
2024-01-30 06:46:21 +00:00
<div className="w-3/5 bg-neutral-component-surface-medium">
<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>
2024-02-08 12:53:13 +00:00
<p className="text-base text-neutral-text-medium">Doesnt look like you have that role.</p>
</div>
<div className="my-8 flex flex-col gap-2 text-center">
<div>
2024-02-08 12:53:13 +00:00
<p className="text-xs font-medium tracking-tight text-neutral-text-subtle">Do we have a god role?</p>
<p className="text-sm text-neutral-text-medium">Yes.</p>
</div>
<div>
2024-02-08 12:53:13 +00:00
<p className="text-xs font-medium tracking-tight text-neutral-text-subtle">Do we call it god role?</p>
<p className="text-sm text-neutral-text-medium">No. Obviously not.</p>
</div>
<div>
2024-02-08 12:53:13 +00:00
<p className="text-xs font-medium tracking-tight text-neutral-text-subtle">Can you get it?</p>
<p className="text-sm text-neutral-text-medium">Maybe. Ask your god.</p>
</div>
<div>
2024-02-08 12:53:13 +00:00
<p className="text-xs font-medium tracking-tight text-neutral-text-subtle">
Are we being intentionally cryptic?
</p>
2024-02-08 12:53:13 +00:00
<p className="text-sm text-neutral-text-medium">Yes.</p>
</div>
<div>
2024-02-08 12:53:13 +00:00
<p className="text-xs font-medium tracking-tight text-neutral-text-subtle">
Is this for the security of your workspaces?
</p>
2024-02-08 12:53:13 +00:00
<p className="text-sm text-neutral-text-medium">Absolutely!</p>
</div>
<div>
2024-02-08 12:53:13 +00:00
<p className="text-xs font-medium tracking-tight text-neutral-text-subtle">
Are you the god here and still seeing this?
</p>
2024-02-08 12:53:13 +00:00
<p className="text-sm text-neutral-text-medium">
Sorry, God.{" "}
<a
href="https://discord.com/channels/1031547764020084846/1094927053867995176"
target="_blank"
2024-02-08 13:51:08 +00:00
className="font-medium text-primary-text-subtle hover:underline"
rel="noreferrer"
>
Talk to us.
</a>
</p>
</div>
</div>
</div>
</div>
<div className="flex items-center justify-center gap-2">
<Link href={`/${redirectWorkspaceSlug}`}>
<Button variant="primary" size="sm">
<LayoutGrid width={16} height={16} />
To the workspace
</Button>
</Link>
</div>
</div>
);