hi

Hi! How can I help you today?

Create PPT on cancer

Asking for Preferences
Reading File
Reading File
Running Command

ls -la /home/daytona/workspace/ 2>/dev/null && mkdir -p /home/daytona/workspace/cancer-ppt

Writing File

~/cancer-ppt/create_cancer_ppt.js

const pptxgen = require("pptxgenjs");

const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Understanding Cancer";
pres.author = "Orris Health";

// ── Color Palette ──
const BG_DARK   = "0D1B2A";  // deep navy
const BG_MID    = "1B2A3B";  // mid navy
const ACCENT    = "E84855";  // bold red-coral (cancer ribbon feel)
const ACCENT2   = "F5A623";  // warm amber
const WHITE     = "FFFFFF";
const LIGHT     = "D0E4F7";  // soft blue-white
const GRAY      = "8FA8C0";

// ─────────────────────────────────────────────────────────────
// Slide 1 – Title
// ─────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  // full dark background
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: BG_DARK } });
  // accent ribbon bar left
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.18, h: 5.625, fill: { color: ACCENT } });
  // decorative circle top-right
  s.addShape(pres.ShapeType.ellipse, { x: 7.8, y: -1.2, w: 3.5, h: 3.5, fill: { color: BG_MID }, line: { color: BG_MID } });
  s.addShape(pres.ShapeType.ellipse, { x: 8.2, y: -0.8, w: 2.5, h: 2.5, fill: { color: ACCENT }, line: { color: ACCENT } });

  // Tag line
  s.addText("HEALTH EDUCATION SERIES", {
    x: 0.4, y: 1.05, w: 7, h: 0.35,
    fontSize: 9, color: ACCENT, bold: true, charSpacing: 4, fontFace: "Calibri"
  });

  // Main title
  s.addText("Understanding\nCancer", {
    x: 0.4, y: 1.45, w: 8.5, h: 2.2,
    fontSize: 52, color: WHITE, bold: true, fontFace: "Calibri", lineSpacingMultiple: 1.1
  });

  // Subtitle
  s.addText("Types · Causes · Symptoms · Treatment", {
    x: 0.4, y: 3.7, w: 7, h: 0.5,
    fontSize: 15, color: LIGHT, fontFace: "Calibri"
  });

  // Bottom bar
  s.addShape(pres.ShapeType.rect, { x: 0, y: 5.25, w: 10, h: 0.375, fill: { color: ACCENT } });
  s.addText("For the General Public  |  June 2026", {
    x: 0.3, y: 5.26, w: 9.4, h: 0.35,
    fontSize: 9, color: WHITE, fontFace: "Calibri", align: "right"
  });
}

// ─────────────────────────────────────────────────────────────
// Slide 2 – What Is Cancer?
// ─────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: BG_DARK } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.72, fill: { color: BG_MID } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0.72, w: 10, h: 0.06, fill: { color: ACCENT } });

  s.addText("What Is Cancer?", { x: 0.45, y: 0.1, w: 9, h: 0.55, fontSize: 26, bold: true, color: WHITE, fontFace: "Calibri" });

  // Definition box
  s.addShape(pres.ShapeType.rect, { x: 0.4, y: 0.9, w: 9.2, h: 1.1, fill: { color: BG_MID }, line: { color: ACCENT, pt: 1.5 } });
  s.addText("Cancer is a group of diseases in which abnormal cells grow and multiply uncontrollably, invade surrounding tissues, and can spread to other parts of the body.", {
    x: 0.55, y: 0.95, w: 8.9, h: 1.0,
    fontSize: 13, color: LIGHT, fontFace: "Calibri", valign: "middle"
  });

  // 3 key facts
  const facts = [
    { icon: "🔬", title: "Uncontrolled Growth", body: "Normal cells divide in an orderly way. Cancer cells ignore these controls and keep multiplying." },
    { icon: "📍", title: "Tumor Formation", body: "Most cancers form a solid mass called a tumor, except blood cancers like leukemia." },
    { icon: "🌐", title: "Metastasis", body: "Cancer can spread (metastasize) through blood or lymph to distant organs, making treatment harder." },
  ];
  facts.forEach((f, i) => {
    const x = 0.25 + i * 3.2;
    s.addShape(pres.ShapeType.rect, { x, y: 2.15, w: 3.0, h: 2.8, fill: { color: BG_MID }, line: { color: GRAY, pt: 0.5 }, rectRadius: 0.08 });
    s.addText(f.icon, { x, y: 2.25, w: 3.0, h: 0.55, fontSize: 22, align: "center", fontFace: "Segoe UI Emoji" });
    s.addText(f.title, { x: x + 0.12, y: 2.82, w: 2.76, h: 0.4, fontSize: 12, bold: true, color: ACCENT2, fontFace: "Calibri", align: "center" });
    s.addText(f.body, { x: x + 0.1, y: 3.25, w: 2.8, h: 1.6, fontSize: 10.5, color: LIGHT, fontFace: "Calibri", valign: "top", wrap: true });
  });
}

