// Hi-fi kit navy — usado por todas as telas
// Garante: tela = 390x844, sem scroll interno, paleta navy + ouro consistente
const T = window.TOKENS;
// Wrapper hi-fi: fundo navy gradient + partículas + tab bar dark fixa
function HiFiScreen({ children, hideTabs, activeTab = 'home', go, padding = '60px 20px 0' }) {
return (
{/* partículas decorativas */}
{Array.from({ length: 18 }).map((_, i) => (
))}
{children}
{!hideTabs &&
}
);
}
window.HiFiScreen = HiFiScreen;
function HiFiHeader({ title, onBack, action }) {
return (
{onBack ? (
‹
) :
}
{title}
{action ||
}
);
}
window.HiFiHeader = HiFiHeader;
function HiFiCard({ children, padding = 14, style = {}, onClick }) {
return (
{children}
);
}
window.HiFiCard = HiFiCard;
function HiFiButton({ children, primary, full, onClick, style = {} }) {
return (
{children}
);
}
window.HiFiButton = HiFiButton;
function HiFiPill({ children, gold, onClick }) {
return (
{children}
);
}
window.HiFiPill = HiFiPill;
function HiFiTabs({ active = 'home', go }) {
const tabs = [
{ id: 'home', l: 'Início' },
{ id: 'chat', l: 'Orar' },
{ id: 'creator', l: 'Criar' },
{ id: 'promise', l: 'Promessas' },
{ id: 'talents', l: 'Eu' },
];
return (
{tabs.map(t => (
go?.(t.id)} style={{
background: 'transparent', border: 'none', cursor: 'pointer',
display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 4,
fontFamily: T.sans, fontSize: 9,
color: active === t.id ? T.gold : 'rgba(255,255,255,0.5)',
}}>
{t.l}
))}
);
}
window.HiFiTabs = HiFiTabs;
function HiFiTitle({ children, style = {} }) {
return (
{children}
);
}
window.HiFiTitle = HiFiTitle;