/* ============================================================ EDITORIAL INDEX — bottom sections ============================================================ */ function Services({ c }) { const s = c.services; const card = s.cards[0]; return (
Nº 04

{s.label}

{s.h2a} {s.h2bItalic}

Ema {card.meta} {card.tag}

{card.lead.split(/(?<=\.)\s+/).map((ln, i, arr) => ( {ln}{i < arr.length - 1 &&
}
))}

{card.body}

{card.accent &&
{card.accent}
}
{card.cta} {c.services.note}
); } function HowItWorks({ c }) { const w = c.how; return (
Nº 03

{w.label}

{w.h2a} {w.h2b}

{w.sub}

{w.steps.map((st, i) => (
0{i + 1}

{st.title}

{st.body}

))}
{w.cta} {w.micro}
); } function Voices({ c }) { const t = c.testimonials; return (
Nº 05

{t.label}

{t.h2a} {t.h2bItalic}

{t.items.map((it, i) => (

{it.quote}

{it.who} {it.what}
))}
); } function Investment({ c, lang }) { const inv = c.investment; return (
Nº 06

{inv.label}

{inv.h2a} {inv.h2bItalic}

{inv.blocks.map((bl, i) => ( {bl.badge && {bl.badge}}

{bl.title}

{bl.price}{bl.unit}
    {bl.items.map((it, j) =>
  • {it}
  • )}
{bl.cta}
))}

{inv.footer1}

{inv.footer2}

); } function FinalCta({ c, lang }) { const f = c.finalCta; const [status, setStatus] = useState("idle"); const [form, setForm] = useState({ name: "", email: "", message: "" }); const L = (lang === "en") ? { name: "Name", email: "Email", msg: "Message (optional)", send: "Let's connect", sending: "Sending…", ok: "Sent! I'll be in touch soon.", err: "Error — please try again." } : { name: "Vardas", email: "El. paštas", msg: "Žinutė (neprivaloma)", send: "Susitarkime", sending: "Siunčiama…", ok: "Išsiųsta! Susisieksiu greitai.", err: "Klaida — bandyk dar kartą." }; const inputStyle = { background: "rgba(241,238,230,0.10)", border: "1px solid rgba(241,238,230,0.25)", color: "var(--paper)", padding: "12px 16px", fontFamily: "var(--sans)", fontSize: "15px", outline: "none", borderRadius: "1px", width: "100%", boxSizing: "border-box" }; const submit = async (e) => { e.preventDefault(); if (!form.name || !form.email) return; setStatus("sending"); try { const res = await fetch("https://api.v2x.lt/promax/leads", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ slug: "ema-sakalauskaityte", language: lang, name: form.name, email: form.email, message: form.message }), }); if (res.ok) { setStatus("ok"); return; } } catch(e) {} // fallback try { await fetch("https://formsubmit.co/ajax/labas@ema.lt", { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json" }, body: JSON.stringify({ name: form.name, email: form.email, message: form.message }), }); } catch(e2) {} setStatus("ok"); }; return (
Ema

Nº 07 — {c.nav.cta}

ema.v2x.lt

{f.h2a}
{f.h2bItalic}

{status === "ok" ? (

{L.ok}

) : (
setForm(f => ({...f, name: e.target.value}))} style={inputStyle} /> setForm(f => ({...f, email: e.target.value}))} style={inputStyle} />