UNPKG

analytica-frontend-lib

Version:

Repositório público dos componentes utilizados nas plataformas da Analytica Ensino

56 lines (54 loc) 2.22 kB
import { getRootDomain } from "./chunk-VQTRDBGR.mjs"; import { Button_default } from "./chunk-LAYB7IKW.mjs"; import { Text_default } from "./chunk-IMCIR6TJ.mjs"; import { cn } from "./chunk-53ICLDGS.mjs"; // src/components/RestrictedAccess/RestrictedAccess.tsx import { ShieldCheckIcon } from "@phosphor-icons/react/dist/csr/ShieldCheck"; import { jsx, jsxs } from "react/jsx-runtime"; var RestrictedAccess = ({ title = "\xC1rea Restrita", description = "Este \xE9 um painel administrativo. Fa\xE7a login para acessar o sistema.", buttonText = "Fazer Login", logoSrc, logoAlt = "Logo", footerText, className = "" }) => { const handleLoginClick = () => { globalThis.location.href = getRootDomain(); }; return /* @__PURE__ */ jsx( "div", { className: cn( "min-h-screen w-full bg-primary-800 flex flex-col items-center justify-center p-4", className ), children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-8 max-w-md w-full", children: [ logoSrc && /* @__PURE__ */ jsx("img", { src: logoSrc, alt: logoAlt, className: "h-12 object-contain" }), /* @__PURE__ */ jsxs("div", { className: "bg-background rounded-xl p-8 w-full flex flex-col items-center gap-6 shadow-lg", children: [ /* @__PURE__ */ jsx("div", { className: "bg-primary-100 p-4 rounded-full", children: /* @__PURE__ */ jsx(ShieldCheckIcon, { size: 48, className: "text-primary-800" }) }), /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-2 text-center", children: [ /* @__PURE__ */ jsx(Text_default, { size: "xl", weight: "bold", children: title }), /* @__PURE__ */ jsx(Text_default, { size: "md", color: "text-text-500", children: description }) ] }), /* @__PURE__ */ jsx(Button_default, { onClick: handleLoginClick, className: "w-full", children: buttonText }) ] }), footerText && /* @__PURE__ */ jsx(Text_default, { size: "sm", color: "text-primary-200", children: footerText }) ] }) } ); }; var RestrictedAccess_default = RestrictedAccess; export { RestrictedAccess_default }; //# sourceMappingURL=chunk-F3NHEODD.mjs.map