(function injectChromeCSS() { if (document.getElementById('tecto-kit-chrome-css')) return; const css = ` .tk-logo { display: inline-flex; align-items: center; gap: 9px; } .tk-logo__mark { width: 26px; height: 26px; border-radius: 7px; flex: none; } .tk-logo__word { font-family: var(--font-serif); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-strong); } .tk-topbar { display: flex; align-items: center; gap: 10px; height: var(--topbar-h); padding: 0 12px; flex: none; background: var(--surface); border-bottom: 1px solid var(--border); } .tk-crumb { display: flex; align-items: center; gap: 7px; font-family: var(--font-sans); font-size: var(--text-sm); color: var(--ink-muted); } .tk-crumb b { color: var(--ink-strong); font-weight: 600; font-family: var(--font-mono); font-size: var(--text-sm); } .tk-topbar__spacer { flex: 1; } .tk-topbar__grp { display: flex; align-items: center; gap: 8px; } .tk-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-on); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-sans); font-size: 12px; font-weight: 600; flex: none; } .tk-rail { width: var(--rail-w); flex: none; background: var(--surface-sunken); border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; padding: 10px 0; gap: 4px; } .tk-rail__btn { width: 38px; height: 38px; border-radius: var(--radius-md); border: none; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-muted); transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out); position: relative; } .tk-rail__btn:hover { background: var(--surface-hover); color: var(--ink); } .tk-rail__btn--active { background: var(--accent-subtle-bg); color: var(--accent-subtle-fg); } .tk-rail__btn--active::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--accent); } .tk-rail__sp { flex: 1; } .tk-status { display: flex; align-items: center; gap: 14px; height: var(--statusbar-h); padding: 0 14px; flex: none; background: var(--surface-sunken); border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); } .tk-status__sp { flex: 1; } .tk-status b { color: var(--ink); font-weight: 500; } `; const el = document.createElement('style'); el.id = 'tecto-kit-chrome-css'; el.textContent = css; document.head.appendChild(el); })(); function Logo({ word = true }) { return ( {word && Tecto} ); } function TopBar({ crumb, theme, onToggleTheme }) { const I = window.TectoIcons; const { IconButton, Tooltip } = window.TectoDS; return (
{(crumb || []).map((c, i) => ( {i > 0 && } {i === crumb.length - 1 ? {c} : {c}} ))}
} /> : } onClick={onToggleTheme} /> T
); } function LeftRail({ view, setView, onLogout }) { const I = window.TectoIcons; const { Tooltip } = window.TectoDS; const items = [ { id: 'docs', label: 'Documentos', icon: I.Folder }, { id: 'templates', label: 'Plantillas', icon: I.Layout }, { id: 'assets', label: 'Assets', icon: I.Image }, { id: 'libre', label: 'Editor libre .tex', icon: I.Type }, { id: 'docview', label: 'Documentación', icon: I.FileText }, ]; return (
{items.map((it) => ( ))}
); } function StatusBar({ engine }) { return (
Tectonic 0.15 {engine} UTF-8 LaTeX
Ln 23, Col 4 112 palabras main.tex · guardado
); } window.TectoChrome = { Logo, TopBar, LeftRail, StatusBar };