integers added
This commit is contained in:
@@ -25,6 +25,10 @@
|
||||
--unit-4-light: #ffe8ef;
|
||||
--unit-4-dark: #be123c;
|
||||
|
||||
--unit-5: #7c3aed;
|
||||
--unit-5-light: #f0e7ff;
|
||||
--unit-5-dark: #5b21b6;
|
||||
|
||||
--correct: #16a34a;
|
||||
--correct-light: #dcfce7;
|
||||
--incorrect: #dc2626;
|
||||
@@ -59,6 +63,9 @@
|
||||
--color-unit-4: var(--unit-4);
|
||||
--color-unit-4-light: var(--unit-4-light);
|
||||
--color-unit-4-dark: var(--unit-4-dark);
|
||||
--color-unit-5: var(--unit-5);
|
||||
--color-unit-5-light: var(--unit-5-light);
|
||||
--color-unit-5-dark: var(--unit-5-dark);
|
||||
|
||||
--color-correct: var(--correct);
|
||||
--color-correct-light: var(--correct-light);
|
||||
|
||||
@@ -7,7 +7,7 @@ export default function LessonsOverview() {
|
||||
return (
|
||||
<div>
|
||||
<h1 className="mb-2 text-3xl font-bold tracking-tight">All Topics</h1>
|
||||
<p className="mb-10 text-muted">Form 1, Term 2 — Select a topic to explore</p>
|
||||
<p className="mb-10 text-muted">Form 1 — Select a topic to explore</p>
|
||||
|
||||
{curriculum.map((unit) => (
|
||||
<section key={unit.slug} className="mb-12">
|
||||
|
||||
22
app/lessons/unit-5-integers/add-subtract/page.tsx
Normal file
22
app/lessons/unit-5-integers/add-subtract/page.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
"use client";
|
||||
|
||||
import { Breadcrumbs } from "@/components/layout/breadcrumbs";
|
||||
import { IntegerAddSubtractExplorer } from "@/components/explorers/integer-add-subtract-explorer";
|
||||
|
||||
export default function IntegerAddSubtractPage() {
|
||||
return (
|
||||
<div className="space-y-8">
|
||||
<Breadcrumbs
|
||||
items={[
|
||||
{ label: "Lessons", href: "/lessons" },
|
||||
{ label: "Unit 5: Integers", href: "/lessons/unit-5-integers" },
|
||||
{ label: "Add & Subtract" },
|
||||
]}
|
||||
/>
|
||||
|
||||
<h1 className="text-3xl font-bold tracking-tight">Add and Subtract Integers</h1>
|
||||
|
||||
<IntegerAddSubtractExplorer />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
22
app/lessons/unit-5-integers/multiply-divide/page.tsx
Normal file
22
app/lessons/unit-5-integers/multiply-divide/page.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
"use client";
|
||||
|
||||
import { Breadcrumbs } from "@/components/layout/breadcrumbs";
|
||||
import { IntegerMultiplyDivideExplorer } from "@/components/explorers/integer-multiply-divide-explorer";
|
||||
|
||||
export default function IntegerMultiplyDividePage() {
|
||||
return (
|
||||
<div className="space-y-8">
|
||||
<Breadcrumbs
|
||||
items={[
|
||||
{ label: "Lessons", href: "/lessons" },
|
||||
{ label: "Unit 5: Integers", href: "/lessons/unit-5-integers" },
|
||||
{ label: "Multiply & Divide" },
|
||||
]}
|
||||
/>
|
||||
|
||||
<h1 className="text-3xl font-bold tracking-tight">Multiply and Divide Integers</h1>
|
||||
|
||||
<IntegerMultiplyDivideExplorer />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
41
app/lessons/unit-5-integers/page.tsx
Normal file
41
app/lessons/unit-5-integers/page.tsx
Normal file
@@ -0,0 +1,41 @@
|
||||
import Link from "next/link";
|
||||
import { curriculum } from "@/lib/curriculum";
|
||||
import { Card } from "@/components/ui/card";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { Breadcrumbs } from "@/components/layout/breadcrumbs";
|
||||
|
||||
export default function Unit5Overview() {
|
||||
const unit = curriculum[4];
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Breadcrumbs
|
||||
items={[
|
||||
{ label: "Lessons", href: "/lessons" },
|
||||
{ label: `Unit 5: ${unit.title}` },
|
||||
]}
|
||||
/>
|
||||
<div className="mb-10">
|
||||
<Badge variant="unit-5" className="mb-3">Unit 5 — {unit.weeks}</Badge>
|
||||
<h1 className="mb-2 text-3xl font-bold tracking-tight">{unit.title}</h1>
|
||||
<p className="text-muted leading-relaxed">{unit.description}</p>
|
||||
</div>
|
||||
<div className="grid gap-4 sm:grid-cols-2">
|
||||
{unit.topics.map((topic, i) => (
|
||||
<Link key={topic.slug} href={`/lessons/${unit.slug}/${topic.slug}`}>
|
||||
<Card accent="unit-5" hover className="group h-full">
|
||||
<div className="mb-2 flex items-center gap-2">
|
||||
<span className="flex h-7 w-7 items-center justify-center rounded-lg bg-unit-5-light text-xs font-bold text-unit-5-dark shadow-[var(--shadow-sm)]">
|
||||
{i + 1}
|
||||
</span>
|
||||
<span className="text-xs text-muted">Week {topic.week}</span>
|
||||
</div>
|
||||
<h3 className="mb-1 font-semibold">{topic.title}</h3>
|
||||
<p className="text-sm leading-relaxed text-muted">{topic.description}</p>
|
||||
</Card>
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -24,6 +24,11 @@ const unitStyles = {
|
||||
unitCard: "border-[#ffb2c7] bg-[#fff0f4]",
|
||||
chip: "bg-[#c6174e]",
|
||||
},
|
||||
"unit-5": {
|
||||
tile: "from-[#a78bfa] to-[#6d28d9]",
|
||||
unitCard: "border-[#c4b5fd] bg-[#f5f0ff]",
|
||||
chip: "bg-[#6d28d9]",
|
||||
},
|
||||
};
|
||||
|
||||
const topicTiles = [
|
||||
|
||||
Reference in New Issue
Block a user