/* Alis AI — landing: primitivos + nav + footer + modal + fab */
function Button({ variant = "primary", size, block, href, children, onClick, icon }) {
const cls = ["btn", "btn--" + variant, size === "lg" && "btn--lg", block && "btn--block"].filter(Boolean).join(" ");
const inner = [children, icon && React.createElement(Icon, { name: icon, key: "i" })];
if (href) return React.createElement("a", { className: cls, href, onClick }, inner);
return React.createElement("button", { className: cls, onClick }, inner);
}
function Eyebrow({ children, invert }) {
return
{children}
;
}
function SectionHead({ eyebrow, title, sub }) {
return (
{eyebrow &&
{eyebrow}}
{title}
{sub &&
{sub}
}
);
}
function Brand({ onDark }) {
return (
Alis AI
);
}
const NAV_LINKS = [
["Funcionalidades", "#features"],
["Como funciona", "#how"],
["Para quem é", "#usecases"],
["Planos", "#pricing"],
["Dúvidas", "#faq"],
];
function Nav({ onSignup }) {
const [scrolled, setScrolled] = React.useState(false);
const [open, setOpen] = React.useState(false);
React.useEffect(() => {
const fn = () => setScrolled(window.scrollY > 12);
fn();
window.addEventListener("scroll", fn, { passive: true });
return () => window.removeEventListener("scroll", fn);
}, []);
return (
);
}
const FOOTER_COLS = [
["Produto", ["Planos", "Funcionalidades", "API", "Roadmap", "Changelog"]],
["Empresa", ["Sobre", "Blog", "Vagas", "Contato"]],
["Recursos", ["Documentação", "Tutoriais", "Comunidade", "Suporte"]],
["Legal", ["Termos de uso", "Privacidade", "LGPD", "Cookies"]],
];
function Footer() {
return (
);
}
function WhatsAppFab({ onClick }) {
return (
);
}
function SignupModal({ onClose }) {
const [done, setDone] = React.useState(false);
React.useEffect(() => {
const fn = (e) => e.key === "Escape" && onClose();
window.addEventListener("keydown", fn);
return () => window.removeEventListener("keydown", fn);
}, []);
return (
e.stopPropagation()}>
{done ? (
Conta criada!
Agora é só escanear o QR Code pra conectar seu WhatsApp. (Isto é uma demonstração.)
) : (
Testar 14 dias grátis
14 dias completos no Pro. Sem cartão. Conecta seu WhatsApp em 1 click.
)}
);
}
Object.assign(window, { Button, Eyebrow, SectionHead, Brand, Nav, Footer, WhatsAppFab, SignupModal });