integers added

This commit is contained in:
2026-03-26 08:50:17 -04:00
parent 1764adf0a5
commit 221997f2d9
17 changed files with 1520 additions and 64 deletions

View File

@@ -7,12 +7,12 @@ export interface Topic {
}
export interface Unit {
number: 1 | 2 | 3 | 4;
number: 1 | 2 | 3 | 4 | 5;
slug: string;
title: string;
description: string;
weeks: string;
color: "unit-1" | "unit-2" | "unit-3" | "unit-4";
color: "unit-1" | "unit-2" | "unit-3" | "unit-4" | "unit-5";
topics: Topic[];
}
@@ -176,6 +176,30 @@ export const curriculum: Unit[] = [
},
],
},
{
number: 5,
slug: "unit-5-integers",
title: "Integers",
description: "Add, subtract, multiply, divide integers and apply to real-world problems",
weeks: "Weeks 2-4",
color: "unit-5",
topics: [
{
slug: "add-subtract",
title: "Add and Subtract Integers",
shortTitle: "Add & Subtract",
week: 2,
description: "Use number lines and sign rules to add and subtract positive and negative numbers",
},
{
slug: "multiply-divide",
title: "Multiply and Divide Integers",
shortTitle: "Multiply & Divide",
week: 3,
description: "Sign rules for multiplication and division with real-world thermometer problems",
},
],
},
];
export function getUnit(slug: string): Unit | undefined {
@@ -187,12 +211,13 @@ export function getTopic(unitSlug: string, topicSlug: string): Topic | undefined
return unit?.topics.find((t) => t.slug === topicSlug);
}
export function getUnitColor(unitNumber: 1 | 2 | 3 | 4): string {
export function getUnitColor(unitNumber: 1 | 2 | 3 | 4 | 5): string {
const colors = {
1: "unit-1",
2: "unit-2",
3: "unit-3",
4: "unit-4",
5: "unit-5",
};
return colors[unitNumber];
}