/* ============================================================ Shared site index (Turinys overlay) for sub-pages Links point back to the main one-pager's sections. ============================================================ */ const HOME = "index.html"; const PAGE_INDEX = { lt: [ { n: "01", t: "Apie", href: HOME + "#about", m: "Kas aš esu" }, { n: "02", t: "Mintys", href: "blog.html", m: "Blogas" }, { n: "03", t: "Kaip pradėti", href: HOME + "#how", m: "Procesas" }, { n: "04", t: "Konsultacija", href: HOME + "#services", m: "Paslaugos" }, { n: "05", t: "Atsiliepimai", href: HOME + "#voices", m: "Žmonės" }, { n: "06", t: "Investicija", href: HOME + "#investment", m: "Kainos" }, { n: "07", t: "Susisiekti", href: HOME + "#contact", m: "Pradžia" } ], en: [ { n: "01", t: "About", href: HOME + "#about", m: "Who I am" }, { n: "02", t: "Reflections", href: "blog.html", m: "Blog" }, { n: "03", t: "How I Work", href: HOME + "#how", m: "The process" }, { n: "04", t: "Sessions", href: HOME + "#services", m: "Services" }, { n: "05", t: "Voices", href: HOME + "#voices", m: "People" }, { n: "06", t: "Investment", href: HOME + "#investment", m: "Pricing" }, { n: "07", t: "Get in touch", href: HOME + "#contact", m: "Begin" } ] }; function SiteIndex({ lang }) { const [open, setOpen] = React.useState(false); React.useEffect(() => { document.body.style.overflow = open ? "hidden" : ""; }, [open]); React.useEffect(() => { const k = (e) => { if (e.key === "Escape") setOpen(false); }; document.addEventListener("keydown", k); return () => document.removeEventListener("keydown", k); }, []); const items = PAGE_INDEX[lang] || PAGE_INDEX.lt; const overlay = (
{lang === "lt" ? "Turinys — ema.v2x.lt" : "Index — ema.v2x.lt"}
{lang === "lt" ? "Archetipai · Sąmoningumas · Savęs pažinimas" : "Archetypes · Consciousness · Self-knowledge"} Est. 10+ {lang === "lt" ? "metų" : "yrs"}
); return ( {ReactDOM.createPortal(overlay, document.body)} ); } function Colophon({ c, lang, setLang, base = "" }) { const f = c.footer; return ( ); } Object.assign(window, { SiteIndex, Colophon });