Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

963 B
Raw Blame
import { ReactNode } from "react";

import { assetUrl } from "../../../utils/asset-url";
import { AuthLanguageSelect } from "./auth-language-select";

type AuthLayoutProps = {
  children: ReactNode;
};

export const AuthLayout = ({ children }: AuthLayoutProps) => {
  return (
    <div className="flex h-dvh w-dvw overflow-hidden">
      <div className="bg-ui-bg-base border-ui-border-base flex h-full w-full flex-col overflow-y-auto border-r lg:w-[584px] lg:shrink-0">
        <div className="flex justify-end px-8 pt-8 lg:px-14 lg:pt-12">
          <AuthLanguageSelect />
        </div>
        <div className="flex flex-1 flex-col px-8 pb-8 lg:px-14 lg:pb-12">
          {children}
        </div>
      </div>
      <div className="relative hidden flex-1 overflow-hidden lg:flex">
        <img
          src={assetUrl("/onboarding/illustration.svg")}
          alt=""
          className="h-full w-full object-cover"
        />
      </div>
    </div>
  );
};