Make a ppt on first aid Add these Title:-First aid Name Parveen Garg Roll no 100
mkdir -p /home/daytona/workspace/first-aid-ppt
~/first-aid-ppt/create_ppt.js
const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "First Aid";
pres.author = "Parveen Garg";
// ─────────────────────────────────────────
// COLOR PALETTE
// ─────────────────────────────────────────
const RED = "C0392B";
const DARK = "1A1A2E";
const WHITE = "FFFFFF";
const LIGHT = "F5F5F5";
const ACCENT = "E74C3C";
const CREAM = "FDECEA";
const GRAY = "7F8C8D";
const MIDGRAY = "BDC3C7";
// ─────────────────────────────────────────
// SLIDE 1 – TITLE SLIDE
// ─────────────────────────────────────────
{
const s = pres.addSlide();
// Dark background
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: DARK } });
// Red accent bar left
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.35, h: 5.625, fill: { color: RED } });
// Red cross symbol (two overlapping rects)
s.addShape(pres.ShapeType.rect, { x: 7.8, y: 1.0, w: 1.6, h: 0.5, fill: { color: RED }, line: { color: RED } });
s.addShape(pres.ShapeType.rect, { x: 8.35, y: 0.45, w: 0.5, h: 1.6, fill: { color: RED }, line: { color: RED } });
// Title
s.addText("FIRST AID", {
x: 0.7, y: 1.3, w: 6.8, h: 1.2,
fontSize: 60, bold: true, color: WHITE,
fontFace: "Calibri", align: "left",
charSpacing: 6,
});
// Subtitle
s.addText("Emergency Care & Life-Saving Techniques", {
x: 0.7, y: 2.5, w: 7.5, h: 0.55,
fontSize: 20, color: MIDGRAY,
fontFace: "Calibri", align: "left",
});
// Divider line
s.addShape(pres.ShapeType.line, {
x: 0.7, y: 3.2, w: 7.0, h: 0,
line: { color: RED, width: 2 },
});
// Name & Roll No
s.addText([
{ text: "Parveen Garg", options: { bold: true, color: WHITE, fontSize: 18 } },
{ text: " | Roll No: 100", options: { color: MIDGRAY, fontSize: 16 } },
], {
x: 0.7, y: 3.5, w: 7.5, h: 0.5,
fontFace: "Calibri", align: "left",
});
s.addText("July 2026", {
x: 0.7, y: 4.1, w: 7.5, h: 0.4,
fontSize: 13, color: GRAY, fontFace: "Calibri", align: "left",
});
}
// ─────────────────────────────────────────
// SLIDE 2 – WHAT IS FIRST AID?
// ─────────────────────────────────────────
{
const s = pres.addSlide();
// Light background
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: LIGHT } });
// Top red header band
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.05, fill: { color: RED } });
s.addText("What is First Aid?", {
x: 0.4, y: 0.12, w: 9, h: 0.8,
fontSize: 32, bold: true, color: WHITE, fontFace: "Calibri",
});
// Definition box
s.addShape(pres.ShapeType.rect, { x: 0.4, y: 1.3, w: 9.2, h: 1.1, fill: { color: CREAM }, line: { color: RED, width: 1.5 } });
s.addText('"First Aid is the immediate assistance or care given to a person who has been injured or suddenly taken ill, before professional medical help arrives."', {
x: 0.55, y: 1.35, w: 8.9, h: 1.0,
fontSize: 15, italic: true, color: DARK, fontFace: "Calibri", valign: "middle", align: "center",
});
// Key points
const points = [
{ icon: "🩺", text: "Provided before professional medical care arrives" },
{ icon: "⚡", text: "Can mean the difference between life and death" },
{ icon: "🎯", text: "Aims to preserve life, prevent worsening & promote recovery" },
{ icon: "👐", text: "Can be performed by anyone with basic training" },
];
points.forEach((p, i) => {
const y = 2.6 + i * 0.65;
s.addShape(pres.ShapeType.rect, { x: 0.4, y: y, w: 9.2, h: 0.52, fill: { color: WHITE }, line: { color: MIDGRAY, width: 0.5 } });
s.addText(`${p.icon} ${p.text}`, {
x: 0.6, y: y + 0.02, w: 8.8, h: 0.48,
fontSize: 14, color: DARK, fontFace: "Calibri", valign: "middle",
});
});
}
// ─────────────────────────────────────────
// SLIDE 3 – AIMS OF FIRST AID (3 P's)
// ─────────────────────────────────────────
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: DARK } });
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.05, fill: { color: RED } });
s.addText("The 3 Aims of First Aid", {
x: 0.4, y: 0.12, w: 9, h: 0.8,
fontSize: 32, bold: true, color: WHITE, fontFace: "Calibri",
});
const cards = [
{ letter: "P", title: "PRESERVE LIFE", desc: "Protect the victim and yourself from further danger. Maintain breathing and circulation.", x: 0.4 },
{ letter: "P", title: "PREVENT WORSENING", desc: "Stop the condition from getting worse. Immobilize fractures, control bleeding, prevent shock.", x: 3.6 },
{ letter: "P", title: "PROMOTE RECOVERY", desc: "Help the injured person recover. Reassure them, keep them comfortable, and call for help.", x: 6.8 },
];
cards.forEach((c) => {
s.addShape(pres.ShapeType.rect, { x: c.x, y: 1.25, w: 2.9, h: 3.9, fill: { color: "222244" }, line: { color: RED, width: 1.5 } });
// Large letter
s.addShape(pres.ShapeType.rect, { x: c.x + 0.95, y: 1.4, w: 1.0, h: 1.0, fill: { color: RED }, line: { color: RED } });
s.addText(c.letter, {
x: c.x + 0.95, y: 1.4, w: 1.0, h: 1.0,
fontSize: 42, bold: true, color: WHITE, fontFace: "Calibri", align: "center", valign: "middle",
});
s.addText(c.title, {
x: c.x + 0.1, y: 2.55, w: 2.7, h: 0.55,
fontSize: 14, bold: true, color: RED, fontFace: "Calibri", align: "center",
});
s.addText(c.desc, {
x: c.x + 0.15, y: 3.15, w: 2.6, h: 1.8,
fontSize: 12, color: MIDGRAY, fontFace: "Calibri", align: "center", valign: "top",
});
});
}
// ─────────────────────────────────────────
// SLIDE 4 – FIRST AID KIT
// ─────────────────────────────────────────
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: LIGHT } });
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.05, fill: { color: RED } });
s.addText("Essential First Aid Kit Contents", {
x: 0.4, y: 0.12, w: 9, h: 0.8,
fontSize: 30, bold: true, color: WHITE, fontFace: "Calibri",
});
// Two column layout
const col1 = [
"🩹 Adhesive bandages (various sizes)",
"🧻 Sterile gauze pads & rolls",
"✂️ Medical scissors & tweezers",
"🧤 Disposable gloves (latex-free)",
"🌡️ Thermometer",
"💊 Antiseptic wipes & cream",
];
const col2 = [
"🩺 CPR face shield / mask",
"🔦 Pen torch / flashlight",
"💉 Syringe & safety pins",
"🧊 Cold pack (instant)",
"📋 First aid manual / booklet",
"📞 Emergency contact card",
];
col1.forEach((item, i) => {
s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.2 + i * 0.68, w: 4.5, h: 0.55, fill: { color: WHITE }, line: { color: MIDGRAY, width: 0.5 } });
s.addText(item, {
x: 0.45, y: 1.22 + i * 0.68, w: 4.3, h: 0.5,
fontSize: 13, color: DARK, fontFace: "Calibri", valign: "middle",
});
});
col2.forEach((item, i) => {
s.addShape(pres.ShapeType.rect, { x: 5.2, y: 1.2 + i * 0.68, w: 4.5, h: 0.55, fill: { color: WHITE }, line: { color: MIDGRAY, width: 0.5 } });
s.addText(item, {
x: 5.35, y: 1.22 + i * 0.68, w: 4.3, h: 0.5,
fontSize: 13, color: DARK, fontFace: "Calibri", valign: "middle",
});
});
}
// ─────────────────────────────────────────
// SLIDE 5 – CPR
// ─────────────────────────────────────────
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: DARK } });
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.05, fill: { color: RED } });
s.addText("CPR – Cardiopulmonary Resuscitation", {
x: 0.4, y: 0.12, w: 9, h: 0.8,
fontSize: 28, bold: true, color: WHITE, fontFace: "Calibri",
});
// Steps
const steps = [
{ num: "1", title: "CHECK", desc: "Ensure the scene is safe. Check for responsiveness by tapping shoulders and shouting." },
{ num: "2", title: "CALL", desc: "Call emergency services (112 / 108 in India, 911 in US) or send someone to call." },
{ num: "3", title: "COMPRESS", desc: "Place hands on center of chest. Push hard & fast — 30 compressions at 100–120/min." },
{ num: "4", title: "BREATHE", desc: "Give 2 rescue breaths (tilt head, lift chin, seal mouth). Continue 30:2 cycle." },
];
steps.forEach((st, i) => {
const x = 0.3 + i * 2.38;
// Arrow connector (except last)
if (i < 3) {
s.addShape(pres.ShapeType.rect, { x: x + 2.1, y: 2.4, w: 0.25, h: 0.25, fill: { color: RED }, line: { color: RED } });
}
s.addShape(pres.ShapeType.rect, { x: x, y: 1.2, w: 2.1, h: 3.9, fill: { color: "16213E" }, line: { color: RED, width: 1.5 } });
s.addShape(pres.ShapeType.rect, { x: x + 0.55, y: 1.35, w: 1.0, h: 1.0, fill: { color: RED }, line: { color: RED } });
s.addText(st.num, {
x: x + 0.55, y: 1.35, w: 1.0, h: 1.0,
fontSize: 38, bold: true, color: WHITE, fontFace: "Calibri", align: "center", valign: "middle",
});
s.addText(st.title, {
x: x + 0.1, y: 2.5, w: 1.9, h: 0.5,
fontSize: 15, bold: true, color: RED, fontFace: "Calibri", align: "center",
});
s.addText(st.desc, {
x: x + 0.12, y: 3.1, w: 1.86, h: 1.8,
fontSize: 11.5, color: MIDGRAY, fontFace: "Calibri", align: "center", valign: "top",
});
});
}
// ─────────────────────────────────────────
// SLIDE 6 – COMMON EMERGENCIES
// ─────────────────────────────────────────
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: LIGHT } });
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.05, fill: { color: RED } });
s.addText("First Aid for Common Emergencies", {
x: 0.4, y: 0.12, w: 9, h: 0.8,
fontSize: 30, bold: true, color: WHITE, fontFace: "Calibri",
});
const emergencies = [
{ icon: "🩸", name: "Bleeding", steps: "Apply direct pressure • Use clean cloth • Elevate limb • Seek help if severe" },
{ icon: "🔥", name: "Burns", steps: "Cool with running water 10 min • Do NOT use ice/butter • Cover with clean bandage" },
{ icon: "😮", name: "Choking", steps: "Encourage coughing • Give 5 back blows • 5 abdominal thrusts (Heimlich) • Call 112" },
{ icon: "💀", name: "Fracture", steps: "Immobilize the limb • Do NOT realign • Apply ice pack • Transport carefully" },
{ icon: "😵", name: "Fainting", steps: "Lay person flat • Elevate legs 12 inches • Loosen tight clothing • Monitor breathing" },
{ icon: "⚡", name: "Electric Shock", steps: "Do NOT touch victim directly • Switch off power • Begin CPR if needed • Call 112" },
];
emergencies.forEach((e, i) => {
const row = Math.floor(i / 2);
const col = i % 2;
const x = 0.3 + col * 4.85;
const y = 1.15 + row * 1.42;
s.addShape(pres.ShapeType.rect, { x, y, w: 4.6, h: 1.25, fill: { color: WHITE }, line: { color: RED, width: 1 } });
// Icon + name header
s.addShape(pres.ShapeType.rect, { x, y, w: 1.2, h: 1.25, fill: { color: CREAM }, line: { color: RED, width: 1 } });
s.addText(e.icon, { x, y: y + 0.1, w: 1.2, h: 0.6, fontSize: 26, align: "center" });
s.addText(e.name, { x, y: y + 0.7, w: 1.2, h: 0.45, fontSize: 11, bold: true, color: RED, fontFace: "Calibri", align: "center" });
s.addText(e.steps, {
x: x + 1.25, y: y + 0.08, w: 3.25, h: 1.1,
fontSize: 11, color: DARK, fontFace: "Calibri", valign: "middle",
bullet: false,
});
});
}
// ─────────────────────────────────────────
// SLIDE 7 – RECOVERY POSITION
// ─────────────────────────────────────────
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: DARK } });
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.05, fill: { color: RED } });
s.addText("The Recovery Position", {
x: 0.4, y: 0.12, w: 9, h: 0.8,
fontSize: 32, bold: true, color: WHITE, fontFace: "Calibri",
});
// When to use box
s.addShape(pres.ShapeType.rect, { x: 0.4, y: 1.2, w: 4.3, h: 1.6, fill: { color: "222244" }, line: { color: RED, width: 1.5 } });
s.addText("When to Use", {
x: 0.5, y: 1.28, w: 4.1, h: 0.45,
fontSize: 16, bold: true, color: RED, fontFace: "Calibri",
});
const when = ["Unconscious but breathing", "After a seizure", "Suspected poisoning or overdose", "Alcohol intoxication"];
when.forEach((w, i) => {
s.addText(`• ${w}`, {
x: 0.6, y: 1.75 + i * 0.24, w: 4.0, h: 0.25,
fontSize: 13, color: MIDGRAY, fontFace: "Calibri",
});
});
// Steps box
s.addShape(pres.ShapeType.rect, { x: 5.1, y: 1.2, w: 4.5, h: 4.0, fill: { color: "16213E" }, line: { color: RED, width: 1.5 } });
s.addText("Steps", {
x: 5.2, y: 1.28, w: 4.2, h: 0.45,
fontSize: 16, bold: true, color: RED, fontFace: "Calibri",
});
const recSteps = [
"1. Kneel beside the person",
"2. Place nearest arm at right angle to body",
"3. Bring far arm across chest",
"4. Bend far knee up",
"5. Roll the person toward you",
"6. Tilt head back to open airway",
"7. Monitor breathing until help arrives",
];
recSteps.forEach((st, i) => {
s.addText(st, {
x: 5.2, y: 1.75 + i * 0.48, w: 4.2, h: 0.42,
fontSize: 12.5, color: MIDGRAY, fontFace: "Calibri",
});
});
// Purpose note
s.addShape(pres.ShapeType.rect, { x: 0.4, y: 2.9, w: 4.3, h: 1.3, fill: { color: CREAM }, line: { color: RED, width: 1 } });
s.addText("💡 Purpose", {
x: 0.55, y: 2.98, w: 4.0, h: 0.4,
fontSize: 14, bold: true, color: RED, fontFace: "Calibri",
});
s.addText("Keeps the airway open and prevents the person from choking on vomit or fluids.", {
x: 0.55, y: 3.4, w: 4.0, h: 0.7,
fontSize: 13, color: DARK, fontFace: "Calibri",
});
}
// ─────────────────────────────────────────
// SLIDE 8 – DO's & DON'Ts
// ─────────────────────────────────────────
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: LIGHT } });
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.05, fill: { color: RED } });
s.addText("First Aid — Do's & Don'ts", {
x: 0.4, y: 0.12, w: 9, h: 0.8,
fontSize: 32, bold: true, color: WHITE, fontFace: "Calibri",
});
// DO column
s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.15, w: 4.4, h: 0.55, fill: { color: "27AE60" }, line: { color: "27AE60" } });
s.addText("✅ DO's", { x: 0.35, y: 1.18, w: 4.3, h: 0.48, fontSize: 18, bold: true, color: WHITE, fontFace: "Calibri" });
const dos = [
"Stay calm and assess the situation",
"Call emergency services immediately",
"Keep the victim still and comfortable",
"Control bleeding with direct pressure",
"Monitor breathing and pulse regularly",
"Reassure the victim continuously",
];
dos.forEach((d, i) => {
s.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.75 + i * 0.58, w: 4.4, h: 0.5, fill: { color: WHITE }, line: { color: MIDGRAY, width: 0.5 } });
s.addText(`✓ ${d}`, { x: 0.45, y: 1.77 + i * 0.58, w: 4.2, h: 0.45, fontSize: 12.5, color: DARK, fontFace: "Calibri", valign: "middle" });
});
// DON'T column
s.addShape(pres.ShapeType.rect, { x: 5.3, y: 1.15, w: 4.4, h: 0.55, fill: { color: RED }, line: { color: RED } });
s.addText("❌ DON'Ts", { x: 5.35, y: 1.18, w: 4.3, h: 0.48, fontSize: 18, bold: true, color: WHITE, fontFace: "Calibri" });
const donts = [
"Do NOT move a victim with spinal injury",
"Do NOT remove embedded objects",
"Do NOT give food or water to unconscious",
"Do NOT apply butter/ice on burns",
"Do NOT leave the victim alone",
"Do NOT panic or create crowd around",
];
donts.forEach((d, i) => {
s.addShape(pres.ShapeType.rect, { x: 5.3, y: 1.75 + i * 0.58, w: 4.4, h: 0.5, fill: { color: WHITE }, line: { color: MIDGRAY, width: 0.5 } });
s.addText(`✗ ${d}`, { x: 5.45, y: 1.77 + i * 0.58, w: 4.2, h: 0.45, fontSize: 12.5, color: DARK, fontFace: "Calibri", valign: "middle" });
});
}
// ─────────────────────────────────────────
// SLIDE 9 – EMERGENCY NUMBERS
// ─────────────────────────────────────────
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: DARK } });
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.05, fill: { color: RED } });
s.addText("Emergency Helpline Numbers", {
x: 0.4, y: 0.12, w: 9, h: 0.8,
fontSize: 32, bold: true, color: WHITE, fontFace: "Calibri",
});
const numbers = [
{ emoji: "🚑", service: "Ambulance (India)", num: "108" },
{ emoji: "🚒", service: "Fire Brigade", num: "101" },
{ emoji: "👮", service: "Police", num: "100" },
{ emoji: "📞", service: "National Emergency", num: "112" },
{ emoji: "👩⚕️", service: "Women Helpline", num: "1091" },
{ emoji: "🧒", service: "Child Helpline", num: "1098" },
];
numbers.forEach((n, i) => {
const col = i % 3;
const row = Math.floor(i / 3);
const x = 0.4 + col * 3.1;
const y = 1.3 + row * 1.9;
s.addShape(pres.ShapeType.rect, { x, y, w: 2.85, h: 1.7, fill: { color: "16213E" }, line: { color: RED, width: 1.5 } });
s.addText(n.emoji, { x, y: y + 0.1, w: 2.85, h: 0.7, fontSize: 30, align: "center" });
s.addText(n.num, { x, y: y + 0.8, w: 2.85, h: 0.52, fontSize: 26, bold: true, color: RED, fontFace: "Calibri", align: "center" });
s.addText(n.service, { x, y: y + 1.32, w: 2.85, h: 0.3, fontSize: 11, color: MIDGRAY, fontFace: "Calibri", align: "center" });
});
}
// ─────────────────────────────────────────
// SLIDE 10 – CONCLUSION / THANK YOU
// ─────────────────────────────────────────
{
const s = pres.addSlide();
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: DARK } });
s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.35, h: 5.625, fill: { color: RED } });
// Red cross
s.addShape(pres.ShapeType.rect, { x: 4.5, y: 0.5, w: 1.0, h: 0.4, fill: { color: RED }, line: { color: RED } });
s.addShape(pres.ShapeType.rect, { x: 4.8, y: 0.2, w: 0.4, h: 1.0, fill: { color: RED }, line: { color: RED } });
s.addText("Key Takeaways", {
x: 0.7, y: 1.3, w: 8.8, h: 0.7,
fontSize: 32, bold: true, color: WHITE, fontFace: "Calibri", align: "center",
});
const takeaways = [
"First Aid saves lives — every second counts",
"Learn CPR — it is a skill everyone should have",
"Always call emergency services first",
"Carry a first aid kit at home, school & workplace",
"Stay calm — your confidence helps the victim",
];
takeaways.forEach((t, i) => {
s.addText(`• ${t}`, {
x: 1.2, y: 2.1 + i * 0.48, w: 7.6, h: 0.42,
fontSize: 15, color: MIDGRAY, fontFace: "Calibri", align: "center",
});
});
s.addShape(pres.ShapeType.line, { x: 2.5, y: 4.55, w: 5.0, h: 0, line: { color: RED, width: 1.5 } });
s.addText("Thank You!", {
x: 0.7, y: 4.65, w: 8.6, h: 0.65,
fontSize: 26, bold: true, color: RED, fontFace: "Calibri", align: "center",
});
s.addText("Parveen Garg | Roll No: 100", {
x: 0.7, y: 5.18, w: 8.6, h: 0.35,
fontSize: 12, color: GRAY, fontFace: "Calibri", align: "center",
});
}
// ─────────────────────────────────────────
// WRITE FILE
// ─────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/first-aid-ppt/First_Aid_Parveen_Garg.pptx" })
.then(() => console.log("✅ PPT created successfully!"))
.catch(err => { console.error("Error:", err); process.exit(1); });
cd /home/daytona/workspace/first-aid-ppt && node create_ppt.js
| Slide | Content |
|---|---|
| 1 | Title slide - "First Aid" with your name Parveen Garg & Roll No 100 |
| 2 | What is First Aid? (definition + key points) |
| 3 | The 3 P's - Preserve Life, Prevent Worsening, Promote Recovery |
| 4 | Essential First Aid Kit Contents |
| 5 | CPR - Step-by-step guide (Check, Call, Compress, Breathe) |
| 6 | First Aid for Common Emergencies (Bleeding, Burns, Choking, Fracture, Fainting, Electric Shock) |
| 7 | The Recovery Position |
| 8 | Do's & Don'ts |
| 9 | Emergency Helpline Numbers (112, 108, 100, 101, etc.) |
| 10 | Key Takeaways & Thank You slide |
First Aid Parveen Garg
Presentation · PPTX