Make a ppt on stress and time management in medical college Add these Topic:-stress and time management Name Parveen Garg Roll no 100
ls /home/daytona/workspace/ 2>/dev/null || echo "workspace empty or missing"
mkdir -p /home/daytona/workspace/stress-time-management-ppt
~/stress-time-management-ppt/create_ppt.js
const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.author = "Parveen Garg";
pres.title = "Stress and Time Management in Medical College";
// ─── COLOR PALETTE ───────────────────────────────────────────────
// Deep navy bg, teal accent, soft white text, coral highlight
const C = {
navy: "0D1B2A", // dominant dark bg
navyMid: "1A2F45", // slightly lighter dark
teal: "00B4D8", // primary accent
tealDark: "0077A8", // secondary accent
coral: "E05C5C", // stress/alert highlight
white: "FFFFFF",
offWhite: "E8F4F8",
lightGray: "B0C4D8",
gold: "F4A261",
};
// ─── HELPER: Add decorative top bar ──────────────────────────────
function topBar(slide) {
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: "100%", h: 0.08,
fill: { color: C.teal },
line: { color: C.teal }
});
}
function bottomBar(slide) {
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 5.545, w: "100%", h: 0.08,
fill: { color: C.tealDark },
line: { color: C.tealDark }
});
}
function accentBar(slide, x, y, h) {
slide.addShape(pres.ShapeType.rect, {
x, y, w: 0.06, h,
fill: { color: C.teal },
line: { color: C.teal }
});
}
// ══════════════════════════════════════════════════════════════════
// SLIDE 1 – TITLE SLIDE
// ══════════════════════════════════════════════════════════════════
{
const slide = pres.addSlide();
// Full dark background
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: "100%", h: "100%",
fill: { color: C.navy }, line: { color: C.navy }
});
// Decorative teal circle (large, blurred feel via opacity trick)
slide.addShape(pres.ShapeType.ellipse, {
x: 6.5, y: -1.2, w: 4.5, h: 4.5,
fill: { color: C.tealDark, transparency: 75 },
line: { color: C.tealDark, transparency: 75 }
});
slide.addShape(pres.ShapeType.ellipse, {
x: -1.2, y: 2.8, w: 3.5, h: 3.5,
fill: { color: C.teal, transparency: 85 },
line: { color: C.teal, transparency: 85 }
});
// Teal top accent bar
slide.addShape(pres.ShapeType.rect, {
x: 0.5, y: 0.9, w: 1.2, h: 0.06,
fill: { color: C.teal }, line: { color: C.teal }
});
// Subtitle label
slide.addText("MEDICAL COLLEGE SEMINAR", {
x: 0.5, y: 0.55, w: 9, h: 0.4,
fontSize: 11, color: C.teal, bold: true,
charSpacing: 4, fontFace: "Calibri"
});
// Main title
slide.addText("STRESS &\nTIME MANAGEMENT", {
x: 0.5, y: 1.1, w: 7.5, h: 2.4,
fontSize: 52, color: C.white, bold: true,
fontFace: "Calibri", lineSpacingMultiple: 1.1
});
// Tagline
slide.addText("Navigating the Challenges of Medical Education", {
x: 0.5, y: 3.5, w: 7.5, h: 0.5,
fontSize: 16, color: C.lightGray, italic: true, fontFace: "Calibri"
});
// Divider line
slide.addShape(pres.ShapeType.rect, {
x: 0.5, y: 4.1, w: 5, h: 0.03,
fill: { color: C.lightGray, transparency: 50 },
line: { color: C.lightGray, transparency: 50 }
});
// Name & Roll no box
slide.addShape(pres.ShapeType.rect, {
x: 0.5, y: 4.25, w: 4.5, h: 0.98,
fill: { color: C.navyMid }, line: { color: C.teal, pt: 1 }
});
slide.addText([
{ text: "Presented by: ", options: { color: C.lightGray, fontSize: 12 } },
{ text: "Parveen Garg", options: { color: C.white, fontSize: 13, bold: true } },
{ text: "\nRoll No: ", options: { color: C.lightGray, fontSize: 12, breakLine: false } },
{ text: "100", options: { color: C.gold, fontSize: 13, bold: true } },
], { x: 0.65, y: 4.3, w: 4.2, h: 0.85, fontFace: "Calibri", valign: "middle" });
// Bottom accent
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 5.545, w: "100%", h: 0.08,
fill: { color: C.teal }, line: { color: C.teal }
});
}
// ══════════════════════════════════════════════════════════════════
// SLIDE 2 – AGENDA / TABLE OF CONTENTS
// ══════════════════════════════════════════════════════════════════
{
const slide = pres.addSlide();
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: "100%", h: "100%",
fill: { color: C.navy }, line: { color: C.navy }
});
topBar(slide); bottomBar(slide);
slide.addText("AGENDA", {
x: 0.5, y: 0.2, w: 9, h: 0.55,
fontSize: 30, color: C.teal, bold: true, fontFace: "Calibri", charSpacing: 3
});
const items = [
{ num: "01", title: "What is Stress?", sub: "Definition & types" },
{ num: "02", title: "Stress in Medical Students", sub: "Prevalence & causes" },
{ num: "03", title: "Effects of Stress", sub: "Physical, mental & academic impact" },
{ num: "04", title: "Stress Management Strategies", sub: "Practical coping techniques" },
{ num: "05", title: "Time Management", sub: "Principles & tools" },
{ num: "06", title: "Practical Tips & Takeaways", sub: "Actionable advice" },
];
items.forEach((item, i) => {
const col = i < 3 ? 0 : 1;
const row = i % 3;
const x = col === 0 ? 0.4 : 5.2;
const y = 1.0 + row * 1.45;
slide.addShape(pres.ShapeType.rect, {
x, y, w: 4.5, h: 1.25,
fill: { color: C.navyMid }, line: { color: C.tealDark, pt: 1 }
});
// Number badge
slide.addShape(pres.ShapeType.rect, {
x: x, y, w: 0.6, h: 1.25,
fill: { color: C.teal }, line: { color: C.teal }
});
slide.addText(item.num, {
x: x, y: y + 0.3, w: 0.6, h: 0.6,
fontSize: 18, color: C.navy, bold: true, align: "center", fontFace: "Calibri"
});
slide.addText(item.title, {
x: x + 0.7, y: y + 0.12, w: 3.7, h: 0.5,
fontSize: 14, color: C.white, bold: true, fontFace: "Calibri"
});
slide.addText(item.sub, {
x: x + 0.7, y: y + 0.62, w: 3.7, h: 0.45,
fontSize: 11, color: C.lightGray, fontFace: "Calibri"
});
});
}
// ══════════════════════════════════════════════════════════════════
// SLIDE 3 – WHAT IS STRESS?
// ══════════════════════════════════════════════════════════════════
{
const slide = pres.addSlide();
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: "100%", h: "100%",
fill: { color: C.navy }, line: { color: C.navy }
});
topBar(slide); bottomBar(slide);
slide.addText("WHAT IS STRESS?", {
x: 0.5, y: 0.2, w: 9, h: 0.55,
fontSize: 30, color: C.teal, bold: true, fontFace: "Calibri", charSpacing: 3
});
// Definition box
slide.addShape(pres.ShapeType.rect, {
x: 0.4, y: 0.9, w: 9.2, h: 1.1,
fill: { color: C.navyMid }, line: { color: C.teal, pt: 1.5 }
});
slide.addShape(pres.ShapeType.rect, {
x: 0.4, y: 0.9, w: 0.08, h: 1.1,
fill: { color: C.teal }, line: { color: C.teal }
});
slide.addText([
{ text: "Definition: ", options: { bold: true, color: C.teal } },
{ text: "A state of mental or emotional strain resulting from adverse or demanding circumstances. (Hans Selye, 1936)", options: { color: C.offWhite } }
], { x: 0.65, y: 0.98, w: 8.7, h: 0.9, fontSize: 13, fontFace: "Calibri" });
// Types
slide.addText("TYPES OF STRESS", {
x: 0.4, y: 2.15, w: 4, h: 0.38,
fontSize: 13, color: C.gold, bold: true, fontFace: "Calibri", charSpacing: 2
});
const types = [
{ label: "Eustress", desc: "Positive, motivating stress (e.g., exams, competitions)", color: "27AE60" },
{ label: "Distress", desc: "Negative, overwhelming stress affecting performance", color: C.coral },
{ label: "Acute Stress", desc: "Short-term, immediate reaction to a challenge", color: C.teal },
{ label: "Chronic Stress", desc: "Long-term persistent stress, harmful to health", color: C.gold },
];
types.forEach((t, i) => {
const x = i % 2 === 0 ? 0.4 : 5.15;
const y = i < 2 ? 2.6 : 3.95;
slide.addShape(pres.ShapeType.rect, {
x, y, w: 4.5, h: 1.15,
fill: { color: C.navyMid }, line: { color: t.color, pt: 1.5 }
});
slide.addShape(pres.ShapeType.rect, {
x, y, w: 0.06, h: 1.15,
fill: { color: t.color }, line: { color: t.color }
});
slide.addText(t.label, {
x: x + 0.2, y: y + 0.1, w: 4.2, h: 0.38,
fontSize: 14, color: C.white, bold: true, fontFace: "Calibri"
});
slide.addText(t.desc, {
x: x + 0.2, y: y + 0.48, w: 4.2, h: 0.55,
fontSize: 11.5, color: C.lightGray, fontFace: "Calibri"
});
});
}
// ══════════════════════════════════════════════════════════════════
// SLIDE 4 – STRESS IN MEDICAL STUDENTS
// ══════════════════════════════════════════════════════════════════
{
const slide = pres.addSlide();
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: "100%", h: "100%",
fill: { color: C.navy }, line: { color: C.navy }
});
topBar(slide); bottomBar(slide);
slide.addText("STRESS IN MEDICAL STUDENTS", {
x: 0.5, y: 0.2, w: 9.3, h: 0.55,
fontSize: 28, color: C.teal, bold: true, fontFace: "Calibri", charSpacing: 2
});
// Stats row
const stats = [
{ val: "45-70%", label: "Medical students\nexperience stress" },
{ val: "~30%", label: "Report burnout\nsymptoms" },
{ val: "2x", label: "Higher depression\nvs general population" },
];
stats.forEach((s, i) => {
const x = 0.4 + i * 3.15;
slide.addShape(pres.ShapeType.rect, {
x, y: 0.9, w: 2.9, h: 1.4,
fill: { color: C.navyMid }, line: { color: C.teal, pt: 1 }
});
slide.addText(s.val, {
x, y: 0.95, w: 2.9, h: 0.7,
fontSize: 30, color: C.teal, bold: true, align: "center", fontFace: "Calibri"
});
slide.addText(s.label, {
x, y: 1.62, w: 2.9, h: 0.6,
fontSize: 11, color: C.lightGray, align: "center", fontFace: "Calibri"
});
});
// Causes
slide.addText("COMMON CAUSES", {
x: 0.4, y: 2.5, w: 5, h: 0.38,
fontSize: 13, color: C.gold, bold: true, fontFace: "Calibri", charSpacing: 2
});
const causes = [
"Heavy academic workload and vast curriculum",
"Fear of failure in examinations and assessments",
"Sleep deprivation and irregular schedules",
"Financial pressures and career uncertainty",
"Lack of social support and isolation",
"Exposure to patient suffering and death",
"Competition and performance pressure",
"Poor work-life balance and limited leisure time",
];
const col1 = causes.slice(0, 4);
const col2 = causes.slice(4);
[col1, col2].forEach((col, ci) => {
slide.addText(
col.map((c, i) => ({
text: c,
options: { bullet: { type: "bullet", code: "25B6", color: C.teal }, breakLine: i < col.length - 1 }
})),
{
x: ci === 0 ? 0.4 : 5.15, y: 2.95, w: 4.5, h: 2.45,
fontSize: 12, color: C.offWhite, fontFace: "Calibri", lineSpacingMultiple: 1.35
}
);
});
}
// ══════════════════════════════════════════════════════════════════
// SLIDE 5 – EFFECTS OF STRESS
// ══════════════════════════════════════════════════════════════════
{
const slide = pres.addSlide();
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: "100%", h: "100%",
fill: { color: C.navy }, line: { color: C.navy }
});
topBar(slide); bottomBar(slide);
slide.addText("EFFECTS OF STRESS", {
x: 0.5, y: 0.2, w: 9, h: 0.55,
fontSize: 30, color: C.teal, bold: true, fontFace: "Calibri", charSpacing: 3
});
const categories = [
{
title: "Physical Effects",
icon: "🫀",
color: C.coral,
items: ["Headaches & fatigue", "Sleep disturbances", "Palpitations", "Weakened immunity", "Gastrointestinal issues"]
},
{
title: "Mental & Emotional",
icon: "🧠",
color: C.gold,
items: ["Anxiety & depression", "Irritability & mood swings", "Poor concentration", "Burnout & cynicism", "Reduced empathy"]
},
{
title: "Academic Impact",
icon: "📚",
color: C.teal,
items: ["Poor exam performance", "Reduced retention", "Decreased motivation", "Absenteeism", "Clinical errors risk"]
},
];
categories.forEach((cat, i) => {
const x = 0.35 + i * 3.15;
// Card background
slide.addShape(pres.ShapeType.rect, {
x, y: 0.9, w: 3.0, h: 4.5,
fill: { color: C.navyMid }, line: { color: cat.color, pt: 1.5 }
});
// Color header band
slide.addShape(pres.ShapeType.rect, {
x, y: 0.9, w: 3.0, h: 0.75,
fill: { color: cat.color, transparency: 20 }, line: { color: cat.color }
});
slide.addText(cat.title, {
x: x + 0.1, y: 0.97, w: 2.8, h: 0.6,
fontSize: 13.5, color: C.white, bold: true, fontFace: "Calibri", align: "center"
});
slide.addText(
cat.items.map((item, idx) => ({
text: item,
options: { bullet: { type: "bullet", code: "25CF", color: cat.color }, breakLine: idx < cat.items.length - 1 }
})),
{ x: x + 0.15, y: 1.75, w: 2.75, h: 3.5, fontSize: 12, color: C.offWhite, fontFace: "Calibri", lineSpacingMultiple: 1.45 }
);
});
}
// ══════════════════════════════════════════════════════════════════
// SLIDE 6 – STRESS MANAGEMENT STRATEGIES
// ══════════════════════════════════════════════════════════════════
{
const slide = pres.addSlide();
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: "100%", h: "100%",
fill: { color: C.navy }, line: { color: C.navy }
});
topBar(slide); bottomBar(slide);
slide.addText("STRESS MANAGEMENT STRATEGIES", {
x: 0.4, y: 0.2, w: 9.5, h: 0.55,
fontSize: 26, color: C.teal, bold: true, fontFace: "Calibri", charSpacing: 2
});
const strategies = [
{ icon: "🧘", title: "Mindfulness & Meditation", desc: "5–10 min daily mindfulness, breathing exercises, and guided meditation to calm the nervous system" },
{ icon: "🏃", title: "Regular Physical Activity", desc: "30 min of exercise 3–5×/week; reduces cortisol and releases mood-boosting endorphins" },
{ icon: "😴", title: "Adequate Sleep", desc: "Aim for 7–8 hours; maintain a sleep schedule even on weekends for cognitive recovery" },
{ icon: "🤝", title: "Social Support", desc: "Connect with peers, mentors, and family; peer support groups reduce isolation significantly" },
{ icon: "📝", title: "Journaling & Reflection", desc: "Writing thoughts and feelings helps process emotions and identify stress triggers" },
{ icon: "🎯", title: "Seek Professional Help", desc: "Counseling services, mental health apps, and psychiatry if symptoms persist or worsen" },
];
strategies.forEach((s, i) => {
const col = i % 2 === 0 ? 0 : 1;
const row = Math.floor(i / 2);
const x = col === 0 ? 0.35 : 5.15;
const y = 0.95 + row * 1.55;
slide.addShape(pres.ShapeType.rect, {
x, y, w: 4.55, h: 1.38,
fill: { color: C.navyMid }, line: { color: C.tealDark, pt: 1 }
});
slide.addText(s.icon, { x, y: y + 0.1, w: 0.75, h: 0.75, fontSize: 24, align: "center" });
slide.addText(s.title, {
x: x + 0.75, y: y + 0.1, w: 3.65, h: 0.42,
fontSize: 13, color: C.gold, bold: true, fontFace: "Calibri"
});
slide.addText(s.desc, {
x: x + 0.75, y: y + 0.52, w: 3.65, h: 0.75,
fontSize: 11, color: C.lightGray, fontFace: "Calibri", lineSpacingMultiple: 1.2
});
});
}
// ══════════════════════════════════════════════════════════════════
// SLIDE 7 – TIME MANAGEMENT
// ══════════════════════════════════════════════════════════════════
{
const slide = pres.addSlide();
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: "100%", h: "100%",
fill: { color: C.navy }, line: { color: C.navy }
});
topBar(slide); bottomBar(slide);
slide.addText("TIME MANAGEMENT", {
x: 0.5, y: 0.2, w: 9, h: 0.55,
fontSize: 30, color: C.teal, bold: true, fontFace: "Calibri", charSpacing: 3
});
// Quote
slide.addText('"Time is what we want most, but use worst." — William Penn', {
x: 0.5, y: 0.88, w: 9, h: 0.42,
fontSize: 12, color: C.lightGray, italic: true, align: "center", fontFace: "Calibri"
});
// Eisenhower Matrix
slide.addText("EISENHOWER MATRIX", {
x: 0.4, y: 1.45, w: 4.5, h: 0.38,
fontSize: 12, color: C.gold, bold: true, fontFace: "Calibri", charSpacing: 2
});
const matrix = [
{ label: "DO FIRST", sub: "Urgent + Important", desc: "Exams, clinical duties, emergencies", color: C.coral },
{ label: "SCHEDULE", sub: "Not Urgent + Important", desc: "Study planning, research, skills dev.", color: C.teal },
{ label: "DELEGATE", sub: "Urgent + Not Important", desc: "Minor admin tasks, routine requests", color: C.gold },
{ label: "ELIMINATE", sub: "Not Urgent + Not Important", desc: "Excessive social media, time-wasters", color: C.lightGray },
];
matrix.forEach((m, i) => {
const col = i % 2;
const row = Math.floor(i / 2);
const x = 0.4 + col * 2.3;
const y = 1.9 + row * 1.65;
slide.addShape(pres.ShapeType.rect, {
x, y, w: 2.15, h: 1.5,
fill: { color: m.color, transparency: 80 }, line: { color: m.color, pt: 1.5 }
});
slide.addText(m.label, {
x: x + 0.08, y: y + 0.08, w: 2.0, h: 0.4,
fontSize: 12, color: m.color, bold: true, fontFace: "Calibri"
});
slide.addText(m.sub, {
x: x + 0.08, y: y + 0.48, w: 2.0, h: 0.36,
fontSize: 10, color: C.white, fontFace: "Calibri"
});
slide.addText(m.desc, {
x: x + 0.08, y: y + 0.83, w: 2.0, h: 0.55,
fontSize: 9.5, color: C.lightGray, fontFace: "Calibri"
});
});
// Key techniques on right
slide.addText("KEY TECHNIQUES", {
x: 5.15, y: 1.45, w: 4.6, h: 0.38,
fontSize: 12, color: C.gold, bold: true, fontFace: "Calibri", charSpacing: 2
});
const techniques = [
{ title: "Pomodoro Technique", desc: "25 min study + 5 min break; maintains focus without burnout" },
{ title: "Time Blocking", desc: "Assign specific tasks to fixed time slots in your calendar" },
{ title: "SMART Goals", desc: "Specific, Measurable, Achievable, Relevant, Time-bound goals" },
{ title: "Weekly Review", desc: "Every Sunday: plan the week, review progress, adjust priorities" },
];
techniques.forEach((t, i) => {
const y = 1.9 + i * 0.85;
slide.addShape(pres.ShapeType.rect, {
x: 5.15, y, w: 4.6, h: 0.77,
fill: { color: C.navyMid }, line: { color: C.teal, pt: 1 }
});
slide.addShape(pres.ShapeType.rect, {
x: 5.15, y, w: 0.06, h: 0.77,
fill: { color: C.teal }, line: { color: C.teal }
});
slide.addText(t.title, {
x: 5.28, y: y + 0.05, w: 4.35, h: 0.32,
fontSize: 12.5, color: C.white, bold: true, fontFace: "Calibri"
});
slide.addText(t.desc, {
x: 5.28, y: y + 0.37, w: 4.35, h: 0.32,
fontSize: 10.5, color: C.lightGray, fontFace: "Calibri"
});
});
}
// ══════════════════════════════════════════════════════════════════
// SLIDE 8 – PRACTICAL DAILY SCHEDULE
// ══════════════════════════════════════════════════════════════════
{
const slide = pres.addSlide();
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: "100%", h: "100%",
fill: { color: C.navy }, line: { color: C.navy }
});
topBar(slide); bottomBar(slide);
slide.addText("SAMPLE DAILY SCHEDULE FOR MEDICAL STUDENTS", {
x: 0.4, y: 0.2, w: 9.5, h: 0.55,
fontSize: 22, color: C.teal, bold: true, fontFace: "Calibri", charSpacing: 2
});
const schedule = [
{ time: "5:30 – 6:00 AM", activity: "Wake up & Morning Exercise/Yoga", type: "wellness" },
{ time: "6:00 – 7:30 AM", activity: "Breakfast + Revision of previous day", type: "study" },
{ time: "7:30 – 1:30 PM", activity: "College / Clinical Duties / Lectures", type: "college" },
{ time: "1:30 – 2:30 PM", activity: "Lunch + Rest / Power Nap (20 min)", type: "wellness" },
{ time: "2:30 – 5:30 PM", activity: "Deep Study (Pomodoro blocks)", type: "study" },
{ time: "5:30 – 6:30 PM", activity: "Break: Walk, hobby, or social time", type: "wellness" },
{ time: "6:30 – 9:00 PM", activity: "Topic Review + MCQ Practice", type: "study" },
{ time: "9:00 – 10:00 PM", activity: "Dinner + Relaxation (no screens)", type: "wellness" },
{ time: "10:00 – 10:30 PM", activity: "Planning next day + Journaling", type: "plan" },
{ time: "10:30 PM", activity: "Sleep (target 7–8 hours)", type: "sleep" },
];
const typeColors = {
study: C.teal,
wellness: "27AE60",
college: C.gold,
plan: "9B59B6",
sleep: C.tealDark,
};
schedule.forEach((row, i) => {
const y = 0.92 + i * 0.465;
const bg = i % 2 === 0 ? C.navyMid : C.navy;
slide.addShape(pres.ShapeType.rect, {
x: 0.4, y, w: 9.2, h: 0.45,
fill: { color: bg }, line: { color: "223344", pt: 0.5 }
});
// Color dot
slide.addShape(pres.ShapeType.ellipse, {
x: 0.5, y: y + 0.12, w: 0.2, h: 0.2,
fill: { color: typeColors[row.type] }, line: { color: typeColors[row.type] }
});
slide.addText(row.time, {
x: 0.78, y, w: 2.2, h: 0.45,
fontSize: 11, color: C.lightGray, fontFace: "Calibri", valign: "middle"
});
slide.addText(row.activity, {
x: 3.05, y, w: 6.4, h: 0.45,
fontSize: 11.5, color: C.white, fontFace: "Calibri", valign: "middle"
});
});
}
// ══════════════════════════════════════════════════════════════════
// SLIDE 9 – TIPS & TAKEAWAYS
// ══════════════════════════════════════════════════════════════════
{
const slide = pres.addSlide();
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: "100%", h: "100%",
fill: { color: C.navy }, line: { color: C.navy }
});
topBar(slide); bottomBar(slide);
slide.addText("PRACTICAL TIPS & TAKEAWAYS", {
x: 0.5, y: 0.2, w: 9.3, h: 0.55,
fontSize: 27, color: C.teal, bold: true, fontFace: "Calibri", charSpacing: 2
});
const tips = [
{ num: "1", tip: "Say NO to overcommitment", detail: "You cannot do everything. Learn to prioritize ruthlessly." },
{ num: "2", tip: "Batch similar tasks", detail: "Group similar academic tasks to reduce mental switching costs." },
{ num: "3", tip: "Use the 2-minute rule", detail: "If a task takes <2 min, do it immediately. Don't defer small tasks." },
{ num: "4", tip: "Digital detox periods", detail: "Schedule phone-free study blocks; social media is a productivity killer." },
{ num: "5", tip: "Practice self-compassion", detail: "Medicine is hard. Treat yourself with the same kindness you give patients." },
{ num: "6", tip: "Celebrate small wins", detail: "Acknowledge daily progress - it builds motivation and reduces anxiety." },
];
tips.forEach((t, i) => {
const col = i % 2 === 0 ? 0 : 1;
const row = Math.floor(i / 2);
const x = col === 0 ? 0.35 : 5.15;
const y = 0.92 + row * 1.52;
slide.addShape(pres.ShapeType.rect, {
x, y, w: 4.55, h: 1.35,
fill: { color: C.navyMid }, line: { color: C.tealDark, pt: 1 }
});
// Number circle
slide.addShape(pres.ShapeType.ellipse, {
x: x + 0.15, y: y + 0.2, w: 0.55, h: 0.55,
fill: { color: C.teal }, line: { color: C.teal }
});
slide.addText(t.num, {
x: x + 0.15, y: y + 0.2, w: 0.55, h: 0.55,
fontSize: 16, color: C.navy, bold: true, align: "center", valign: "middle", fontFace: "Calibri"
});
slide.addText(t.tip, {
x: x + 0.82, y: y + 0.1, w: 3.6, h: 0.42,
fontSize: 13.5, color: C.white, bold: true, fontFace: "Calibri"
});
slide.addText(t.detail, {
x: x + 0.82, y: y + 0.52, w: 3.6, h: 0.7,
fontSize: 11, color: C.lightGray, fontFace: "Calibri", lineSpacingMultiple: 1.2
});
});
}
// ══════════════════════════════════════════════════════════════════
// SLIDE 10 – CONCLUSION
// ══════════════════════════════════════════════════════════════════
{
const slide = pres.addSlide();
slide.addShape(pres.ShapeType.rect, {
x: 0, y: 0, w: "100%", h: "100%",
fill: { color: C.navy }, line: { color: C.navy }
});
// Decorative circles
slide.addShape(pres.ShapeType.ellipse, {
x: 7.5, y: -0.8, w: 4, h: 4,
fill: { color: C.tealDark, transparency: 80 }, line: { color: C.tealDark, transparency: 80 }
});
slide.addShape(pres.ShapeType.ellipse, {
x: -1.5, y: 3.2, w: 4, h: 4,
fill: { color: C.teal, transparency: 88 }, line: { color: C.teal, transparency: 88 }
});
topBar(slide); bottomBar(slide);
slide.addText("CONCLUSION", {
x: 0.5, y: 0.25, w: 9, h: 0.5,
fontSize: 30, color: C.teal, bold: true, fontFace: "Calibri", charSpacing: 3
});
// Summary box
slide.addShape(pres.ShapeType.rect, {
x: 0.5, y: 0.9, w: 9, h: 2.1,
fill: { color: C.navyMid }, line: { color: C.teal, pt: 1.5 }
});
const summaryPoints = [
"Stress is inevitable in medical education - but it can be managed effectively",
"Early recognition of stress signs prevents long-term burnout and mental health issues",
"Time management is a learnable skill that directly reduces academic stress",
"A healthy doctor is better equipped to care for patients",
];
slide.addText(
summaryPoints.map((p, i) => ({
text: p,
options: { bullet: { type: "bullet", code: "2714", color: C.teal }, breakLine: i < summaryPoints.length - 1 }
})),
{ x: 0.75, y: 0.98, w: 8.5, h: 1.9, fontSize: 12.5, color: C.offWhite, fontFace: "Calibri", lineSpacingMultiple: 1.5 }
);
// Key message
slide.addShape(pres.ShapeType.rect, {
x: 0.5, y: 3.15, w: 9, h: 0.9,
fill: { color: C.teal, transparency: 15 }, line: { color: C.teal, pt: 1 }
});
slide.addText('"Take care of yourself first — you cannot pour from an empty cup."', {
x: 0.6, y: 3.22, w: 8.8, h: 0.75,
fontSize: 14.5, color: C.white, italic: true, bold: true,
align: "center", valign: "middle", fontFace: "Calibri"
});
// References
slide.addText("References: Shanafelt et al., Academic Medicine (2012) | Dyrbye & Shanafelt, BMJ (2011) | Lazarus & Folkman, Stress Appraisal and Coping (1984)", {
x: 0.5, y: 4.2, w: 9, h: 0.5,
fontSize: 8.5, color: C.lightGray, fontFace: "Calibri", align: "center"
});
// Thank you + Name
slide.addText("Thank You", {
x: 0.5, y: 4.75, w: 5, h: 0.6,
fontSize: 28, color: C.gold, bold: true, fontFace: "Calibri"
});
slide.addText("Parveen Garg | Roll No. 100", {
x: 5.0, y: 4.8, w: 4.5, h: 0.5,
fontSize: 14, color: C.lightGray, fontFace: "Calibri", align: "right"
});
}
// ─── WRITE FILE ──────────────────────────────────────────────────
const outPath = "/home/daytona/workspace/stress-time-management-ppt/Stress_Time_Management_Parveen_Garg.pptx";
pres.writeFile({ fileName: outPath })
.then(() => console.log("✅ PPT created:", outPath))
.catch(err => { console.error("❌ Error:", err); process.exit(1); });
cd /home/daytona/workspace/stress-time-management-ppt && node create_ppt.js
Stress Time Management Parveen Garg
Presentation · PPTX
| # | Slide |
|---|---|
| 1 | Title Slide - Topic, Parveen Garg, Roll No. 100 |
| 2 | Agenda - 6-item visual table of contents |
| 3 | What is Stress? - Definition + 4 types (Eustress, Distress, Acute, Chronic) |
| 4 | Stress in Medical Students - Statistics (45-70% prevalence) + 8 common causes |
| 5 | Effects of Stress - Physical, Mental/Emotional, Academic impact (3-column cards) |
| 6 | Stress Management Strategies - 6 strategies with icons |
| 7 | Time Management - Eisenhower Matrix + 4 key techniques (Pomodoro, Time Blocking, etc.) |
| 8 | Sample Daily Schedule - Hour-by-hour schedule for medical students |
| 9 | Practical Tips & Takeaways - 6 actionable tips |
| 10 | Conclusion - Key messages, motivational quote, Thank You with your name |