// ─────────────────────────────────────────────────────────────
// Slide 3 – Common Types of Cancer
// ─────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: BG_DARK } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.72, fill: { color: BG_MID } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0.72, w: 10, h: 0.06, fill: { color: ACCENT } });
  s.addText("Common Types of Cancer", { x: 0.45, y: 0.1, w: 9, h: 0.55, fontSize: 26, bold: true, color: WHITE, fontFace: "Calibri" });

  const types = [
    { name: "Breast Cancer", icon: "🎀", note: "Most common in women worldwide" },
    { name: "Lung Cancer", icon: "🫁", note: "Leading cause of cancer deaths globally" },
    { name: "Colorectal Cancer", icon: "🩺", note: "3rd most common cancer overall" },
    { name: "Prostate Cancer", icon: "🔵", note: "Most common in men over 50" },
    { name: "Skin Cancer", icon: "☀️", note: "Most common of all cancers; often preventable" },
    { name: "Leukemia", icon: "🩸", note: "Cancer of the blood and bone marrow" },
    { name: "Cervical Cancer", icon: "🌸", note: "Largely preventable with HPV vaccine" },
    { name: "Brain Cancer", icon: "🧠", note: "Includes gliomas and meningiomas" },
  ];

  types.forEach((t, i) => {
    const col = i % 4;
    const row = Math.floor(i / 4);
    const x = 0.3 + col * 2.38;
    const y = 1.0 + row * 2.1;
    s.addShape(pres.ShapeType.rect, { x, y, w: 2.15, h: 1.85, fill: { color: BG_MID }, line: { color: GRAY, pt: 0.5 }, rectRadius: 0.08 });
    s.addText(t.icon, { x, y: y + 0.12, w: 2.15, h: 0.55, fontSize: 22, align: "center", fontFace: "Segoe UI Emoji" });
    s.addText(t.name, { x: x + 0.08, y: y + 0.7, w: 1.99, h: 0.38, fontSize: 10.5, bold: true, color: WHITE, fontFace: "Calibri", align: "center" });
    s.addText(t.note, { x: x + 0.08, y: y + 1.1, w: 1.99, h: 0.65, fontSize: 8.5, color: GRAY, fontFace: "Calibri", align: "center", wrap: true });
  });
}

// ─────────────────────────────────────────────────────────────
// Slide 4 – Risk Factors & Causes
// ─────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: BG_DARK } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.72, fill: { color: BG_MID } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0.72, w: 10, h: 0.06, fill: { color: ACCENT } });
  s.addText("Risk Factors & Causes", { x: 0.45, y: 0.1, w: 9, h: 0.55, fontSize: 26, bold: true, color: WHITE, fontFace: "Calibri" });

  // Left column – modifiable
  s.addShape(pres.ShapeType.rect, { x: 0.3, y: 0.88, w: 4.4, h: 0.4, fill: { color: ACCENT }, rectRadius: 0.05 });
  s.addText("⚠  Modifiable Risk Factors", { x: 0.35, y: 0.89, w: 4.3, h: 0.38, fontSize: 12, bold: true, color: WHITE, fontFace: "Calibri", margin: 0 });

  const modifiable = [
    "🚬  Tobacco & smoking",
    "🍷  Alcohol consumption",
    "🍔  Poor diet (processed foods, low fiber)",
    "🛋  Physical inactivity",
    "☀️  UV/radiation exposure",
    "🦠  Certain infections (HPV, Hepatitis B/C)",
  ];
  modifiable.forEach((item, i) => {
    s.addText(item, { x: 0.45, y: 1.38 + i * 0.55, w: 4.1, h: 0.48, fontSize: 11.5, color: LIGHT, fontFace: "Calibri" });
  });

  // Right column – non-modifiable
  s.addShape(pres.ShapeType.rect, { x: 5.3, y: 0.88, w: 4.4, h: 0.4, fill: { color: "4A6FA5" }, rectRadius: 0.05 });
  s.addText("🧬  Non-Modifiable Factors", { x: 5.35, y: 0.89, w: 4.3, h: 0.38, fontSize: 12, bold: true, color: WHITE, fontFace: "Calibri", margin: 0 });

  const nonmod = [
    "🧬  Genetic mutations (BRCA1/2, etc.)",
    "👴  Increasing age",
    "👨‍👩‍👧  Family history of cancer",
    "⚧  Sex (some cancers are sex-linked)",
    "🌍  Ethnicity & geographic factors",
  ];
  nonmod.forEach((item, i) => {
    s.addText(item, { x: 5.4, y: 1.38 + i * 0.55, w: 4.1, h: 0.48, fontSize: 11.5, color: LIGHT, fontFace: "Calibri" });
  });

  // Divider
  s.addShape(pres.ShapeType.line, { x: 5.0, y: 0.9, w: 0, h: 4.3, line: { color: GRAY, pt: 0.8 } });
}

