// Home page: hero, course overview, modules preview, who-for, about, services, testimonials, FAQ, newsletter. const { useState, useEffect } = React; const HOME_DEFAULTS = /*EDITMODE-BEGIN*/{ "heroLayout": "centered", "moduleCardStyle": "icon", "themeColor": "navy", "density": "comfortable", "showTestimonials": true, "showFAQ": true, "ctaPrimary": "Start learning", "ctaSecondary": "Browse modules" } /*EDITMODE-END*/; function HomeApp() { const [tweaks, setTweak] = useTweaks(HOME_DEFAULTS); useLucideIcons([tweaks]); useTweakBodyClasses(tweaks); const previewModules = SITE.MODULES.slice(0, 6); const [openFaq, setOpenFaq] = useState(0); const isEN = (window.CURRENT_LANG || "en") === "en"; const ctaPrimary = isEN ? tweaks.ctaPrimary : t("cta.startLearning"); const ctaSecondary = isEN ? tweaks.ctaSecondary : t("cta.browseModules"); return ( <> {tweaks.heroLayout === "split" ?
Cross-functional PMO team reviewing a portfolio roadmap on a large screen
{t("home.heroEyebrow")}

{t("home.heroTitle")}

{t("home.heroSub")}

{ctaPrimary} {ctaSecondary}
{t("home.heroBadgeModules")}
{t("home.heroBadgeTemplates")}
:
Cross-functional PMO team reviewing a portfolio roadmap on a large screen
{t("home.heroEyebrow")}

{t("home.heroTitle")}

{t("home.heroSub")}

{ctaPrimary} {ctaSecondary}
}

{t("home.overviewTitle")}

{t("home.overviewSub")}

{t("home.overviewBody")}

{t("home.overviewCheck1")}
{t("home.overviewCheck2")}
{t("home.overviewCheck3")}
{t("home.overviewCheck4")}
{ctaPrimary}
{t("home.audienceEyebrow")}

{t("home.audienceTitle")}

{t("home.audience1Title")}

{t("home.audience1Body")}

{t("home.audience2Title")}

{t("home.audience2Body")}

{t("home.audience3Title")}

{t("home.audience3Body")}

{t("home.audience4Title")}

{t("home.audience4Body")}

{t("home.aboutEyebrow")}

{t("home.aboutTitle")}

{t("home.aboutBody")}

{t("cta.readMoreAbout")}
{tweaks.showTestimonials &&
{t("home.testimonialsEyebrow")}

{t("home.testimonialsTitle")}

{SITE.TESTIMONIALS.map((t2, i) =>

"{tx(t2, "quote")}"

{t2.name.split(" ").map((s) => s[0]).join("")}
{t2.name}
{tx(t2, "role")}
)}
} {tweaks.showFAQ &&
{t("home.faqEyebrow")}

{t("home.faqTitle")}

{SITE.FAQS.map((f, i) =>
{(tx(f, "aHtml")) ? : tx(f, "a")}
)}
}

{t("home.newsletterTitle")}

{t("home.newsletterBody")}

{e.preventDefault();alert(t("home.newsletterThanks"));}}>
setTweak("heroLayout", v)} options={[ { value: "centered", label: "Centered" }, { value: "split", label: "Split" }] } /> setTweak("moduleCardStyle", v)} options={[ { value: "icon", label: "Icon-led" }, { value: "numbered", label: "Numbered" }] } /> setTweak("density", v)} options={[ { value: "comfortable", label: "Comfortable" }, { value: "compact", label: "Compact" }] } /> setTweak("themeColor", v)} options={[ { value: "navy", label: "Navy" }, { value: "graphite", label: "Graphite" }, { value: "emerald", label: "Emerald" }, { value: "gold", label: "Gold" }] } /> setTweak("showTestimonials", v)} /> setTweak("showFAQ", v)} /> setTweak("ctaPrimary", v)} /> setTweak("ctaSecondary", v)} /> ); } window.HomeApp = HomeApp;