Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

2.5 KB
Raw Blame
import { t } from 'i18next';

import { Badge } from '@/components/ui/badge';

export const NoProjectsState = () => {
  return (
    <div className="flex flex-col items-center justify-center h-full w-full px-8 py-12 gap-6 max-w-md mx-auto text-center">
      <MascotIllustration />

      <Badge
        variant="secondary"
        className="bg-accent-3 text-accent-11 hover:bg-accent-3 gap-1.5 font-medium"
      >
        <span className="size-1.5 rounded-full bg-accent-10" />
        {t('Waiting for access')}
      </Badge>

      <div className="flex flex-col gap-2">
        <h1 className="text-2xl font-semibold text-gray-12">
          {t("You're not in a project yet")}
        </h1>
        <p className="text-base text-gray-11">
          {t(
            "Ask your admin to add you to one. It'll show up here as soon as they do.",
          )}
        </p>
      </div>
    </div>
  );
};

const MascotIllustration = () => {
  return (
    <div className="relative w-48 h-40">
      <svg
        aria-hidden="true"
        className="absolute inset-0 w-full h-full"
        viewBox="0 0 192 160"
        fill="none"
        xmlns="http://www.w3.org/2000/svg"
      >
        <rect
          x="30"
          y="34"
          width="24"
          height="24"
          rx="6"
          transform="rotate(-12 42 46)"
          className="fill-success-3 stroke-success-11"
          strokeWidth="1.5"
        />
        <rect
          x="140"
          y="30"
          width="22"
          height="22"
          rx="6"
          transform="rotate(15 151 41)"
          className="fill-warning-3 stroke-warning-11"
          strokeWidth="1.5"
        />

        <ellipse cx="96" cy="140" rx="46" ry="4" className="fill-gray-3" />

        <path
          d="M62 56 Q62 46 72 46 L120 46 Q130 46 130 56 L136 96 Q136 130 116 130 L76 130 Q56 130 56 96 Z"
          className="fill-accent-11/10 stroke-accent-11"
          strokeWidth="2"
          strokeLinejoin="round"
        />

        <ellipse cx="82" cy="86" rx="3" ry="4" className="fill-accent-11" />
        <ellipse cx="110" cy="86" rx="3" ry="4" className="fill-accent-11" />

        <ellipse cx="74" cy="100" rx="5" ry="3" className="fill-accent-11/25" />
        <ellipse
          cx="118"
          cy="100"
          rx="5"
          ry="3"
          className="fill-accent-11/25"
        />

        <path
          d="M84 102 Q96 112 108 102"
          className="stroke-accent-11"
          strokeWidth="2"
          strokeLinecap="round"
          fill="none"
        />
      </svg>
    </div>
  );
};