// ─────────────────────────────────────────────────────────────
// Slide 5 – Warning Signs & Symptoms
// ─────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: BG_DARK } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.72, fill: { color: BG_MID } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0.72, w: 10, h: 0.06, fill: { color: ACCENT } });
  s.addText("Warning Signs & Symptoms", { x: 0.45, y: 0.1, w: 9, h: 0.55, fontSize: 26, bold: true, color: WHITE, fontFace: "Calibri" });

  s.addText("Remember CAUTION — a helpful acronym:", {
    x: 0.45, y: 0.88, w: 9, h: 0.38, fontSize: 13, color: ACCENT2, fontFace: "Calibri", bold: true
  });

  const caution = [
    { letter: "C", word: "hange in bowel or bladder habits" },
    { letter: "A", word: " sore that doesn't heal" },
    { letter: "U", word: "nusual bleeding or discharge" },
    { letter: "T", word: "hickening or lump in breast or elsewhere" },
    { letter: "I", word: "ndigestion or difficulty swallowing" },
    { letter: "O", word: "bvious changes in wart or mole" },
    { letter: "N", word: "agging cough or hoarseness" },
  ];

  caution.forEach((c, i) => {
    const y = 1.35 + i * 0.57;
    s.addShape(pres.ShapeType.rect, { x: 0.4, y, w: 0.44, h: 0.44, fill: { color: ACCENT }, rectRadius: 0.04 });
    s.addText(c.letter, { x: 0.4, y, w: 0.44, h: 0.44, fontSize: 16, bold: true, color: WHITE, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 });
    s.addText(c.word, { x: 0.95, y: y + 0.02, w: 8.6, h: 0.4, fontSize: 12, color: LIGHT, fontFace: "Calibri", valign: "middle" });
  });
}

// ─────────────────────────────────────────────────────────────
// Slide 6 – Diagnosis
// ─────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: BG_DARK } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.72, fill: { color: BG_MID } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0.72, w: 10, h: 0.06, fill: { color: ACCENT } });
  s.addText("How Is Cancer Diagnosed?", { x: 0.45, y: 0.1, w: 9, h: 0.55, fontSize: 26, bold: true, color: WHITE, fontFace: "Calibri" });

  const steps = [
    { num: "01", title: "Physical Exam", desc: "Doctor examines the body for lumps, skin changes, or organ enlargement." },
    { num: "02", title: "Lab Tests", desc: "Blood, urine, or tissue tests check for abnormal cells or cancer markers." },
    { num: "03", title: "Imaging", desc: "X-ray, CT scan, MRI, PET scan, or ultrasound visualizes tumors inside the body." },
    { num: "04", title: "Biopsy", desc: "A tissue sample is removed and examined under a microscope — the gold standard for diagnosis." },
    { num: "05", title: "Staging", desc: "Stages I-IV describe how far cancer has spread; stage guides treatment planning." },
  ];

  steps.forEach((step, i) => {
    const y = 0.98 + i * 0.87;
    s.addShape(pres.ShapeType.rect, { x: 0.3, y, w: 9.4, h: 0.76, fill: { color: BG_MID }, line: { color: GRAY, pt: 0.4 }, rectRadius: 0.06 });
    s.addShape(pres.ShapeType.rect, { x: 0.3, y, w: 0.78, h: 0.76, fill: { color: ACCENT }, rectRadius: 0.06 });
    s.addText(step.num, { x: 0.3, y, w: 0.78, h: 0.76, fontSize: 18, bold: true, color: WHITE, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 });
    s.addText(step.title, { x: 1.2, y: y + 0.06, w: 2.2, h: 0.35, fontSize: 12, bold: true, color: ACCENT2, fontFace: "Calibri" });
    s.addText(step.desc, { x: 1.2, y: y + 0.38, w: 8.3, h: 0.3, fontSize: 10.5, color: LIGHT, fontFace: "Calibri" });
  });
}

