Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

2.0 KB
Raw Blame
// SPDX-License-Identifier: AGPL-3.0-only
// Carbon (github.com/crbnos/carbon). Modified or adapted versions of this file,
// including ports, remain AGPLv3; serving them over a network requires releasing their source.

import { CONTROLLED_ENVIRONMENT } from "@carbon/auth";
import { cn, Heading, TooltipProvider } from "@carbon/react";
import { Trans } from "@lingui/react/macro";
import { Outlet } from "react-router";

export default function PublicRoute() {
  return (
    <TooltipProvider>
      <div className="container relative h-full flex-col items-center justify-center grid lg:max-w-none lg:grid-cols-2 lg:px-0 bg-card">
        <div className="relative hidden h-full flex-col bg-muted p-10 lg:flex dark:border-r dark:bg-zinc-900 bg:zinc-100">
          <img
            src="/carbon-word-light.svg"
            alt="Carbon Logo"
            className={cn(
              "max-w-[200px] mb-3 dark:hidden z-50",
              CONTROLLED_ENVIRONMENT && "grayscale"
            )}
          />
          <img
            src="/carbon-word-dark.svg"
            alt="Carbon Logo"
            className={cn(
              "max-w-[200px] mb-3 dark:block hidden z-50",
              CONTROLLED_ENVIRONMENT && "grayscale"
            )}
          />

          <div className="relative z-20 mt-auto">
            <blockquote className="space-y-2">
              <Heading size="display" className="text-foreground">
                <Trans>Let's build something</Trans>
                <span className="inline-block">
                  <span className="loading-dot">.</span>
                  <span className="loading-dot">.</span>
                  <span className="loading-dot">.</span>
                </span>
              </Heading>
            </blockquote>
          </div>
        </div>
        <div className="lg:p-8">
          <div className="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">
            <Outlet />
          </div>
        </div>
      </div>
    </TooltipProvider>
  );
}