// cards.jsx — CourseCard + TestimonialCard (function () { const Icon = window.Icon; const { Placeholder, Stars } = window; const CAT_LABEL = { design: "Design & Creative", marketing: "Digital Marketing", cad: "CAD & 3D", it: "IT Fundamentals", }; function CourseCard({ course, navigate, compact }) { const c = course; return ( { e.preventDefault(); navigate("course", c.slug); }} className="course-card card" style={{ display: "flex", flexDirection: "column", overflow: "hidden", textAlign: "left", cursor: "pointer" }}> {CAT_LABEL[c.cat]} {c.featured && ( Featured )} {c.title} {c.tagline} {c.duration} {c.lessons} lessons {c.fee} View details ); } function TestimonialCard({ t, featured }) { return ( "{t.quote}" {t.name} {t.course} Graduate ); } Object.assign(window, { CourseCard, TestimonialCard, CAT_LABEL }); })();
{c.tagline}
"{t.quote}"