// ─────────────────────────────────────────────────────────────
// Slide 7 – Treatment Options
// ─────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: BG_DARK } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.72, fill: { color: BG_MID } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0.72, w: 10, h: 0.06, fill: { color: ACCENT } });
  s.addText("Treatment Options", { x: 0.45, y: 0.1, w: 9, h: 0.55, fontSize: 26, bold: true, color: WHITE, fontFace: "Calibri" });

  const treatments = [
    { icon: "🔪", name: "Surgery", desc: "Removes the tumor and surrounding tissue. Often the first step for solid tumors." },
    { icon: "☢️", name: "Radiation", desc: "High-energy rays destroy cancer DNA, shrinking or eliminating tumors." },
    { icon: "💊", name: "Chemotherapy", desc: "Drugs kill fast-dividing cells throughout the body; may cause side effects." },
    { icon: "🎯", name: "Targeted Therapy", desc: "Drugs that target specific cancer-cell proteins, with fewer side effects." },
    { icon: "🛡️", name: "Immunotherapy", desc: "Boosts the immune system to recognize and attack cancer cells." },
    { icon: "🧬", name: "Hormone Therapy", desc: "Blocks hormones that fuel certain cancers (breast, prostate)." },
  ];

  treatments.forEach((t, i) => {
    const col = i % 3;
    const row = Math.floor(i / 3);
    const x = 0.28 + col * 3.18;
    const y = 0.88 + row * 2.25;
    s.addShape(pres.ShapeType.rect, { x, y, w: 2.95, h: 2.05, fill: { color: BG_MID }, line: { color: GRAY, pt: 0.5 }, rectRadius: 0.08 });
    // top color bar
    s.addShape(pres.ShapeType.rect, { x, y, w: 2.95, h: 0.14, fill: { color: ACCENT }, rectRadius: 0.08 });
    s.addText(t.icon, { x, y: y + 0.16, w: 2.95, h: 0.5, fontSize: 22, align: "center", fontFace: "Segoe UI Emoji" });
    s.addText(t.name, { x: x + 0.1, y: y + 0.68, w: 2.75, h: 0.36, fontSize: 12, bold: true, color: ACCENT2, fontFace: "Calibri", align: "center" });
    s.addText(t.desc, { x: x + 0.1, y: y + 1.05, w: 2.75, h: 0.9, fontSize: 9.5, color: LIGHT, fontFace: "Calibri", align: "center", wrap: true });
  });
}

// ─────────────────────────────────────────────────────────────
// Slide 8 – Prevention & Screening
// ─────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: BG_DARK } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.72, fill: { color: BG_MID } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0.72, w: 10, h: 0.06, fill: { color: ACCENT } });
  s.addText("Prevention & Screening", { x: 0.45, y: 0.1, w: 9, h: 0.55, fontSize: 26, bold: true, color: WHITE, fontFace: "Calibri" });

  // Left: Prevention tips
  s.addText("Prevention Tips", { x: 0.4, y: 0.88, w: 4.3, h: 0.4, fontSize: 14, bold: true, color: ACCENT2, fontFace: "Calibri" });
  const tips = [
    "✅  Don't smoke — avoid all tobacco products",
    "✅  Eat a healthy, plant-rich diet",
    "✅  Exercise regularly (30+ min/day)",
    "✅  Maintain a healthy body weight",
    "✅  Limit alcohol intake",
    "✅  Use sunscreen; avoid tanning beds",
    "✅  Get vaccinated (HPV, Hepatitis B)",
  ];
  tips.forEach((tip, i) => {
    s.addText(tip, { x: 0.4, y: 1.38 + i * 0.53, w: 4.3, h: 0.46, fontSize: 11, color: LIGHT, fontFace: "Calibri" });
  });

  // Divider
  s.addShape(pres.ShapeType.line, { x: 5.0, y: 0.88, w: 0, h: 4.3, line: { color: GRAY, pt: 0.8 } });

  // Right: Screening
  s.addText("Recommended Screenings", { x: 5.15, y: 0.88, w: 4.6, h: 0.4, fontSize: 14, bold: true, color: ACCENT2, fontFace: "Calibri" });
  const screens = [
    { cancer: "Breast", test: "Mammogram — age 40-74, every 1-2 yrs" },
    { cancer: "Cervical", test: "Pap smear + HPV test — age 21-65" },
    { cancer: "Colorectal", test: "Colonoscopy — starting age 45" },
    { cancer: "Lung", test: "Low-dose CT — high-risk smokers, 50-80 yrs" },
    { cancer: "Prostate", test: "PSA blood test — discuss with doctor 50+" },
    { cancer: "Skin", test: "Annual skin exam by dermatologist" },
  ];
  screens.forEach((sc, i) => {
    const y = 1.38 + i * 0.65;
    s.addShape(pres.ShapeType.rect, { x: 5.15, y, w: 4.55, h: 0.58, fill: { color: BG_MID }, line: { color: GRAY, pt: 0.4 }, rectRadius: 0.05 });
    s.addText(sc.cancer, { x: 5.25, y: y + 0.04, w: 1.1, h: 0.25, fontSize: 10, bold: true, color: ACCENT, fontFace: "Calibri" });
    s.addText(sc.test, { x: 5.25, y: y + 0.28, w: 4.3, h: 0.25, fontSize: 9.5, color: LIGHT, fontFace: "Calibri" });
  });
}

// ─────────────────────────────────────────────────────────────
// Slide 9 – Key Statistics
// ─────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: BG_DARK } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.72, fill: { color: BG_MID } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0.72, w: 10, h: 0.06, fill: { color: ACCENT } });
  s.addText("Cancer by the Numbers", { x: 0.45, y: 0.1, w: 9, h: 0.55, fontSize: 26, bold: true, color: WHITE, fontFace: "Calibri" });

  const stats = [
    { num: "20M+",   label: "New cancer cases\ndiagnosed globally each year" },
    { num: "9.7M",   label: "Cancer-related deaths\nworldwide annually (WHO, 2022)" },
    { num: "1 in 5", label: "People will develop cancer\nat some point in their lifetime" },
    { num: "~40%",   label: "Of cancers are preventable\nthrough lifestyle changes" },
  ];

  stats.forEach((st, i) => {
    const col = i % 2;
    const row = Math.floor(i / 2);
    const x = 0.5 + col * 4.85;
    const y = 0.92 + row * 2.2;
    s.addShape(pres.ShapeType.rect, { x, y, w: 4.35, h: 2.0, fill: { color: BG_MID }, line: { color: ACCENT, pt: 1 }, rectRadius: 0.1 });
    s.addText(st.num, { x, y: y + 0.2, w: 4.35, h: 0.9, fontSize: 38, bold: true, color: ACCENT, fontFace: "Calibri", align: "center" });
    s.addText(st.label, { x: x + 0.15, y: y + 1.1, w: 4.05, h: 0.78, fontSize: 12, color: LIGHT, fontFace: "Calibri", align: "center", wrap: true });
  });
}

// ─────────────────────────────────────────────────────────────
// Slide 10 – Key Takeaways & Resources
// ─────────────────────────────────────────────────────────────
{
  const s = pres.addSlide();
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: BG_DARK } });
  // Bottom half accent
  s.addShape(pres.ShapeType.rect, { x: 0, y: 4.1, w: 10, h: 1.525, fill: { color: BG_MID } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 4.1, w: 10, h: 0.06, fill: { color: ACCENT } });

  // Header
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.72, fill: { color: BG_MID } });
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0.72, w: 10, h: 0.06, fill: { color: ACCENT } });
  s.addText("Key Takeaways", { x: 0.45, y: 0.1, w: 9, h: 0.55, fontSize: 26, bold: true, color: WHITE, fontFace: "Calibri" });

  const takeaways = [
    "Cancer is a broad term for many diseases — not a single illness.",
    "Up to 40% of cancers can be prevented by adopting a healthy lifestyle.",
    "Early detection saves lives — know the warning signs and get screened.",
    "Modern treatments are improving survival rates for many cancer types.",
    "Support your loved ones — emotional health is part of cancer care.",
  ];

  takeaways.forEach((t, i) => {
    const y = 0.92 + i * 0.6;
    s.addShape(pres.ShapeType.rect, { x: 0.38, y: y + 0.1, w: 0.3, h: 0.3, fill: { color: ACCENT }, rectRadius: 0.04 });
    s.addText("✓", { x: 0.38, y: y + 0.1, w: 0.3, h: 0.3, fontSize: 11, bold: true, color: WHITE, fontFace: "Calibri", align: "center", valign: "middle", margin: 0 });
    s.addText(t, { x: 0.82, y, w: 8.8, h: 0.5, fontSize: 12.5, color: LIGHT, fontFace: "Calibri", valign: "middle" });
  });

  // Resources footer
  s.addText("Trusted Resources", { x: 0.45, y: 4.18, w: 9, h: 0.35, fontSize: 12, bold: true, color: ACCENT2, fontFace: "Calibri" });
  s.addText("WHO Cancer Information: who.int/cancer   |   American Cancer Society: cancer.org   |   National Cancer Institute: cancer.gov", {
    x: 0.45, y: 4.55, w: 9.1, h: 0.5, fontSize: 10, color: GRAY, fontFace: "Calibri"
  });
  s.addText("Orris Health Education  •  June 2026", { x: 0.45, y: 5.18, w: 9.1, h: 0.35, fontSize: 9, color: GRAY, fontFace: "Calibri", align: "right" });
}

// ─────────────────────────────────────────────────────────────
// Save
// ─────────────────────────────────────────────────────────────
const outPath = "/home/daytona/workspace/cancer-ppt/Understanding_Cancer.pptx";
pres.writeFile({ fileName: outPath })
  .then(() => console.log("SUCCESS: " + outPath))
  .catch(e => { console.error("ERROR:", e); process.exit(1); });
Running Command

cd /home/daytona/workspace/cancer-ppt && node create_cancer_ppt.js

Your presentation is ready! Download it here:

Understanding Cancer

Presentation · PPTX


Here's what's inside the 10-slide deck (deep navy + red-coral theme, designed for a general audience):
#SlideContent
1TitleBold cover with accent ribbon bar
2What Is Cancer?Definition + 3 key concepts (growth, tumors, metastasis)
3Common Types8 cancer types in a card grid (breast, lung, colorectal, etc.)
4Risk Factors & CausesModifiable vs. non-modifiable factors side-by-side
5Warning SignsCAUTION acronym — 7 symptoms to watch
6How It's Diagnosed5-step numbered flow (exam → labs → imaging → biopsy → staging)
7Treatment Options6 treatment types in card layout (surgery, chemo, immunotherapy, etc.)
8Prevention & ScreeningLifestyle tips + recommended screenings by cancer type
9Key Statistics4 global stats (WHO 2022 data)
10Takeaways & Resources5 key messages + WHO / ACS / NCI links

Now care a pdf of it

Reading File
Running Command

libreoffice --headless --convert-to pdf /home/daytona/workspace/cancer-ppt/Understanding_Cancer.pptx --outdir /home/daytona/workspace/cancer-ppt/ 2>&1

Running Command

cp /home/daytona/workspace/cancer-ppt/Understanding_Cancer.pptx /tmp/Understanding_Cancer.pptx && libreoffice --headless --convert-to pdf /tmp/Understanding_Cancer.pptx --outdir /tmp/ 2>&1 && cp /tmp/Understanding_Cancer.pdf /home/daytona/workspace/cancer-ppt/Understanding_Cancer.pdf && echo "DONE"

Running Command

ls -lh /home/daytona/workspace/cancer-ppt/Understanding_Cancer.pdf

Your PDF is ready! Download it here:

Understanding Cancer

PDF Document · PDF

It's a 10-page PDF converted directly from the PPTX, preserving all the slides, colors, and layout. Both files are in the same folder if you need either format.
This is a shared conversation. Sign in to Orris to start your own chat.